Changeset 2344 for GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include
- Timestamp:
- 05/03/07 11:31:23 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/src/CausticTest/include/CausticTest.h
r2340 r2344 55 55 this->app = app; 56 56 } 57 void setAttr(SceneNode* lightNode, SceneNode* sphereNode, Light* l) 58 { 59 this->sphereNode = sphereNode; 60 this->lightNode = lightNode; 61 light = l; 62 } 57 63 bool processUnbufferedKeyInput(const FrameEvent& evt) 58 64 { … … 137 143 void LoadRes() 138 144 { 139 loadResources(); 145 setupResources(); 146 147 MaterialManager::getSingleton().initialise(); 148 149 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 150 ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 151 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 152 ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 153 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_EnvMap"); 154 ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Caustic"); 155 156 ResourceGroupManager::getSingleton().loadResourceGroup("Bootstrap"); 157 ResourceGroupManager::getSingleton().loadResourceGroup("General"); 158 ResourceGroupManager::getSingleton().loadResourceGroup("GTP_Basic"); 159 ResourceGroupManager::getSingleton().loadResourceGroup("PostProc"); 160 ResourceGroupManager::getSingleton().loadResourceGroup("GTP_EnvMap"); 161 ResourceGroupManager::getSingleton().loadResourceGroup("GTP_Caustic"); 162 140 163 } 141 164 void setupScene() … … 190 213 mRoot->addFrameListener(&OgreIlluminationManager::getSingleton()); 191 214 } 215 setFrameListenerAttr() 216 { 217 ((RaytraceDemoListener*) mFrameListener)->setAttr(mainLightNode, sphereNode, light); 218 } 219 void clearResources(void) 220 { 221 ResourceGroupManager::getSingleton().destroyResourceGroup("Bootstrap"); 222 ResourceGroupManager::getSingleton().destroyResourceGroup("General"); 223 ResourceGroupManager::getSingleton().destroyResourceGroup("GTP_Basic"); 224 ResourceGroupManager::getSingleton().destroyResourceGroup("PostProc"); 225 ResourceGroupManager::getSingleton().destroyResourceGroup("GTP_EnvMap"); 226 ResourceGroupManager::getSingleton().destroyResourceGroup("GTP_Caustic"); 227 228 229 } 192 230 193 231 protected: … … 203 241 void loadResources(void) 204 242 { 205 206 243 // Initialise, parse scripts etc 207 244 ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap");
Note: See TracChangeset
for help on using the changeset viewer.