source: trunk/VUT/obsolete/OcclusionCullingSceneManager/include/OgreOcclusionCullingOctreeSceneManager.h @ 51

Revision 51, 1.5 KB checked in by mattausch, 20 years ago (diff)
Line 
1#ifndef _OcclusionCullingOctreeSceneManager_H__
2#define _OcclusionCullingOctreeSceneManager_H__
3
4#include <OgreSceneNode.h>
5#include <OgreOctreeSceneManager.h>
6#include <OgreOctreeNode.h>
7#include <OgreOctreeCamera.h>
8
9#include "OgrePrerequisites.h"
10#include "OgreOcclusionCullingOctreeSceneTraverser.h"
11
12using namespace std;
13
14namespace Ogre {
15        /**
16                Class which implements a scene mangager which uses occlusion queries for culling occluded objects
17        */
18        class OcclusionCullingOctreeSceneManager: public OctreeSceneManager
19        {
20        public:
21                OcclusionCullingOctreeSceneManager();
22                ~OcclusionCullingOctreeSceneManager();
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
50                OcclusionCullingOctreeSceneTraverser *mOcclusionCullingOctreeSceneTraverser;
51        };
52
53}
54#endif // OcclusionCullingTerrainSceneManager_H
Note: See TracBrowser for help on using the repository browser.