Changeset 5614 for code/branches/resource2/src/core/Core.cc
- Timestamp:
- Aug 10, 2009, 5:36:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/src/core/Core.cc
r3370 r5614 313 313 // creates the class hierarchy for all classes with factories 314 314 Factory::createClassHierarchy(); 315 316 // Load OGRE excluding the renderer and the render window 317 this->graphicsManager_.reset(new GraphicsManager(false)); 315 318 } 316 319 … … 328 331 return; 329 332 330 // Load OGRE including therender window331 scoped_ptr<GraphicsManager> graphicsManager(new GraphicsManager());333 // Upgrade OGRE to receive a render window 334 graphicsManager_->upgradeToGraphics(); 332 335 333 336 // The render window width and height are used to set up the mouse movement. 334 337 size_t windowHnd = 0; 335 graphicsManager ->getRenderWindow()->getCustomAttribute("WINDOW", &windowHnd);338 graphicsManager_->getRenderWindow()->getCustomAttribute("WINDOW", &windowHnd); 336 339 337 340 // Calls the InputManager which sets up the input devices. … … 339 342 340 343 // load the CEGUI interface 341 guiManager_.reset(new GUIManager(graphicsManager->getRenderWindow())); 342 343 // Dismiss scoped pointers 344 graphicsManager_.swap(graphicsManager); 344 guiManager_.reset(new GUIManager(graphicsManager_->getRenderWindow())); 345 346 // Dismiss scoped pointer 345 347 inputManager_.swap(inputManager); 346 348 … … 356 358 this->inputManager_.reset();; 357 359 this->graphicsManager_.reset(); 360 361 // Load Ogre::Root again, but without the render system 362 this->graphicsManager_.reset(new GraphicsManager(false)); 358 363 359 364 bGraphicsLoaded_ = false;
Note: See TracChangeset
for help on using the changeset viewer.