Changeset 8569 in orxonox.OLD for branches/terrain/src/lib/graphics/importer/terrain/terrain_page.h
- Timestamp:
- Jun 18, 2006, 8:26:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain_page.h
r8548 r8569 17 17 #ifndef TERRAIN_PAGE_H 18 18 #define TERRAIN_PAGE_H 19 19 #define USE_VBO 20 20 #include "terrain_quad.h" 21 21 #include <stdio.h> … … 26 26 27 27 typedef TerrainPage *pTerrainPage; 28 29 struct Vertex { 30 TexCoord t; 31 Triple p; 32 }; 33 34 typedef Vertex *pVertex; 28 35 29 36 typedef struct { … … 208 215 if ( wantedLOD >= TerrainPage::MAX_LODS ) 209 216 wantedLOD = 4; 217 else if ( wantedLOD < 0 ) 218 wantedLOD = 0; 210 219 else 211 220 wantedLOD = _lod; … … 271 280 bool forceTesselation; 272 281 bool active; 273 Triple *vertices;282 pVertex vertices; 274 283 unsigned short *indices; 275 284 unsigned short *indexHash; 276 TexCoord *coords;277 285 int numIndices; 278 286 int numVertices; 287 288 #ifdef USE_VBO 289 GLuint ibIdentifier, 290 vbIdentifier; 291 #endif 279 292 bool isVisible; 280 293 pTerrainPage next;
Note: See TracChangeset
for help on using the changeset viewer.