1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00
OpenMW/components/terrain/cellborder.hpp

41 lines
756 B
C++
Raw Normal View History

2018-06-12 23:48:31 +00:00
#ifndef GAME_RENDER_CELLBORDER
#define GAME_RENDER_CELLBORDER
#include <map>
#include <osg/Group>
namespace Terrain
{
class World;
}
namespace MWRender
{
/**
* @Brief Handles the debug cell borders.
*/
class CellBorder
{
public:
typedef std::map<std::pair<int, int>, osg::ref_ptr<osg::Node> > CellGrid;
CellBorder(Terrain::World *world, osg::Group *root);
void createCellBorderGeometry(int x, int y);
void destroyCellBorderGeometry(int x, int y);
2018-06-14 10:01:09 +00:00
/**
Destroys the geometry for all borders.
*/
void destroyCellBorderGeometry();
2018-06-12 23:48:31 +00:00
protected:
Terrain::World *mWorld;
osg::Group *mRoot;
CellGrid mCellBorderNodes;
};
}
#endif