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

Revision 133, 1.4 KB checked in by mattausch, 19 years ago (diff)

fixed some bugs

Line 
1#ifndef _TestCullingTerrainApplication_H__
2#define _TestCullingTerrainApplication_H__
3
4#include "CEGUIForwardRefs.h"
5#include "ExampleApplication.h"
6#include "OgreTerrainContentGenerator.h"
7
8#include <OgreRenderTargetListener.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
23
24class TestCullingTerrainApplication : public ExampleApplication
25{
26public:
27        ~TestCullingTerrainApplication();
28
29protected:
30        //-- inherited from ExampleApplication
31        bool setup();
32        void createScene();
33        void createFrameListener();
34        void createCamera();
35        //void createViewports();
36       
37        virtual void createRenderTargetListener();
38
39        /** cegui setup */
40        void setupGui();
41
42        CEGUI::OgreCEGUIRenderer *mGUIRenderer;
43        CEGUI::System *mGUISystem;
44
45        Vector3 mMinTranslation;
46        Vector3 mMaxTranslation;
47
48        Vector3 mMinAngle;
49        Vector3 mMaxAngle;
50
51        TerrainContentGenerator *mTerrainContentGenerator;
52       
53        Camera *mVizCamera;
54        SceneNode *mCamNode;
55        Light *mSunLight;
56        VisualizationRenderTargetListener *mRenderTargetListener;
57
58        TerrainFrameListener *mTerrainFrameListener;
59       
60private:
61        void chooseSceneManager(void);
62};
63
64#endif // TestCullingTerrainApplication
Note: See TracBrowser for help on using the repository browser.