Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2005, 2:42:55 PM (18 years ago)
Author:
bensch
Message:

orxonox/branches/controll: Should compile on windows again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/lib/graphics/importer/model.cc

    r6033 r6046  
    2828Model::Model()
    2929{
    30 //   this->setClassID(CL_PROTO_ID, "ProtoClass");
     30  this->setClassID(CL_MODEL, "Model");
    3131  this->pModelInfo.numVertices = 0;
    3232  this->pModelInfo.numTriangles = 0;
     
    5454  const GLfloat* pVertices = NULL;
    5555  const GLfloat* pNorm = NULL;
    56  
     56
    5757  glBegin(GL_TRIANGLES);
    5858  for( int i = 0; i < this->pModelInfo.numTriangles; ++i)
     
    6363      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    6464      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    65      
     65
    6666      pNorm = &this->pModelInfo.pNormals[this->pModelInfo.pTriangles[i].indexToNormals[1]];
    6767      pVertices = &this->pModelInfo.pVertices[this->pModelInfo.pTriangles[i].indexToVertices[1]];
    6868      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    6969      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    70      
     70
    7171      pNorm = &this->pModelInfo.pNormals[this->pModelInfo.pTriangles[i].indexToNormals[2]];
    7272      pVertices = &this->pModelInfo.pVertices[this->pModelInfo.pTriangles[i].indexToVertices[2]];
    7373      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    7474      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    75      
     75
    7676    }
    7777  glEnd();
Note: See TracChangeset for help on using the changeset viewer.