1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
908 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:
virtual ~CellRender(){};
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