MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / loadResources

Method loadResources

Samples/2.0/Common/src/GraphicsSystem.cpp:813–839  ·  view source on GitHub ↗

-----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

811 }
812 //-----------------------------------------------------------------------------------
813 void GraphicsSystem::loadResources()
814 {
815 registerHlms();
816
817 loadTextureCache();
818 loadHlmsDiskCache();
819
820 // Initialise, parse scripts etc
821 Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups( true );
822
823 // Initialize resources for LTC area lights and accurate specular reflections (IBL)
824 Ogre::Hlms *hlms = mRoot->getHlmsManager()->getHlms( Ogre::HLMS_PBS );
825 OGRE_ASSERT_HIGH( dynamic_cast<Ogre::HlmsPbs *>( hlms ) );
826 Ogre::HlmsPbs *hlmsPbs = static_cast<Ogre::HlmsPbs *>( hlms );
827 try
828 {
829 hlmsPbs->loadLtcMatrix();
830 }
831 catch( Ogre::FileNotFoundException &e )
832 {
833 Ogre::LogManager::getSingleton().logMessage( e.getFullDescription(), Ogre::LML_CRITICAL );
834 Ogre::LogManager::getSingleton().logMessage(
835 "WARNING: LTC matrix textures could not be loaded. Accurate specular IBL reflections "
836 "and LTC area lights won't be available or may not function properly!",
837 Ogre::LML_CRITICAL );
838 }
839 }
840 //-----------------------------------------------------------------------------------
841 void GraphicsSystem::chooseSceneManager()
842 {

Callers

nothing calls this directly

Calls 6

getHlmsMethod · 0.80
getHlmsManagerMethod · 0.80
loadLtcMatrixMethod · 0.80
registerHlmsFunction · 0.50
logMessageMethod · 0.45

Tested by

no test coverage detected