Changeset 10509 for code/branches/core7/src/modules
- Timestamp:
- May 30, 2015, 12:22:27 PM (10 years ago)
- Location:
- code/branches/core7/src/modules/designtools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/modules/designtools/ScreenshotManager.cc
r10464 r10509 45 45 #include "core/config/ConfigValueIncludes.h" 46 46 #include "core/GraphicsManager.h" 47 #include "core/ PathConfig.h"47 #include "core/ConfigurablePaths.h" 48 48 #include "core/Resource.h" 49 49 #include "core/command/ConsoleCommandIncludes.h" … … 154 154 { 155 155 // Save it. 156 finalImage->save( PathConfig::getInstance().getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_);156 finalImage->save(ConfigurablePaths::getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_); 157 157 delete finalImage; 158 158 orxout(user_info) << "Finished taking " << this->gridSize_*this->windowWidth_ << "x" << this->gridSize_*this->windowHeight_ << " pixel HD screenshot. Storing in log/." << endl; -
code/branches/core7/src/modules/designtools/SkyboxGenerator.cc
r10464 r10509 41 41 #include "core/config/ConfigValueIncludes.h" 42 42 #include "core/GraphicsManager.h" 43 #include "core/ PathConfig.h"43 #include "core/ConfigurablePaths.h" 44 44 #include "core/Resource.h" 45 45 #include "core/command/ConsoleCommandIncludes.h" … … 175 175 this->setupRenderWindow(renderWindow); 176 176 // Add the log path to the standard resource group. 177 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( PathConfig::getInstance().getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup());177 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup()); 178 178 179 179 orxout(internal_status) << "Setting up SkyboxGenerator..." << endl; … … 210 210 this->restoreRenderWindow(renderWindow); 211 211 // Remove the log path from the standard resource group. 212 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation( PathConfig::getInstance().getLogPathString(), Resource::getDefaultResourceGroup());212 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(ConfigurablePaths::getLogPathString(), Resource::getDefaultResourceGroup()); 213 213 214 214 // Reset the flow parameters for the next skybox generation. … … 308 308 void SkyboxGenerator::saveImage(Ogre::Image* image, const std::string& name) const 309 309 { 310 image->save( PathConfig::getInstance().getLogPathString()+name);310 image->save(ConfigurablePaths::getLogPathString()+name); 311 311 delete image; 312 312 // Loading the resizing, then saving again. This seems stupid, but resizing doesn't seem to work otherwise. … … 315 315 image->load(name, Resource::getDefaultResourceGroup()); 316 316 image->resize(this->size_, this->size_); 317 image->save( PathConfig::getInstance().getLogPathString()+name);317 image->save(ConfigurablePaths::getLogPathString()+name); 318 318 delete image; 319 319 ScreenshotManager::getInstance().cleanup(); // Free memory in ScreenshotManager.
Note: See TracChangeset
for help on using the changeset viewer.