Changeset 5875 for code/branches/core5/src
- Timestamp:
- Oct 4, 2009, 11:05:17 PM (15 years ago)
- Location:
- code/branches/core5/src/libraries/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/core/Core.cc
r5869 r5875 293 293 inputManager_->getMousePosition(), graphicsManager_->isFullScreen())); 294 294 295 bGraphicsLoaded_ = true; 296 GameMode::bShowsGraphics_s = true; 297 295 298 // Create singletons associated with graphics (in other libraries) 296 299 graphicsScope_.reset(new Scope<ScopeID::Graphics>()); 297 300 298 301 unloader.Dismiss(); 299 300 bGraphicsLoaded_ = true;301 302 } 302 303 … … 320 321 321 322 bGraphicsLoaded_ = false; 323 GameMode::bShowsGraphics_s = false; 322 324 } 323 325 -
code/branches/core5/src/libraries/core/Game.cc
r5868 r5875 523 523 void Game::loadGraphics() 524 524 { 525 if (!GameMode:: bShowsGraphics_s)525 if (!GameMode::showsGraphics()) 526 526 { 527 527 core_->loadGraphics(); 528 528 Loki::ScopeGuard graphicsUnloader = Loki::MakeObjGuard(*this, &Game::unloadGraphics); 529 GameMode::bShowsGraphics_s = true;530 529 531 530 // Construct all the GameStates that require graphics … … 548 547 void Game::unloadGraphics() 549 548 { 550 if (GameMode:: bShowsGraphics_s)549 if (GameMode::showsGraphics()) 551 550 { 552 551 // Destroy all the GameStates that require graphics … … 560 559 561 560 core_->unloadGraphics(); 562 GameMode::bShowsGraphics_s = false;563 561 } 564 562 } -
code/branches/core5/src/libraries/core/GameMode.h
r5738 r5875 41 41 class _CoreExport GameMode 42 42 { 43 friend class Game;43 friend class Core; 44 44 45 45 public:
Note: See TracChangeset
for help on using the changeset viewer.