Changeset 6453 in orxonox.OLD for trunk/src/lib/graphics/importer/vertex_array_model.cc
- Timestamp:
- Jan 9, 2006, 11:11:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/vertex_array_model.cc
r6452 r6453 179 179 void VertexArrayModel::addVertex(float x, float y, float z) 180 180 { 181 this->vertices.push_back(x); 182 this->vertices.push_back(y); 183 this->vertices.push_back(z); 181 this->vertices.push_back(Vector(x,y,z)); 184 182 this->pModelInfo.numVertices++; 185 183 } … … 196 194 void VertexArrayModel::addNormal(float x, float y, float z) 197 195 { 198 this->normals.push_back(x); 199 this->normals.push_back(y); 200 this->normals.push_back(z); 196 this->normals.push_back(Vector(x,y,z)); 201 197 this->pModelInfo.numNormals++; 202 198 } … … 225 221 void VertexArrayModel::addColor(float r, float g, float b) 226 222 { 227 this->colors.push_back(r); 228 this->colors.push_back(g); 229 this->colors.push_back(b); 223 this->colors.push_back(Vector(r,g,b)); 230 224 // FIXME 231 225 } … … 357 351 this->stripes.size(), 358 352 this->indices.size(), 359 this->vertices.size() /3,360 this->normals.size() /3,353 this->vertices.size(), 354 this->normals.size(), 361 355 this->texCoords.size()/2, 362 this->colors.size() ) /3;356 this->colors.size() ); 363 357 for (GLuint i = 1; i < this->stripes.size(); ++i) 364 358 {
Note: See TracChangeset
for help on using the changeset viewer.