Changeset 5790 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Nov 27, 2005, 12:17:07 AM (19 years ago)
- Location:
- trunk/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/abstract_model.h
r5672 r5790 128 128 129 129 public: 130 AbstractModel() { }131 virtual ~AbstractModel() { }130 AbstractModel() { } 131 virtual ~AbstractModel() { } 132 132 133 133 inline const modelInfo* getModelInfo() const { return this->pModelInfo; } -
trunk/src/lib/graphics/importer/model.cc
r5774 r5790 143 143 Model::Model(const char* modelName, MODEL_TYPE type) 144 144 { 145 this->setClassID(CL_MODEL, "Model"); 145 146 PRINTF(4)("new 3D-Model is being created\n"); 146 147 this->setName(modelName); … … 178 179 PRINTF(4)("Deleting Model "); 179 180 if (this->getName()) 180 181 182 181 { 182 PRINT(4)("%s\n", this->getName()); 183 } 183 184 else 184 PRINT(4)("\n"); 185 { 186 PRINT(4)("\n"); 187 } 188 this->cleanup(); 185 189 186 190 PRINTF(5)("Deleting display Lists.\n"); … … 216 220 //if (this->type == MODEL_DISPLAY_LIST) 217 221 //this->deleteArrays(); 218 this->cleanup();222 // this->cleanup(); 219 223 220 224 /* load the ModelInfo */ … … 230 234 231 235 this->finalized = true; 236 } 237 238 /** 239 * rebuild the Model from the Information we got. 240 */ 241 void Model::rebuild() 242 { 243 PRINTF(3)("Rebuilding Model '%s'\n", this->getName()); 244 this->finalize(); 245 232 246 } 233 247 -
trunk/src/lib/graphics/importer/model.h
r5774 r5790 114 114 void draw(char* groupName) const; 115 115 116 void rebuild(); 117 116 118 /** @returns Count of the Models (Groups) in this File */ 117 119 inline int getGroupCount() const { return this->groupCount; }; -
trunk/src/lib/graphics/importer/texture.cc
r5769 r5790 118 118 if (this->image != NULL) 119 119 { 120 PRINTF( 1)("Reloading Texture of %s '%s'\n", this->getClassName(), this->getName());120 PRINTF(3)("Reloading Texture of %s '%s'\n", this->getClassName(), this->getName()); 121 121 this->loadTexToGL(); 122 122 }
Note: See TracChangeset
for help on using the changeset viewer.