Changeset 10624 for code/trunk/src/modules/designtools
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/designtools/ScreenshotManager.cc
r9667 r10624 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 #include "core/command/ConsoleCommand .h"50 #include " util/ScopedSingletonManager.h"49 #include "core/command/ConsoleCommandIncludes.h" 50 #include "core/singleton/ScopedSingletonIncludes.h" 51 51 #include "util/StringUtils.h" 52 52 … … 61 61 SetConsoleCommand("printScreenHD", &ScreenshotManager::makeScreenshot_s); 62 62 63 ManageScopedSingleton(ScreenshotManager, ScopeID::Graphics, false); 63 ManageScopedSingleton(ScreenshotManager, ScopeID::GRAPHICS, false); 64 65 RegisterAbstractClass(ScreenshotManager).inheritsFrom<Configurable>(); 64 66 65 67 /** … … 152 154 { 153 155 // Save it. 154 finalImage->save( PathConfig::getInstance().getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_);156 finalImage->save(ConfigurablePaths::getLogPathString() + "screenshot_" + getTimestamp() + this->fileExtension_); 155 157 delete finalImage; 156 158 orxout(user_info) << "Finished taking " << this->gridSize_*this->windowWidth_ << "x" << this->gridSize_*this->windowHeight_ << " pixel HD screenshot. Storing in log/." << endl; -
code/trunk/src/modules/designtools/SkyboxGenerator.cc
r9667 r10624 38 38 #include <OgreCamera.h> 39 39 40 #include "util/ScopedSingletonManager.h"41 40 #include "core/CoreIncludes.h" 42 41 #include "core/config/ConfigValueIncludes.h" 43 42 #include "core/GraphicsManager.h" 44 #include "core/ PathConfig.h"43 #include "core/ConfigurablePaths.h" 45 44 #include "core/Resource.h" 46 #include "core/command/ConsoleCommand .h"45 #include "core/command/ConsoleCommandIncludes.h" 47 46 #include "core/command/CommandExecutor.h" 47 #include "core/singleton/ScopedSingletonIncludes.h" 48 48 49 49 #include "controllers/HumanController.h" … … 60 60 SetConsoleCommand("SkyboxGenerator", "createSkybox", &SkyboxGenerator::createSkybox).addShortcut(); 61 61 62 ManageScopedSingleton(SkyboxGenerator, ScopeID::Graphics, false); 62 ManageScopedSingleton(SkyboxGenerator, ScopeID::GRAPHICS, false); 63 64 RegisterAbstractClass(SkyboxGenerator).inheritsFrom<Configurable>().inheritsFrom<Tickable>(); 63 65 64 66 /** … … 173 175 this->setupRenderWindow(renderWindow); 174 176 // Add the log path to the standard resource group. 175 Ogre::ResourceGroupManager::getSingleton().addResourceLocation( PathConfig::getInstance().getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup());177 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(ConfigurablePaths::getLogPathString(), "FileSystem", Resource::getDefaultResourceGroup()); 176 178 177 179 orxout(internal_status) << "Setting up SkyboxGenerator..." << endl; … … 208 210 this->restoreRenderWindow(renderWindow); 209 211 // Remove the log path from the standard resource group. 210 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation( PathConfig::getInstance().getLogPathString(), Resource::getDefaultResourceGroup());212 Ogre::ResourceGroupManager::getSingleton().removeResourceLocation(ConfigurablePaths::getLogPathString(), Resource::getDefaultResourceGroup()); 211 213 212 214 // Reset the flow parameters for the next skybox generation. … … 306 308 void SkyboxGenerator::saveImage(Ogre::Image* image, const std::string& name) const 307 309 { 308 image->save( PathConfig::getInstance().getLogPathString()+name);310 image->save(ConfigurablePaths::getLogPathString()+name); 309 311 delete image; 310 312 // Loading the resizing, then saving again. This seems stupid, but resizing doesn't seem to work otherwise. … … 313 315 image->load(name, Resource::getDefaultResourceGroup()); 314 316 image->resize(this->size_, this->size_); 315 image->save( PathConfig::getInstance().getLogPathString()+name);317 image->save(ConfigurablePaths::getLogPathString()+name); 316 318 delete image; 317 319 ScreenshotManager::getInstance().cleanup(); // Free memory in ScreenshotManager.
Note: See TracChangeset
for help on using the changeset viewer.