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 |
|
---|
11 | class VisualizationRenderTargetListener: public RenderTargetListener
|
---|
12 | {
|
---|
13 | public:
|
---|
14 | VisualizationRenderTargetListener(SceneManager *sceneMgr);
|
---|
15 |
|
---|
16 | protected:
|
---|
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 |
|
---|
27 | class TestCullingTerrainApplication : public ExampleApplication
|
---|
28 | {
|
---|
29 | public:
|
---|
30 | TestCullingTerrainApplication();
|
---|
31 | ~TestCullingTerrainApplication();
|
---|
32 |
|
---|
33 | protected:
|
---|
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 |
|
---|
65 | private:
|
---|
66 | void chooseSceneManager(void);
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif // TestCullingTerrainApplication |
---|