mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 04:26:45 +00:00 
			
		
		
		
	Now that it's no longer a stand-alone component, there's not much point in custom licensing it.
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			832 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			832 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef COMPONENTS_TERRAIN_TERRAINGRID_H
 | |
| #define COMPONENTS_TERRAIN_TERRAINGRID_H
 | |
| 
 | |
| #include "world.hpp"
 | |
| #include "material.hpp"
 | |
| 
 | |
| namespace osg
 | |
| {
 | |
|     class KdTreeBuilder;
 | |
| }
 | |
| 
 | |
| namespace Terrain
 | |
| {
 | |
| 
 | |
|     class GridElement;
 | |
| 
 | |
|     /// @brief Simple terrain implementation that loads cells in a grid, with no LOD
 | |
|     class TerrainGrid : public Terrain::World
 | |
|     {
 | |
|     public:
 | |
|         TerrainGrid(osg::Group* parent, Resource::ResourceSystem* resourceSystem, osgUtil::IncrementalCompileOperation* ico,
 | |
|               Storage* storage, int nodeMask);
 | |
|         ~TerrainGrid();
 | |
| 
 | |
|         virtual void loadCell(int x, int y);
 | |
|         virtual void unloadCell(int x, int y);
 | |
| 
 | |
|     private:
 | |
|         typedef std::map<std::pair<int, int>, GridElement*> Grid;
 | |
|         Grid mGrid;
 | |
| 
 | |
|         osg::ref_ptr<osg::KdTreeBuilder> mKdTreeBuilder;
 | |
|     };
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |