Changeset 8288
- Timestamp:
- Apr 21, 2011, 8:29:30 PM (14 years ago)
- Location:
- code/branches/kicklib2/src/modules/designtools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/src/modules/designtools/ScreenshotManager.cc
r8284 r8288 111 111 112 112 // Create temporary texture 113 this->tempTexture_ = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D, this->windowWidth_, this->windowHeight_, 0, Ogre::PF_B8G8R8, Ogre::TU_RENDERTARGET); 113 this->tempTexture_ = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", 114 Resource::getDefaultResourceGroup(), Ogre::TEX_TYPE_2D, this->windowWidth_, 115 this->windowHeight_, 0, Ogre::PF_B8G8R8, Ogre::TU_RENDERTARGET); 114 116 115 117 // Get the current render target of the temporary texture -
code/branches/kicklib2/src/modules/designtools/SkyboxGenerator.cc
r8234 r8288 172 172 this->setupRenderWindow(renderWindow); 173 173 // Add the log path to the standard resource group. 174 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getInstance().getLogPathString(), "FileSystem", Resource:: DEFAULT_GROUP);174 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getInstance().getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup()); 175 175 176 176 COUT(4) << "Setting up SkyboxGenerator..." << endl; … … 207 207 this->restoreRenderWindow(renderWindow); 208 208 // Remove the log path from the standard resource group. 209 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(PathConfig::getInstance().getLogPathString(), Resource:: DEFAULT_GROUP);209 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(PathConfig::getInstance().getLogPathString(), Resource::getDefaultResourceGroup()); 210 210 211 211 // Reset the flow parameters for the next skybox generation. … … 310 310 // If someone figures this out, feel free to adjust. 311 311 image = new Ogre::Image(); 312 image->load(name, Resource:: DEFAULT_GROUP);312 image->load(name, Resource::getDefaultResourceGroup()); 313 313 image->resize(this->size_, this->size_); 314 314 image->save(PathConfig::getInstance().getLogPathString()+name);
Note: See TracChangeset
for help on using the changeset viewer.