Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 9, 2006, 11:11:59 PM (18 years ago)
Author:
bensch
Message:

trunk Vectors instead of floats used in VertexArrayModel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/vertex_array_model.cc

    r6452 r6453  
    179179void VertexArrayModel::addVertex(float x, float y, float z)
    180180{
    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));
    184182  this->pModelInfo.numVertices++;
    185183}
     
    196194void VertexArrayModel::addNormal(float x, float y, float z)
    197195{
    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));
    201197  this->pModelInfo.numNormals++;
    202198}
     
    225221void VertexArrayModel::addColor(float r, float g, float b)
    226222{
    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));
    230224  // FIXME
    231225}
     
    357351            this->stripes.size(),
    358352            this->indices.size(),
    359             this->vertices.size()/3,
    360             this->normals.size()/3,
     353            this->vertices.size(),
     354            this->normals.size(),
    361355            this->texCoords.size()/2,
    362             this->colors.size() )/3;
     356            this->colors.size() );
    363357  for (GLuint i = 1; i < this->stripes.size(); ++i)
    364358  {
Note: See TracChangeset for help on using the changeset viewer.