Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3917 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Apr 21, 2005, 3:34:38 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: minor

Location:
orxonox/trunk/src/lib/graphics/importer
Files:
2 edited

Legend:

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

    r3916 r3917  
    5454
    5555  this->materialList = new tList<Material>;
     56
     57  if (this->type == MODEL_VERTEX_ARRAY)
     58    glEnableClientState(GL_VERTEX_ARRAY | GL_NORMAL_ARRAY | GL_TEXTURE_COORD_ARRAY);
    5659}
    5760
     
    820823
    821824  this->currentGroup = this->firstGroup;
    822 
     825  glVertexPointer(3, GL_FLOAT, 0, this->vertices->getArray());
     826  glNormalPointer(3, 0, this->normals->getArray());
     827  glTexCoordPointer(2, GL_FLOAT, 0, this->vTexture->getArray());
    823828
    824829}
  • orxonox/trunk/src/lib/graphics/importer/model.h

    r3916 r3917  
    88
    99#include "material.h"
     10#include "glincl.h"
    1011
    1112// FORWARD DEFINITION //
     
    6566    char* name;         //!< the Name of the Group. this is an identifier, that can be accessed via the draw (char* name) function.
    6667
    67     unsigned int listNumber;//!< The number of the GL-List this Group gets.
     68    GLubyte* indices;   //!< The indices of the Groups. Needed for vertex-arrays
     69    GLuint listNumber;  //!< The number of the GL-List this Group gets.
    6870    Face* firstFace;    //!< The first Face in this group.
    6971    Face* currentFace;  //!< The current Face in this Group (the one we are currently working with.)
Note: See TracChangeset for help on using the changeset viewer.