Last change
on this file since 3542 was
3399,
checked in by bensch, 20 years ago
|
orxonox/branches/nico: merged trunk into branches/nico
merged with command:
svn merge ../trunk/ nico/ -r 3238:HEAD
resolved conflict in favor of branches/nico.
|
File size:
806 bytes
|
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 "model.h" |
---|
10 | |
---|
11 | //! A Class, that handles the parsing of an obj-file, and inclusion as a Model. |
---|
12 | class OBJModel : public Model |
---|
13 | { |
---|
14 | public: |
---|
15 | OBJModel(char* fileName); |
---|
16 | OBJModel(char* fileName, float scaling); |
---|
17 | virtual ~OBJModel(); |
---|
18 | void initializeOBJ(void); |
---|
19 | |
---|
20 | private: |
---|
21 | // Variables |
---|
22 | char* objPath; //!< The Path where the obj and mtl-file are located. |
---|
23 | char* objFileName; //!< The Name of the obj-file. |
---|
24 | char* mtlFileName; //!< The Name of the mtl-file (parsed out of the obj-file) |
---|
25 | |
---|
26 | ///// readin ///// |
---|
27 | bool importFile (char* fileName); |
---|
28 | bool readFromObjFile (void); |
---|
29 | bool readMtlLib (char* matFile); |
---|
30 | |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _OBJ_MODEL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.