source: trunk/VUT/Ogre/include/OgreVisibilityTerrainSceneManager.h @ 103

Revision 103, 1.8 KB checked in by mattausch, 19 years ago (diff)

fixed bug with shadow maps

Line 
1#ifndef _VisibilityTerrainSceneManager_H__
2#define _VisibilityTerrainSceneManager_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#include <OgrePrerequisites.h>
11
12#include "OgreOctreeHierarchyInterface.h"
13#include "VisibilityManager.h"
14
15namespace Ogre {
16
17/**
18        This class extends the terrain scene manager,
19        using occlusion queries for visibility culling.
20*/
21class VisibilityTerrainSceneManager: public TerrainSceneManager
22{
23public:
24        VisibilityTerrainSceneManager(GtpVisibility::VisibilityManager *visManager);
25        ~VisibilityTerrainSceneManager();
26
27        void _renderVisibleObjects(void);
28        void _findVisibleObjects(Camera* cam, bool onlyShadowCasters);
29        void _updateSceneGraph(Camera* cam);
30
31        /** Sets the given option for the SceneManager
32                @remarks Options are: "Algorithm", int *;                       
33        */
34       
35        virtual bool setOption( const String &, const void * );
36        /** Gets the given option for the Scene VisibilityManager.
37            @remarks
38                See setOption
39        */
40        virtual bool getOption( const String &, void * );
41
42        bool getOptionValues( const String & key, StringVector &refValueList );
43        bool getOptionKeys( StringVector &refKeys );
44
45        /** Sets the visibility manager
46                @param visManager the visibility manager
47        */
48        void setVisibilityManager(GtpVisibility::VisibilityManager *visManager);
49        /** See set
50        */
51        GtpVisibility::VisibilityManager *getVisibilityManager();
52       
53protected:
54       
55        /** Writes out stats into the Ogre log file
56        */
57        void WriteLog();
58
59        OctreeHierarchyInterface *mHierarchyInterface;
60        GtpVisibility::VisibilityManager *mVisibilityManager;
61
62        bool mUseVisibilityCulling;
63        bool mShowVisualization;
64        bool mRenderNodesForViz;
65};
66
67} // namespace Ogre
68
69#endif // CullingTerrainSceneManager_H
Note: See TracBrowser for help on using the repository browser.