Changeset 5850 for code/branches/core5/src/libraries/core/Core.cc
- Timestamp:
- Oct 1, 2009, 11:44:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/Core.cc
r5838 r5850 264 264 // create a shell 265 265 this->shell_.reset(new Shell()); 266 267 // Create singletons that always exist (in other libraries) 268 this->rootScope_.reset(new Scope<ScopeID::Root>()); 266 269 } 267 270 … … 289 292 inputManager_->getMousePosition(), graphicsManager_->isFullScreen())); 290 293 294 // Create singletons associated with graphics (in other libraries) 295 graphicsScope_.reset(new Scope<ScopeID::Graphics>()); 296 291 297 unloader.Dismiss(); 292 298 … … 296 302 void Core::unloadGraphics() 297 303 { 298 this->guiManager_.reset();; 299 this->inputManager_.reset();; 304 this->graphicsScope_.reset(); 305 this->guiManager_.reset(); 306 this->inputManager_.reset(); 300 307 this->graphicsManager_.reset(); 301 308 … … 420 427 void Core::preUpdate(const Clock& time) 421 428 { 429 // singletons from other libraries 430 Scope<ScopeID::Root>::update(time); 422 431 if (this->bGraphicsLoaded_) 423 432 { … … 426 435 // process gui events 427 436 this->guiManager_->update(time); 437 // graphics singletons from other libraries 438 Scope<ScopeID::Graphics>::update(time); 428 439 } 429 440 // process thread commands
Note: See TracChangeset
for help on using the changeset viewer.