- Timestamp:
- Dec 16, 2008, 6:01:13 PM (17 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
-
code/branches/presentation/src/orxonox/gamestates/GSGraphics.cc
r2171 r2485 31 31 32 32 #include <fstream> 33 #include <OgreCompositorManager.h> 33 34 #include <OgreConfigFile.h> 34 35 #include <OgreFrameListener.h> … … 164 165 FunctorMember<GSGraphics>* functor1 = createFunctor(&GSGraphics::printScreen); 165 166 functor1->setObject(this); 166 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor1, "printScreen")); 167 ccPrintScreen_ = createConsoleCommand(functor1, "printScreen"); 168 CommandExecutor::addConsoleCommandShortcut(ccPrintScreen_); 167 169 } 168 170 … … 170 172 { 171 173 using namespace Ogre; 174 175 delete this->ccPrintScreen_; 172 176 173 177 // remove our WindowEventListener first to avoid bad calls after the window has been destroyed … … 184 188 Loader::unload(this->debugOverlay_); 185 189 delete this->debugOverlay_; 190 191 // unload all compositors 192 Ogre::CompositorManager::getSingleton().removeAll(); 186 193 187 194 // destroy render window … … 430 437 // create a full screen default viewport 431 438 this->viewport_ = this->renderWindow_->addViewport(0, 0); 439 440 if (this->graphicsEngine_) 441 this->graphicsEngine_->setViewport(this->viewport_); 432 442 } 433 443
Note: See TracChangeset
for help on using the changeset viewer.