Changeset 8569 in orxonox.OLD for branches/terrain/src/lib/graphics/importer/terrain/terrain.h
- Timestamp:
- Jun 18, 2006, 8:26:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain.h
r8548 r8569 17 17 #define _TERRAIN_H 18 18 19 #define USE_VBO 20 #ifdef USE_VBO 21 #include "buffer_broker.h" 22 #endif 19 23 #include "types.h" 20 24 #include "terrain_page.h" … … 82 86 frustum = new Frustum(); 83 87 activatedCount = deactivatedCount = 0; 88 #ifdef USE_VBO 89 broker = new BufferBroker( 200, pageSize*pageSize*sizeof( Vertex ), 90 pageSize*pageSize*sizeof( short )*3 ); 91 #endif 84 92 } 85 93 … … 146 154 scale = _scale; 147 155 } 148 156 #ifdef USE_VBO 157 inline pBufferBroker getBufferBroker() { return broker; } 158 #endif 149 159 inline TerrainPage *getPage( int _x, int _z ) 150 160 { … … 170 180 void determineVisiblePages( pTerrainQuad _node ); 171 181 182 #ifdef USE_VBO 183 pBufferBroker broker; 184 #endif 172 185 pTerrainQuad root; // The quad-tree root node. 173 186 pTerrainPage *pages; // the references to all pages
Note: See TracChangeset
for help on using the changeset viewer.