1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-31 06:32:39 +00:00

35 lines
916 B
C++
Raw Normal View History

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