OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellborder.hpp
Go to the documentation of this file.
1 #ifndef GAME_RENDER_CELLBORDER
2 #define GAME_RENDER_CELLBORDER
3 
4 #include <map>
5 #include <osg/Group>
6 
7 namespace Terrain
8 {
9  class World;
10 }
11 
12 namespace MWRender
13 {
17  class CellBorder
18  {
19  public:
20  typedef std::map<std::pair<int, int>, osg::ref_ptr<osg::Node> > CellGrid;
21 
22  CellBorder(Terrain::World *world, osg::Group *root, int borderMask);
23 
24  void createCellBorderGeometry(int x, int y);
25  void destroyCellBorderGeometry(int x, int y);
26 
31 
32  protected:
34  osg::Group *mRoot;
35 
38  };
39 }
40 
41 #endif
void destroyCellBorderGeometry()
Definition: cellborder.cpp:92
The basic interface for a terrain world. How the terrain chunks are paged and displayed is up to the ...
Definition: world.hpp:52
int mBorderMask
Definition: cellborder.hpp:37
CellGrid mCellBorderNodes
Definition: cellborder.hpp:36
std::map< std::pair< int, int >, osg::ref_ptr< osg::Node > > CellGrid
Definition: cellborder.hpp:20
osg::Group * mRoot
Definition: cellborder.hpp:34
Definition: cellborder.hpp:17
Terrain::World * mWorld
Definition: cellborder.hpp:33
void createCellBorderGeometry(int x, int y)
Definition: cellborder.cpp:20
CellBorder(Terrain::World *world, osg::Group *root, int borderMask)
Definition: cellborder.cpp:13