1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +00:00
OpenMW/apps/openmw/mwrender/cell.hpp

36 lines
973 B
C++
Raw Normal View History

#ifndef GAME_RENDER_CELL_H
#define GAME_RENDER_CELL_H
2010-07-09 14:07:03 +00:00
#include <string>
2010-08-07 18:25:17 +00:00
namespace MWRender
{
class CellRender
{
2010-08-07 18:25:17 +00:00
public:
virtual ~CellRender() {};
2010-08-07 18:25:17 +00:00
/// Make the cell visible. Load the cell if necessary.
virtual void show() = 0;
2010-08-07 18:25:17 +00:00
/// Remove the cell from rendering, but don't remove it from
/// memory.
2010-08-07 18:25:17 +00:00
virtual void hide() = 0;
2010-07-22 10:29:23 +00:00
/// Destroy all rendering objects connected with this cell.
virtual void destroy() = 0;
2010-08-07 18:25:17 +00:00
2010-07-09 14:07:03 +00:00
/// Make the reference with the given handle visible.
virtual void enable (const std::string& handle) = 0;
2010-08-07 18:25:17 +00:00
2010-07-09 14:07:03 +00:00
/// Make the reference with the given handle invisible.
virtual void disable (const std::string& handle) = 0;
2010-08-07 18:25:17 +00:00
/// Remove the reference with the given handle permanently from the scene.
virtual void deleteObject (const std::string& handle) = 0;
};
}
#endif