[33] | 1 | #ifndef _OcclusionCullingTerrainSceneManager_H__
|
---|
| 2 | #define _OcclusionCullingTerrainSceneManager_H__
|
---|
| 3 |
|
---|
| 4 | #include <OgreSceneNode.h>
|
---|
| 5 | #include <OgreOctreeSceneManager.h>
|
---|
| 6 | #include <OgreTerrainSceneManager.h>
|
---|
| 7 | #include <OgreOctreeSceneQuery.h>
|
---|
| 8 | #include <OgreOctreeNode.h>
|
---|
| 9 | #include <OgreOctreeCamera.h>
|
---|
| 10 |
|
---|
| 11 | #include "OgrePrerequisites.h"
|
---|
| 12 | #include "OgreOcclusionCullingSceneTraverser.h"
|
---|
| 13 | //#include "OgreSolidHalfBoundingBox.h"
|
---|
| 14 |
|
---|
| 15 | using namespace std; |
---|
| 16 | |
---|
| 17 | namespace Ogre { |
---|
| 18 |
|
---|
| 19 | /**
|
---|
| 20 | Class which implements a scene mangager which uses occlusion queries for culling occluded objects
|
---|
| 21 | */
|
---|
| 22 | class OcclusionCullingTerrainSceneManager: public TerrainSceneManager
|
---|
| 23 | {
|
---|
| 24 | public:
|
---|
| 25 | OcclusionCullingTerrainSceneManager();
|
---|
| 26 | ~OcclusionCullingTerrainSceneManager();
|
---|
| 27 |
|
---|
[34] | 28 | //void _renderVisibleObjects(void);
|
---|
| 29 | //void _findVisibleObjects(Camera* cam, bool onlyShadowCasters);
|
---|
| 30 |
|
---|
| 31 | //void _updateSceneGraph(Camera* cam);
|
---|
[33] | 32 |
|
---|
| 33 | /** Sets the given option for the SceneManager
|
---|
| 34 | @remarks
|
---|
| 35 | Options are:
|
---|
| 36 | "Algorithm", int *;
|
---|
| 37 | */
|
---|
[34] | 38 |
|
---|
[33] | 39 | virtual bool setOption( const String &, const void * );
|
---|
| 40 | /** Gets the given option for the Scene Manager.
|
---|
| 41 | @remarks
|
---|
| 42 | See setOption
|
---|
| 43 | */
|
---|
| 44 | virtual bool getOption( const String &, void * );
|
---|
| 45 |
|
---|
| 46 | bool getOptionValues( const String & key, StringVector &refValueList );
|
---|
| 47 | bool getOptionKeys( StringVector &refKeys );
|
---|
| 48 |
|
---|
| 49 | protected:
|
---|
| 50 | OcclusionCullingSceneTraverser *mOcclusionCullingSceneTraverser;
|
---|
| 51 | };
|
---|
| 52 |
|
---|
| 53 | }
|
---|
| 54 | #endif // OcclusionCullingTerrainSceneManager_H |
---|