Changeset 8351 for code/trunk/src/modules/designtools
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- Location:
- code/trunk/src/modules/designtools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/designtools/CreateStars.cc
r7184 r8351 88 88 while(1) 89 89 { 90 phi = rnd( 2*math::pi);90 phi = rnd(math::twoPi); 91 91 teta = rnd(math::pi); 92 92 float random = rnd(1); -
code/trunk/src/modules/designtools/DesignToolsPrereqs.h
r7163 r8351 53 53 # endif 54 54 # endif 55 #elif defined ( ORXONOX_GCC_VISIBILITY ) 55 # define _DesignToolsPrivate 56 #elif defined (ORXONOX_GCC_VISIBILITY) 56 57 # define _DesignToolsExport __attribute__ ((visibility("default"))) 58 # define _DesignToolsPrivate __attribute__ ((visibility("hidden"))) 57 59 #else 58 60 # define _DesignToolsExport 61 # define _DesignToolsPrivate 59 62 #endif 60 63 -
code/trunk/src/modules/designtools/ScreenshotManager.cc
r8297 r8351 45 45 #include "core/GraphicsManager.h" 46 46 #include "core/PathConfig.h" 47 #include "core/Resource.h" 47 48 #include "core/command/ConsoleCommand.h" 48 49 #include "util/ScopedSingletonManager.h" … … 111 112 112 113 // 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); 114 this->tempTexture_ = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", 115 Resource::getDefaultResourceGroup(), Ogre::TEX_TYPE_2D, this->windowWidth_, 116 this->windowHeight_, 0, Ogre::PF_B8G8R8, Ogre::TU_RENDERTARGET); 114 117 115 118 // Get the current render target of the temporary texture -
code/trunk/src/modules/designtools/SkyboxGenerator.cc
r8297 r8351 173 173 this->setupRenderWindow(renderWindow); 174 174 // Add the log path to the standard resource group. 175 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getInstance().getLogPathString(), "FileSystem", Resource:: DEFAULT_GROUP);175 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getInstance().getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup()); 176 176 177 177 COUT(4) << "Setting up SkyboxGenerator..." << endl; … … 208 208 this->restoreRenderWindow(renderWindow); 209 209 // Remove the log path from the standard resource group. 210 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(PathConfig::getInstance().getLogPathString(), Resource:: DEFAULT_GROUP);210 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(PathConfig::getInstance().getLogPathString(), Resource::getDefaultResourceGroup()); 211 211 212 212 // Reset the flow parameters for the next skybox generation. … … 311 311 // If someone figures this out, feel free to adjust. 312 312 image = new Ogre::Image(); 313 image->load(name, Resource:: DEFAULT_GROUP);313 image->load(name, Resource::getDefaultResourceGroup()); 314 314 image->resize(this->size_, this->size_); 315 315 image->save(PathConfig::getInstance().getLogPathString()+name);
Note: See TracChangeset
for help on using the changeset viewer.