1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/apps/openmw/mwrender/cell.hpp
2022-10-06 00:26:43 +02:00

35 lines
916 B
C++

#ifndef GAME_RENDER_CELL_H
#define GAME_RENDER_CELL_H
#include <string>
namespace MWRender
{
class CellRender
{
public:
virtual ~CellRender() = default;
/// Make the cell visible. Load the cell if necessary.
virtual void show() = 0;
/// Remove the cell from rendering, but don't remove it from
/// memory.
virtual void hide() = 0;
/// Destroy all rendering objects connected with this cell.
virtual void destroy() = 0;
/// Make the reference with the given handle visible.
virtual void enable(const std::string& handle) = 0;
/// Make the reference with the given handle invisible.
virtual void disable(const std::string& handle) = 0;
/// Remove the reference with the given handle permanently from the scene.
virtual void deleteObject(const std::string& handle) = 0;
};
}
#endif