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/vertex_array_model.cc

    r6012 r6046  
    3333VertexArrayModel::VertexArrayModel()
    3434{
    35   this->setClassID(CL_MODEL, "VertexArrayModel");
     35  this->setClassID(CL_VERTEX_ARRAY_MODEL, "VertexArrayModel");
    3636
    3737  this->finalized = false;
     
    8888  glVertexPointer(3, GL_FLOAT, 0, this->vertices.getArray());
    8989  glNormalPointer(GL_FLOAT, 0, this->normals.getArray());
    90   glTexCoordPointer(2, GL_FLOAT, 0, this->texCoords.getArray()); 
     90  glTexCoordPointer(2, GL_FLOAT, 0, this->texCoords.getArray());
    9191
    9292  printf("%d\n", this->indices.getCount());
     
    100100  /*  const GLfloat* pVertices = NULL;
    101101      const GLfloat* pNorm = NULL;
    102      
     102
    103103      glBegin(GL_TRIANGLES);
    104104      for( int i = 0; i < this->triangleCount; ++i)
     
    109109      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    110110      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    111      
     111
    112112      pNorm = &this->normals->getArray()[this->triangles[i].indexToNormals[1]];
    113113      pVertices = &this->vertices->getArray()[this->triangles[i].indexToVertices[1]];
    114114      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    115115      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    116      
     116
    117117      pNorm = &this->normals->getArray()[this->triangles[i].indexToNormals[2]];
    118118      pVertices = &this->vertices->getArray()[this->triangles[i].indexToVertices[2]];
    119119      glNormal3f(pNorm[0], pNorm[1], pNorm[2]);
    120120      glVertex3f(pVertices[0], pVertices[1], pVertices[2]);
    121      
     121
    122122      }
    123123      glEnd();
Note: See TracChangeset for help on using the changeset viewer.