mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 17:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			776 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			776 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef GAME_RENDER_CELLBORDER
 | |
| #define GAME_RENDER_CELLBORDER
 | |
| 
 | |
| #include <map>
 | |
| #include <osg/Group>
 | |
| 
 | |
| namespace Terrain
 | |
| {
 | |
|     class World;
 | |
| 
 | |
|     /**
 | |
|      * @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, int borderMask);
 | |
| 
 | |
|         void createCellBorderGeometry(int x, int y);
 | |
|         void destroyCellBorderGeometry(int x, int y);
 | |
| 
 | |
|         /**
 | |
|           Destroys the geometry for all borders.
 | |
|         */
 | |
|         void destroyCellBorderGeometry();
 | |
| 
 | |
|     protected:
 | |
|         Terrain::World *mWorld;
 | |
|         osg::Group *mRoot;
 | |
| 
 | |
|         CellGrid mCellBorderNodes;
 | |
|         int mBorderMask;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |