Changeset 6265 in orxonox.OLD for branches/height_map/src/lib
- Timestamp:
- Dec 22, 2005, 7:10:54 PM (19 years ago)
- Location:
- branches/height_map/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/height_map/src/lib/graphics/importer/vertex_array_model.cc
r6264 r6265 84 84 glDrawElements( GL_TRIANGLE_STRIP, 85 85 this->stripes[i] - this->stripes[i-1], 86 GL_UNSIGNED_ BYTE,86 GL_UNSIGNED_INT, 87 87 &this->indices[this->stripes[i-1]] ); 88 88 } … … 171 171 * @param type The information Passed with each Vertex 172 172 */ 173 void VertexArrayModel::addIndice(GLu byteindice)173 void VertexArrayModel::addIndice(GLuint indice) 174 174 { 175 175 this->indices.push_back(indice); … … 206 206 void VertexArrayModel::planeModel() 207 207 { 208 unsigned int sizeX = 20, sizeY = 20; 209 210 unsigned int i, j; 208 GLuint sizeX = 20; 209 GLuint sizeY = 20; 210 211 GLuint i, j; 211 212 for (i = 0; i < sizeY; i++) 212 213 { … … 228 229 } 229 230 this->newStripe(); 230 this->debug();231 231 } 232 232 } … … 299 299 for (GLuint i = 1; i < this->stripes.size(); ++i) 300 300 { 301 PRINT(0)("Stripe-%d ::", i);301 PRINT(0)("Stripe-%d (s:%d:e:%d):: ", i, this->stripes[i-1], this->stripes[i]); 302 302 for (GLuint j = this->stripes[i-1] ; j < this->stripes[i]; j++) 303 303 { -
branches/height_map/src/lib/graphics/importer/vertex_array_model.h
r6263 r6265 40 40 void addColor(float r, float g, float b); 41 41 42 void addIndice(GLu byteindice);42 void addIndice(GLuint indice); 43 43 44 44 void finalize(); … … 61 61 std::vector<GLfloat> colors; //!< The Array that handles Colors. 62 62 63 std::vector<GLu byte>indices; //!< The Array that tells us what Vertex is connected to which other one.63 std::vector<GLuint> indices; //!< The Array that tells us what Vertex is connected to which other one. 64 64 65 65 std::vector<GLuint> stripes; //!< A lsit of Stripes of this Model.
Note: See TracChangeset
for help on using the changeset viewer.