Changeset 6249 in orxonox.OLD for branches/height_map/src/lib/graphics/importer/vertex_array_model.cc
- Timestamp:
- Dec 21, 2005, 4:24:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/vertex_array_model.cc
r6038 r6249 71 71 GL_TEXTURE_COORD_ARRAY | 72 72 GL_NORMAL_ARRAY); 73 //glEnableClientState(GL_INDEX_ARRAY);73 glEnableClientState(GL_INDEX_ARRAY); 74 74 75 75 glVertexPointer(3, GL_FLOAT, 0, this->vertices.getArray()); … … 77 77 glTexCoordPointer(2, GL_FLOAT, 0, this->texCoords.getArray()); 78 78 79 for (GLuint i = 1; i < this->stripes.size(); ++i) 79 glDrawElements(GL_TRIANGLE_STRIP, this->indices.getCount(), GL_UNSIGNED_BYTE, this->indices.getArray()); 80 /* for (GLuint i = 1; i < this->stripes.size(); ++i) 80 81 { 81 82 glDrawRangeElements(GL_TRIANGLE_STRIP, … … 85 86 GL_UNSIGNED_BYTE, 86 87 this->indices.getArray()); 87 } 88 }*/ 88 89 } 89 90 … … 194 195 for (j = 0; j < 20; j++) 195 196 { 196 this->addVertex( i* 50, .5, (j)*50);197 this->addVertex((float)i, .5, (float)(j)); 197 198 this->addNormal(0, 1, 0); 198 199 this->addTexCoor((float)i/20.0, (float)j/20.0);
Note: See TracChangeset
for help on using the changeset viewer.