| Line |  | 
|---|
| 1 | /*! | 
|---|
| 2 | \file objModel.h | 
|---|
| 3 | \brief Contains the OBJ-model Class, that reads in a Model from a .obj-file | 
|---|
| 4 | */ | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef _OBJMODEL_H | 
|---|
| 7 | #define _OBJMODEL_H | 
|---|
| 8 |  | 
|---|
| 9 | #include "static_model.h" | 
|---|
| 10 |  | 
|---|
| 11 | //! A Class, that handles the parsing of an obj-file, and inclusion as a Model. | 
|---|
| 12 | class OBJModel : public StaticModel | 
|---|
| 13 | { | 
|---|
| 14 | public: | 
|---|
| 15 | OBJModel(const std::string& fileName, float scaling = 1.0); | 
|---|
| 16 | virtual ~OBJModel(); | 
|---|
| 17 |  | 
|---|
| 18 | private: | 
|---|
| 19 | ///// readin ///// | 
|---|
| 20 | bool importFile (const std::string& fileName); | 
|---|
| 21 | bool readFromObjFile (const std::string& fileName); | 
|---|
| 22 | bool readMtlLib (const std::string& matFile); | 
|---|
| 23 |  | 
|---|
| 24 | private: | 
|---|
| 25 | std::string       objPath;     //!< The Path where the obj and mtl-file are located. | 
|---|
| 26 | }; | 
|---|
| 27 |  | 
|---|
| 28 | #endif /* _OBJ_MODEL_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.