Changeset 85 for trunk/VUT/work/TestCulling/TestCullingApplication.h
- Timestamp:
- 05/04/05 17:58:13 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/work/TestCulling/TestCullingApplication.h
r84 r85 6 6 #include "ExampleApplication.h" 7 7 #include "VisibilityEnvironment.h" 8 8 #include "SceneContentGenerator.h" 9 9 10 10 Real timeDelay = 0; … … 30 30 31 31 MouseQueryListener(RenderWindow* win, Camera* cam, SceneManager *sceneManager, 32 CEGUI::Renderer *renderer );32 CEGUI::Renderer *renderer, SceneContentGenerator *sceneContentGenerator); 33 33 34 34 … … 60 60 void keyClicked(KeyEvent* e); 61 61 62 void changeAlgorithm(); 62 void nextAlgorithm(); 63 void setAlgorithm(int algorithm); 63 64 void changeThreshold(int incr); 64 65 void changeStats(); … … 72 73 bool mShutdownRequested; 73 74 int mCurrentAlgorithm; 74 int m Threshold;75 int mVisibilityThreshold; 75 76 76 77 OverlayElement *mAlgorithmInfo; … … 82 83 OverlayElement *mRenderedNodesInfo; 83 84 OverlayElement *mNumObjectsInfo; 85 86 SceneContentGenerator *mSceneContentGenerator; 84 87 }; 85 88 … … 87 90 class TestCullingApplication : public ExampleApplication 88 91 { 92 public: 93 ~TestCullingApplication(); 94 89 95 protected: 90 void createScene(void); 91 void createFrameListener(void); 92 void setupGui(void); 93 /** generates a the scene hierarchy with random values 94 @param number of objects to generate 95 */ 96 void GenerateScene(int numObjects); 97 98 /** generates a new scene object 99 @param tranlationRatio ratio between minimal and maximal possible translation 100 @param rotationRatio ratio between minimal and maximal possible rotation 101 @idx the index of the new object 102 @entName the name of the object entity 103 */ 104 void generateSceneObject(const Vector3 &translationRatio, const Vector3 &rotationRatio, 105 const int idx, const String &entName); 106 96 void createScene(); 97 void createFrameListener(); 98 void setupGui(); 99 107 100 //virtual void createCamera(void); 108 101 … … 116 109 Vector3 mMaxAngle; 117 110 111 SceneContentGenerator *mSceneContentGenerator; 112 118 113 private: 119 114 void chooseSceneManager(void);
Note: See TracChangeset
for help on using the changeset viewer.