Changeset 1487 for GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include
- Timestamp:
- 09/26/06 09:47:54 (18 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.