Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8288 for code/branches


Ignore:
Timestamp:
Apr 21, 2011, 8:29:30 PM (14 years ago)
Author:
rgrieder
Message:

Resource::DEFAULT_GROUP has been replaced and Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME should not be used anymore in Orxonox.

Location:
code/branches/kicklib2/src/modules/designtools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib2/src/modules/designtools/ScreenshotManager.cc

    r8284 r8288  
    111111
    112112            // 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);
    114116
    115117            // Get the current render target of the temporary texture
  • code/branches/kicklib2/src/modules/designtools/SkyboxGenerator.cc

    r8234 r8288  
    172172                this->setupRenderWindow(renderWindow);
    173173                // 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());
    175175               
    176176                COUT(4) << "Setting up SkyboxGenerator..." << endl;
     
    207207                this->restoreRenderWindow(renderWindow);
    208208                // 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());
    210210               
    211211                // Reset the flow parameters for the next skybox generation.
     
    310310        // If someone figures this out, feel free to adjust.
    311311        image = new Ogre::Image();
    312         image->load(name, Resource::DEFAULT_GROUP);
     312        image->load(name, Resource::getDefaultResourceGroup());
    313313        image->resize(this->size_, this->size_);
    314314        image->save(PathConfig::getInstance().getLogPathString()+name);
Note: See TracChangeset for help on using the changeset viewer.