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