- Timestamp:
- 03/29/05 08:21:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/TestCulling/TestCullingApplication.h
r30 r32 6 6 #include "ExampleApplication.h" 7 7 #include "OgreOcclusionCullingSceneManager.h" 8 #include "OgreOcclusionCullingSceneTraverser.h" 8 9 9 10 Real timeDelay = 0; … … 17 18 } 18 19 19 String mCurrentAlgorithmCaptions[OcclusionCullingScene Manager::NUM_RENDERMODES] =20 String mCurrentAlgorithmCaptions[OcclusionCullingSceneTraverser::NUM_RENDERMODES] = 20 21 { 21 22 "Cull Frustum", … … 53 54 // This is when the mouse is clicked, held and dragged. 54 55 virtual void mouseDragged (MouseEvent *e); 55 /*56 void keyPressed(KeyEvent* e)57 {58 if(e->getKey() == KC_ESCAPE)59 {60 mShutdownRequested = true;61 e->consume();62 return;63 }64 56 65 CEGUI::System::getSingleton().injectKeyDown(e->getKey()); 66 CEGUI::System::getSingleton().injectChar(e->getKeyChar()); 67 e->consume(); 68 } 57 void keyPressed(KeyEvent* e); 69 58 70 void keyReleased(KeyEvent* e) 71 { 72 CEGUI::System::getSingleton().injectKeyUp(e->getKey()); 73 e->consume(); 74 } 75 void keyClicked(KeyEvent* e) 76 { 77 // Do nothing 78 e->consume(); 79 } 59 void keyReleased(KeyEvent* e); 60 void keyClicked(KeyEvent* e); 80 61 81 bool frameEnded(const FrameEvent& evt)82 {83 if (mShutdownRequested)84 return false;85 else86 return ExampleFrameListener::frameEnded(evt);87 }88 */89 62 void changeAlgorithm(); 63 void changeThreshold(int incr); 90 64 void changeStats(); 91 65 … … 96 70 CEGUI::Renderer *mGUIRenderer; // cegui renderer 97 71 SceneNode* mShipNode; 98 //bool mShutdownRequested;72 bool mShutdownRequested; 99 73 int mCurrentAlgorithm; 100 74 int mThreshold; 75 101 76 OverlayElement *mAlgorithmInfo; 102 77 OverlayElement *mThresholdInfo; … … 113 88 /*TestCullingApplication() 114 89 { 115 116 90 }*/ 117 91 … … 148 122 149 123 }*/ 150 151 152 153 124 }; 154 125
Note: See TracChangeset
for help on using the changeset viewer.