- Timestamp:
- Apr 21, 2005, 3:34:38 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r3916 r3917 54 54 55 55 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); 56 59 } 57 60 … … 820 823 821 824 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()); 823 828 824 829 } -
orxonox/trunk/src/lib/graphics/importer/model.h
r3916 r3917 8 8 9 9 #include "material.h" 10 #include "glincl.h" 10 11 11 12 // FORWARD DEFINITION // … … 65 66 char* name; //!< the Name of the Group. this is an identifier, that can be accessed via the draw (char* name) function. 66 67 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. 68 70 Face* firstFace; //!< The first Face in this group. 69 71 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.