Changeset 3911 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer
- Timestamp:
- Apr 21, 2005, 1:11:36 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/model.cc
r3910 r3911 23 23 #include "array.h" 24 24 #include "vector.h" 25 #include "list.h" 25 26 26 27 using namespace std; … … 50 51 this->normals = new Array(); 51 52 53 this->materialList = new tList<Material>; 52 54 } 53 55 … … 68 70 PRINT(4)("\n"); 69 71 70 PRINTF( 4)("Deleting display Lists.\n");72 PRINTF(5)("Deleting display Lists.\n"); 71 73 Group* walker = this->firstGroup; 72 74 while (walker != NULL) … … 78 80 } 79 81 80 PRINTF( 4)("Deleting Materials.\n");82 PRINTF(5)("Deleting Materials.\n"); 81 83 if (this->material) 82 84 delete this->material; 85 86 // deleting the MaterialList 87 delete materialList; 83 88 } 84 89 -
orxonox/trunk/src/lib/graphics/importer/model.h
r3910 r3911 84 84 bool initFace (Face* face); 85 85 86 bool buildVertexNormals(void); 87 88 bool importToGL(void); 89 bool addGLElement(FaceElement* elem); 90 91 bool cleanup(void); 86 92 bool cleanupGroup(Group* group); 87 93 bool cleanupFace(Face* face); 88 94 bool cleanupFaceElement(FaceElement* faceElem); 89 95 90 bool addGLElement(FaceElement* elem);91 96 92 bool buildVertexNormals(void);97 tList<Material>* materialList; 93 98 94 99 protected: … … 96 101 Material* material; //!< Initial pointer to the Material. This can hold many materials, because Material can be added with Material::addMaterial(..) 97 102 98 bool importToGL(void);99 103 void cubeModel(void); 100 101 bool cleanup(void);102 104 103 105 public: -
orxonox/trunk/src/lib/graphics/importer/objModel.cc
r3910 r3911 38 38 this->importFile (fileName); 39 39 40 this->importToGL (); 41 42 this->cleanup(); 40 this->finalize(); 43 41 } 44 42 … … 211 209 char buffer[PARSELINELENGTH]; 212 210 Material* tmpMat = material; 211 213 212 while(fgets(buffer, PARSELINELENGTH, stream)) 214 213 { -
orxonox/trunk/src/lib/graphics/importer/primitive_model.cc
r3909 r3911 52 52 break; 53 53 } 54 this->importToGL (); 55 56 this->cleanup(); 54 this->finalize(); 57 55 } 58 56
Note: See TracChangeset
for help on using the changeset viewer.