Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ticket #348: stub.txt

File stub.txt, 1.2 KB (added by landauf, 15 years ago)
Line 
1        if (GameMode::showsGraphics())
2        {
3            assert(Ogre::Root::getSingletonPtr());
4            this->sceneManager_ = Ogre::Root::getSingleton().createSceneManager("BspSceneManager");
5            this->rootSceneNode_ = this->sceneManager_->getRootSceneNode();
6
7            this->radar_ = new Radar();
8
9            std::string mQuakePk3 = PathConfig::getExternalDataPathString() + "/packs/chiropteraDM.pk3";
10            std::string mQuakeLevel = "maps/chiropteradm.bsp";
11
12            Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
13                mQuakePk3, "Zip", Ogre::ResourceGroupManager::getSingleton().getWorldResourceGroupName(), true);
14
15            Ogre::ResourceGroupManager::getSingleton().linkWorldGeometryToResourceGroup(
16                Ogre::ResourceGroupManager::getSingleton().getWorldResourceGroupName(),
17                mQuakeLevel, this->sceneManager_);
18
19            Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
20
21            Ogre::ResourceGroupManager::getSingleton().loadResourceGroup(
22                Ogre::ResourceGroupManager::getSingleton().getWorldResourceGroupName(),
23                false, true);
24
25        }