Exemple #1
0
void IntroChapter::LoadResource()
{
	ResourceGroupManager::getSingletonPtr()->addResourceLocation("Media/Texture", "FileSystem", "IntroChapter");
	ResourceGroupManager::getSingletonPtr()->addResourceLocation("Media/Script",  "FileSystem", "IntroChapter");
	ResourceGroupManager::getSingletonPtr()->addResourceLocation("Media/Mesh",    "FileSystem", "IntroChapter");

	Loading loding;
	loding.start( m_pkWindow );

	m_pkSceneManager->clearSpecialCaseRenderQueues();
	m_pkSceneManager->addSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY);
	m_pkSceneManager->setSpecialCaseRenderQueueMode(SceneManager::SCRQM_INCLUDE);

	// Initialise the rest of the resource groups, parse scripts etc
	Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("IntroChapter");
	ResourceGroupManager::getSingleton().loadResourceGroup(
		"IntroChapter",	false, true);


	m_pkSceneManager->clearSpecialCaseRenderQueues();
	m_pkSceneManager->setSpecialCaseRenderQueueMode(SceneManager::SCRQM_EXCLUDE);

	loding.finish();


}
Exemple #2
0
void CcdChapter::LoadResource()
{
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation("BaseBall", "FileSystem", ResourceGroup);
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation("TerrainChapter", "FileSystem", ResourceGroup);


	Loading loding;
	loding.start( m_pkWindow );

	m_pkSceneManager->clearSpecialCaseRenderQueues();
	m_pkSceneManager->addSpecialCaseRenderQueue(RENDER_QUEUE_OVERLAY);
	m_pkSceneManager->setSpecialCaseRenderQueueMode(SceneManager::SCRQM_INCLUDE);

	Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup(ResourceGroup);

	m_pkSceneManager->clearSpecialCaseRenderQueues();
	m_pkSceneManager->setSpecialCaseRenderQueueMode(SceneManager::SCRQM_EXCLUDE);

	loding.finish();
}