Changeset 8081
- Timestamp:
- Mar 17, 2011, 2:28:23 AM (14 years ago)
- Location:
- code/branches/kicklib/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/libraries/core/Resource.cc
r6746 r8081 36 36 namespace orxonox 37 37 { 38 std::string Resource::DEFAULT_GROUP(Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 38 const std::string& Resource::getDefaultResourceGroup() 39 { 40 return Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME; 41 } 39 42 40 43 DataStreamPtr Resource::open(const std::string& name) 41 44 { 42 45 return Ogre::ResourceGroupManager::getSingleton().openResource(name, 43 Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true);46 getDefaultResourceGroup(), true); 44 47 } 45 48 -
code/branches/kicklib/src/libraries/core/Resource.h
r7401 r8081 137 137 138 138 //! Name of the default resource group (usually "General") 139 static std::string DEFAULT_GROUP;139 static const std::string& getDefaultResourceGroup(); 140 140 141 141 private: -
code/branches/kicklib/src/libraries/tools/ResourceCollection.cc
r7401 r8081 45 45 46 46 // Default group is "General" 47 this->setResourceGroup(Resource:: DEFAULT_GROUP);47 this->setResourceGroup(Resource::getDefaultResourceGroup()); 48 48 } 49 49 -
code/branches/kicklib/src/modules/designtools/ScreenshotManager.cc
r7284 r8081 12 12 #include "core/GraphicsManager.h" 13 13 #include "core/PathConfig.h" 14 #include "core/Resource.h" 14 15 #include "core/command/ConsoleCommand.h" 15 16 … … 40 41 //create temporary texture 41 42 mTempTex = Ogre::TextureManager::getSingleton().createManual("ScreenShotTex", 42 Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, Ogre::TEX_TYPE_2D,43 43 Resource::getDefaultResourceGroup(), Ogre::TEX_TYPE_2D, 44 mWindowWidth, mWindowHeight,0, Ogre::PF_B8G8R8, Ogre::TU_RENDERTARGET); 44 45 45 46 //get The current Render Target of the temp Texture
Note: See TracChangeset
for help on using the changeset viewer.