- Timestamp:
- Jun 20, 2006, 5:47:04 PM (18 years ago)
- Location:
- branches/terrain/src/lib/graphics/importer/terrain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain.cc
r8641 r8642 129 129 bi.numIndices+=2; 130 130 } 131 for ( unsigned short *i = _indices; i < end; ++i ) {132 * indices= *i+offset;131 for ( unsigned short *i = _indices; i < end; ++i, ++dst ) { 132 *dst = *i+offset; 133 133 } 134 134 bi.numIndices+=_numIndices; … … 184 184 glEnableClientState( GL_TEXTURE_COORD_ARRAY ); 185 185 glDisableClientState( GL_NORMAL_ARRAY ); 186 186 glDisable( GL_CULL_FACE ); 187 187 glDisable( GL_LIGHTING ); 188 188 glColor3f( 1.0f, 1.0f, 1.0f ); -
branches/terrain/src/lib/graphics/importer/terrain/terrain.h
r8641 r8642 71 71 const static int PAGE_SIZE = 17; 72 72 const static int MAX_VERTICES = PAGE_SIZE*PAGE_SIZE; 73 const static int MAX_INDICES = 3*MAX_VERTICES/*2*( PAGE_SIZE*PAGE_SIZE - PAGE_SIZE ) - 2*/;73 const static int MAX_INDICES = 2*( PAGE_SIZE*PAGE_SIZE + PAGE_SIZE -2 ); 74 74 /** 75 75 * The amount of geometry rendered is largely depending on this constant. So chose a
Note: See TracChangeset
for help on using the changeset viewer.