devel/framework/resourcemanager.cpp
//TODO: This is only a resource loader : make it a real resource manager or move it to the game part.
// this is game dependent.
This is only a resource loader : make it a real resource manager or move it to the game part.
this is game dependent.
This is only a resource loader : make it a real resource manager or move it to the game part . this is game dependent .
void CResourceManager::loadAll() {
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/terrains","FileSystem","Terrain");
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/DynaGUI","FileSystem","GUI");
	    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/materials/scripts","FileSystem","General");
	    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/materials/textures","FileSystem","General");
	    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/models","FileSystem","General");
	    Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/fonts","FileSystem","General");
        Ogre::ResourceGroupManager::getSingleton().addResourceLocation("../data/particles","FileSystem","General");
		Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
        loadSounds();
}
void CResourceManager :: loadAll ( ) { Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . addResourceLocation ( " " , " " , " " ) ; Ogre :: ResourceGroupManager :: getSingleton ( ) . initialiseAllResourceGroups ( ) ; loadSounds ( ) ; }
TODO: This is only a resource loader : make it a real resource manager or move it to the game part.
TODO : This is only a resource loader : make it a real resource manager or move it to the game part .
// Ogre::ResourceGroupManager::getSingleton().addResourceLocation("./data","FileSystem","General"); // Ogre::ResourceGroupManager::getSingleton().addResourceLocation("./data/materials/programs","FileSystem","General"); // Ogre::ResourceGroupManager::getSingleton().addResourceLocation("./data/overlays","FileSystem","General"); //        initParticleSystems(); // they are initialised with each scenemanager construction