source: trunk/VUT/work/TestCullingTerrain/TestCullingTerrainApplication.h @ 145

Revision 145, 1.6 KB checked in by mattausch, 19 years ago (diff)

fixed bug when canceling login
fixed visibility queries using occlusion queries

Line 
1#ifndef _TestCullingTerrainApplication_H__
2#define _TestCullingTerrainApplication_H__
3
4#include "CEGUIForwardRefs.h"
5#include <OgreRenderTargetListener.h>
6#include "ExampleApplication.h"
7
8#include "OgreTerrainContentGenerator.h"
9#include "TerrainFrameListener.h"
10
11class VisualizationRenderTargetListener: public RenderTargetListener
12{
13public:
14        VisualizationRenderTargetListener(SceneManager *sceneMgr);
15
16protected:
17        void preViewportUpdate (const RenderTargetViewportEvent &evt);
18        void postRenderTargetUpdate (const RenderTargetEvent &evt);
19
20        SceneManager *mSceneMgr;
21       
22        ShadowTechnique mSavedShadowTechnique;
23        ColourValue mSavedAmbientLight;
24};
25
26
27class TestCullingTerrainApplication : public ExampleApplication
28{
29public:
30        TestCullingTerrainApplication();
31        ~TestCullingTerrainApplication();
32
33protected:
34        //-- inherited from ExampleApplication
35        bool setup();
36        void createScene();
37        void createFrameListener();
38        void createCamera();
39        //void createViewports();
40       
41        virtual void createRenderTargetListener();
42
43        /** cegui setup */
44        void setupGui();
45
46        CEGUI::OgreCEGUIRenderer *mGUIRenderer;
47        CEGUI::System *mGUISystem;
48
49        Vector3 mMinTranslation;
50        Vector3 mMaxTranslation;
51
52        Vector3 mMinAngle;
53        Vector3 mMaxAngle;
54
55        TerrainContentGenerator *mTerrainContentGenerator;
56       
57        Camera *mVizCamera;
58        SceneNode *mCamNode;
59        Light *mSunLight;
60
61        TerrainFrameListener *mTerrainFrameListener;
62        ColourValue mAmbientLight;
63        //VisualizationRenderTargetListener *mVizRenderTargetListener;
64       
65private:
66        void chooseSceneManager(void);
67};
68
69#endif // TestCullingTerrainApplication
Note: See TracBrowser for help on using the repository browser.