Changeset 8593 in orxonox.OLD for branches/terrain/src
- Timestamp:
- Jun 19, 2006, 11:42:43 PM (18 years ago)
- Location:
- branches/terrain/src/lib/graphics/importer/terrain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain.cc
r8569 r8593 94 94 } 95 95 96 //TODO: The method could be optimized. We could get rid of the hidePages call97 // by setting a active flag in every pages that is visible. Then a walk98 // through the activePages list is sufficient to remove all invisible99 // pages.100 // DONE101 96 void Terrain::determineVisiblePages( pTerrainQuad _node ) 102 97 { … … 182 177 if ( minLOD < page->getWantedLOD()-1 ) { 183 178 page->setWantedLOD( minLOD+1 ); 184 dirty = true;179 //dirty = true; 185 180 } 186 181 page = page->getNext(); -
branches/terrain/src/lib/graphics/importer/terrain/terrain_page.cc
r8569 r8593 48 48 int xStart = 0, xEnd = owner->getPageSize(); 49 49 int halfStride = _zStride >> 1; 50 assert( _xStride > 0 ); assert( _zStride > 0 ); 50 51 if ( _z ) { 51 52 addAgain( ); -
branches/terrain/src/lib/graphics/importer/terrain/terrain_page.h
r8569 r8593 213 213 inline void setWantedLOD( int _lod ) 214 214 { 215 if ( wantedLOD>= TerrainPage::MAX_LODS )216 wantedLOD = 4;217 else if ( wantedLOD< 0 )215 if ( _lod >= TerrainPage::MAX_LODS ) 216 wantedLOD = TerrainPage::MAX_LODS-1; 217 else if ( _lod < 0 ) 218 218 wantedLOD = 0; 219 219 else 220 220 wantedLOD = _lod; 221 } 221 } 222 222 223 protected: 223 224
Note: See TracChangeset
for help on using the changeset viewer.