Revision 2332,
890 bytes
checked in by mattausch, 18 years ago
(diff) |
implemented part of rendering estimation of wimmer et al. for view space / object space subdivision.
warning: not working with undersampling estimation + local visibility based subdivision.
|
Line | |
---|
1 | #ifndef __ObjReader_H__
|
---|
2 | #define __ObjReader_H__
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | #include <vector>
|
---|
6 | #include <Ogre.h>
|
---|
7 | #include "Containers.h"
|
---|
8 |
|
---|
9 | namespace GtpVisibilityPreprocessor {
|
---|
10 | class Intersectable;
|
---|
11 | class Preprocessor;
|
---|
12 | }
|
---|
13 |
|
---|
14 | class __declspec(dllexport) ObjReader
|
---|
15 | {
|
---|
16 | public:
|
---|
17 | ObjReader(Ogre::SceneManager *sceneManager);
|
---|
18 | ~ObjReader();
|
---|
19 |
|
---|
20 | bool LoadFile(const std::string &sceneName,
|
---|
21 | const std::string &visibilitySolution,
|
---|
22 | Ogre::SceneNode *root);
|
---|
23 |
|
---|
24 | Ogre::Entity *CreateEntity(const std::string &name,
|
---|
25 | GtpVisibilityPreprocessor::Intersectable *object);
|
---|
26 | Ogre::ManualObject *CreateManualObject(const std::string &name,
|
---|
27 | GtpVisibilityPreprocessor::Intersectable *object);
|
---|
28 | protected:
|
---|
29 |
|
---|
30 | Ogre::SceneManager *mSceneManager;
|
---|
31 | GtpVisibilityPreprocessor::ObjectContainer mPvsObjects;
|
---|
32 | GtpVisibilityPreprocessor::Preprocessor *mPreprocessor;
|
---|
33 | };
|
---|
34 |
|
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.