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