Changeset 4234 in orxonox.OLD for orxonox/branches/md2_loader/src
- Timestamp:
- May 20, 2005, 1:40:47 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/importer/abstract_model.h
r4172 r4234 68 68 short indexToTexCoor[3]; //!< index to the texture coordinates 69 69 } sTriangle; 70 71 72 typedef struct 73 { 74 float s, t; 75 int vertexIndex; 76 } glCommandVertex; 70 77 71 78 -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4232 r4234 562 562 this->pVertices = new sVec3D[this->numVertices * this->numFrames]; 563 563 this->pGLCommands = new int[this->numGLCommands]; 564 //this->pGLCommands2 = new int[this->numGLCommands]; 564 565 this->pLightNormals = new int[this->numVertices * this->numFrames]; 565 566 buffer = new char[this->numFrames * this->header->frameSize]; … … 571 572 fseek(pFile, this->header->offsetGlCommands, SEEK_SET); 572 573 fread(this->pGLCommands, sizeof(int), this->numGLCommands, pFile); 574 //fread(this->pGLCommands2, sizeof(glCommandVertex), this->numGLCommands, pFile); 573 575 574 576 for(int i = 0; i < this->numFrames; ++i) … … 629 631 630 632 //printf("numFrames: %i\n", this->numFrames); 631 // 633 //printf("currentFrame: %i\n", this->animationState.currentFrame); 632 634 633 635 //for(int i = 0; i < this->numFrames; ++i) … … 765 767 while( int i = *(pCommands++)) /* strange looking while loop for maximum performance */ 766 768 { 767 int i;768 769 if( i < 0) 769 770 { -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.h
r4232 r4234 243 243 int* pGLCommands; 244 244 int* pLightNormals; 245 glCommandVertex* pGLCommands2; 245 246 246 247 unsigned int textureID;
Note: See TracChangeset
for help on using the changeset viewer.