Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/importer/objModel.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/objModel.cc
r8369 r9869 18 18 #include "objModel.h" 19 19 20 #include <stdio.h>21 20 #include <string.h> 22 #include <stdlib.h>21 #include "loading/resource_manager.h" 23 22 24 23 #define PARSELINELENGTH 8192 … … 27 26 #include "compiler.h" 28 27 28 ObjectListDefinition(OBJModel); 29 29 /** 30 30 * @brief Crates a 3D-Model, loads in a File and scales it. … … 35 35 : StaticModel(fileName) 36 36 { 37 this-> setClassID(CL_OBJ_MODEL, "OBJModel");37 this->registerObject(this, OBJModel::_objectList); 38 38 39 39 this->objPath = "./"; 40 40 41 this->s caleFactor = scaling;41 this->setScaleFactor(scaling); 42 42 43 43 this->importFile (fileName); … … 77 77 else 78 78 this->objPath = "./"; 79 Material::addTexturePath(this->objPath);79 Resources::ResourceManager::getInstance()->addResourcePath("Texture", this->objPath); 80 80 81 81 this->readFromObjFile (fileName);
Note: See TracChangeset
for help on using the changeset viewer.