Rev | Line | |
---|
[2961] | 1 | #ifndef _OBJCONVERTER_H
|
---|
| 2 | #define _OBJCONVERTER_H
|
---|
[2957] | 3 |
|
---|
| 4 | #include "common.h"
|
---|
| 5 |
|
---|
| 6 | namespace CHCDemoEngine
|
---|
| 7 | {
|
---|
| 8 | class SceneEntity;
|
---|
| 9 | }
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | /** Converts obj format into objects readable by our format
|
---|
| 13 | */
|
---|
| 14 | class ObjConverter
|
---|
| 15 | {
|
---|
| 16 | public:
|
---|
| 17 |
|
---|
| 18 | bool Convert(const std::string &inputFilename,
|
---|
| 19 | const std::string &outputFilename) const;
|
---|
| 20 | // const std::string textureFilename) const;
|
---|
| 21 |
|
---|
| 22 | CHCDemoEngine::SceneEntity *Load(const std::string &filename) const;
|
---|
| 23 |
|
---|
| 24 | protected:
|
---|
| 25 |
|
---|
| 26 | bool ReadFile(const std::string inputFilename);
|
---|
| 27 | bool WriteFile(const std::string outputFilename);
|
---|
| 28 | };
|
---|
| 29 |
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.