Changeset 1487 for GTP/trunk/App/Demos/Illum/Ogre/src
- Timestamp:
- 09/26/06 09:47:54 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include/CausticTest.h
r1450 r1487 113 113 114 114 public: 115 virtual void go(void)116 {117 if (!setup())118 return;119 120 renderScene();121 122 // clean up123 destroyScene();124 }125 126 115 127 116 protected: 128 117 SceneNode* mainLightNode; 129 118 SceneNode* sphereNode; 130 131 void renderScene(){132 133 mWindow->resetStatistics();134 while(true){135 136 137 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32138 // Pump events on Win32139 MSG msg;140 while( PeekMessage( &msg, NULL, 0U, 0U, PM_REMOVE ) )141 {142 TranslateMessage( &msg );143 DispatchMessage( &msg );144 }145 146 #endif147 148 if(!mRoot->_fireFrameStarted()){149 break;150 }151 unsigned long framenum = mRoot->getCurrentFrameNumber();152 153 OgreIlluminationManager::getSingleton().update(framenum, mWindow);154 155 //mRoot->renderOneFrame();156 mRoot->_updateAllRenderTargets();157 158 mRoot->_fireFrameEnded();159 160 }161 }162 119 163 120 void createPostproc() … … 191 148 // Skybox 192 149 mSceneMgr->setSkyBox(true, "Examples/MorningSkyBox"); 193 150 /* 194 151 SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 195 152 … … 219 176 220 177 createPlane("ground", "TestPlane", Vector3(0,0,0), Vector2(500,500)); 221 178 */ 222 179 OgreIlluminationManager::getSingleton().initTechniques(); 223 180 … … 253 210 sphereNode 254 211 ); 255 mRoot->addFrameListener( mFrameListener);256 //mRoot->addFrameListener(&OgreIlluminationManager::getSingleton());257 212 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 213 mRoot->addFrameListener(mFrameListener); 214 258 215 } 259 216 -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsParticleDemo/include/GameToolsParticleDemo.h
r1442 r1487 58 58 59 59 public: 60 virtual void go(void)60 /* virtual void go(void) 61 61 { 62 62 if (!setup()) … … 67 67 // clean up 68 68 destroyScene(); 69 } 69 }*/ 70 70 71 71 protected: 72 72 SceneNode* kupolaNode; 73 73 SceneNode* mainLightNode; 74 74 /* 75 75 void renderScene(){ 76 76 … … 103 103 104 104 } 105 } 105 }*/ 106 106 107 107 void createPostproc() … … 200 200 mFrameListener= new ParticleDemoFrameListener(mWindow, 201 201 mCamera ); 202 203 204 202 mRoot->addFrameListener(mFrameListener); 203 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 204 } 205 205 206 206 }; -
GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h
r1349 r1487 145 145 146 146 public: 147 virtual void go(void)147 /* virtual void go(void) 148 148 { 149 149 if (!setup()) … … 155 155 destroyScene(); 156 156 } 157 157 */ 158 158 159 159 protected: … … 164 164 SceneNode* copperSphereNode; 165 165 SceneNode* aluSphereNode; 166 166 /* 167 167 void renderScene(){ 168 168 … … 195 195 196 196 } 197 } 197 }*/ 198 198 199 199 void createPostproc() … … 342 342 aluSphereNode); 343 343 mRoot->addFrameListener(mFrameListener); 344 //mRoot->addFrameListener(&OgreIlluminationManager::getSingleton());344 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 345 345 346 346 }
Note: See TracChangeset
for help on using the changeset viewer.