Line | |
---|
1 | #ifndef __ObjReader_H__
|
---|
2 | #define __ObjReader_H__
|
---|
3 |
|
---|
4 | //#include <stdlib>
|
---|
5 | #include <string>
|
---|
6 | #include <vector>
|
---|
7 | #include <Ogre.h>
|
---|
8 | /*#include "ObjNode.h"
|
---|
9 | #include "ObjMeshData.h"
|
---|
10 | #include "ObjManualMeshLoader.h"
|
---|
11 | */
|
---|
12 |
|
---|
13 |
|
---|
14 | namespace GtpVisibilityPreprocessor {
|
---|
15 |
|
---|
16 | struct Triangle3;
|
---|
17 |
|
---|
18 | }
|
---|
19 |
|
---|
20 | typedef std::vector<GtpVisibilityPreprocessor::Triangle3 *> TriangleContainer;
|
---|
21 |
|
---|
22 | class __declspec(dllexport) ObjReader
|
---|
23 | {
|
---|
24 | public:
|
---|
25 | ObjReader();
|
---|
26 | ~ObjReader();
|
---|
27 |
|
---|
28 | bool LoadFile(const std::string &filename,
|
---|
29 | TriangleContainer &triangles) const;
|
---|
30 |
|
---|
31 | const std::vector<Ogre::Entity *> &GetObjects() const;
|
---|
32 |
|
---|
33 | protected:
|
---|
34 |
|
---|
35 | std::vector<Ogre::Entity *> mObjects;
|
---|
36 | };
|
---|
37 |
|
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.