Changeset 3542 in orxonox.OLD for orxonox/branches/levelloader/src/lib
- Timestamp:
- Mar 14, 2005, 9:58:58 AM (20 years ago)
- Location:
- orxonox/branches/levelloader/src/lib/graphics/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/graphics/importer/objModel.cc
r3499 r3542 24 24 \param fileName file to parse and load (must be a .obj file) 25 25 */ 26 OBJModel::OBJModel(c har* fileName)26 OBJModel::OBJModel(const char* fileName) 27 27 { 28 28 this->initializeOBJ(); … … 40 40 \param scaling The factor that the model will be scaled with. 41 41 */ 42 OBJModel::OBJModel(c har* fileName, float scaling)42 OBJModel::OBJModel(const char* fileName, float scaling) 43 43 { 44 44 this->initializeOBJ(); … … 84 84 \param fileName The file to import 85 85 */ 86 bool OBJModel::importFile (c har* fileName)86 bool OBJModel::importFile (const char* fileName) 87 87 { 88 88 PRINTF(3)("preparing to read in file: %s\n", fileName); … … 96 96 char pathSplitter='/'; 97 97 #endif /* __WIN32__ */ 98 c har* tmpName = fileName;98 const char* tmpName = fileName; 99 99 if (tmpName[0] == pathSplitter) 100 100 tmpName++; 101 c har* name = tmpName;101 const char* name = tmpName; 102 102 while (( tmpName = strchr (tmpName+1, pathSplitter))) 103 103 { … … 212 212 213 213 */ 214 bool OBJModel::readMtlLib (c har* mtlFile)214 bool OBJModel::readMtlLib (const char* mtlFile) 215 215 { 216 216 this->mtlFileName = new char [strlen(mtlFile)+1]; -
orxonox/branches/levelloader/src/lib/graphics/importer/objModel.h
r3499 r3542 13 13 { 14 14 public: 15 OBJModel(c har* fileName);16 OBJModel(c har* fileName, float scaling);15 OBJModel(const char* fileName); 16 OBJModel(const char* fileName, float scaling); 17 17 virtual ~OBJModel(); 18 18 void initializeOBJ(void); … … 25 25 26 26 ///// readin ///// 27 bool importFile (c har* fileName);27 bool importFile (const char* fileName); 28 28 bool readFromObjFile (void); 29 bool readMtlLib (c har* matFile);29 bool readMtlLib (const char* matFile); 30 30 31 31 };
Note: See TracChangeset
for help on using the changeset viewer.