[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"
|
---|
[48] | 12 | #include "OgreOcclusionCullingOctreeSceneTraverser.h"
|
---|
[33] | 13 |
|
---|
| 14 | using namespace std; |
---|
| 15 | |
---|
| 16 | namespace Ogre { |
---|
| 17 | /**
|
---|
| 18 | Class which implements a scene mangager which uses occlusion queries for culling occluded objects
|
---|
| 19 | */
|
---|
| 20 | class OcclusionCullingTerrainSceneManager: public TerrainSceneManager
|
---|
| 21 | {
|
---|
| 22 | public:
|
---|
| 23 | OcclusionCullingTerrainSceneManager();
|
---|
| 24 | ~OcclusionCullingTerrainSceneManager();
|
---|
| 25 |
|
---|
[40] | 26 | void _renderVisibleObjects(void);
|
---|
| 27 | void _findVisibleObjects(Camera* cam, bool onlyShadowCasters);
|
---|
| 28 | void _updateSceneGraph(Camera* cam);
|
---|
[33] | 29 |
|
---|
| 30 | /** Sets the given option for the SceneManager
|
---|
| 31 | @remarks
|
---|
| 32 | Options are:
|
---|
| 33 | "Algorithm", int *;
|
---|
| 34 | */
|
---|
[34] | 35 |
|
---|
[33] | 36 | virtual bool setOption( const String &, const void * );
|
---|
| 37 | /** Gets the given option for the Scene Manager.
|
---|
| 38 | @remarks
|
---|
| 39 | See setOption
|
---|
| 40 | */
|
---|
| 41 | virtual bool getOption( const String &, void * );
|
---|
| 42 |
|
---|
| 43 | bool getOptionValues( const String & key, StringVector &refValueList );
|
---|
| 44 | bool getOptionKeys( StringVector &refKeys );
|
---|
| 45 |
|
---|
| 46 | protected:
|
---|
[41] | 47 |
|
---|
[45] | 48 | OcclusionCullingOctreeSceneTraverser *mOcclusionCullingOctreeSceneTraverser;
|
---|
[33] | 49 | };
|
---|
| 50 |
|
---|
| 51 | }
|
---|
| 52 | #endif // OcclusionCullingTerrainSceneManager_H |
---|