Changeset 9869 in orxonox.OLD for trunk/src/lib/graphics/importer/objModel.h
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/objModel.h
r8369 r9869 12 12 class OBJModel : public StaticModel 13 13 { 14 public: 15 OBJModel(const std::string& fileName, float scaling = 1.0); 14 ObjectListDeclaration(OBJModel); 15 public: 16 OBJModel(const std::string& fileName, float scaling = 1.0); 16 17 virtual ~OBJModel(); 17 18 18 19 private: 19 20 ///// readin ///// 20 21 22 21 bool importFile (const std::string& fileName); 22 bool readFromObjFile (const std::string& fileName); 23 bool readMtlLib (const std::string& matFile); 23 24 24 25 26 27 28 29 30 25 private: 26 void setIllum (Material* material, const char* illum); 27 void setDiffuse (Material* material, const char* rgb); 28 void setAmbient (Material* material, const char* rgb); 29 void setSpecular (Material* material, const char* rgb); 30 void setShininess (Material* material, const char* shini); 31 void setTransparency (Material* material, const char* trans); 31 32 32 33 33 private: 34 std::string objPath; //!< The Path where the obj and mtl-file are located. 34 35 }; 35 36
Note: See TracChangeset
for help on using the changeset viewer.