Changeset 1686 for code/branches/gui/src/orxonox/gamestates/GSGraphics.h
- Timestamp:
- Aug 31, 2008, 2:37:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSGraphics.h
r1674 r1686 32 32 #include "OrxonoxPrereqs.h" 33 33 #include <OgrePrerequisites.h> 34 #include <OgreWindowEventUtilities.h> 34 35 #include "core/GameState.h" 35 36 #include "core/OrxonoxClass.h" … … 37 38 namespace orxonox 38 39 { 39 class _OrxonoxExport GSGraphics : public GameState, public OrxonoxClass 40 class _OrxonoxExport GSGraphics : public GameState, public OrxonoxClass, public Ogre::WindowEventListener 40 41 { 42 friend class ClassIdentifier<GSGraphics>; 41 43 public: 42 44 GSGraphics(); 43 45 ~GSGraphics(); 44 45 void setConfigValues();46 46 47 47 private: … … 50 50 void ticked(const Clock& time); 51 51 52 void setConfigValues(); 53 54 void declareResources(); 55 void loadRenderer(); 56 void initialiseResources(); 57 58 void printScreen(); 59 60 // window events from Ogre::WindowEventListener 61 void windowMoved (Ogre::RenderWindow* rw); 62 void windowResized (Ogre::RenderWindow* rw); 63 void windowFocusChanged(Ogre::RenderWindow* rw); 64 void windowClosed (Ogre::RenderWindow* rw); 65 52 66 Ogre::Root* ogreRoot_; 53 GraphicsEngine* graphicsEngine_; //!< pointer to GraphicsEngine instance 67 Ogre::RenderWindow* renderWindow_; //!< the current render window 68 Ogre::Viewport* viewport_; //!< default full size viewport 69 70 // managed singletons 54 71 InputManager* inputManager_; 55 72 InGameConsole* console_; … … 62 79 unsigned long statisticsStartCount_; 63 80 unsigned int tickTime_; 81 82 // config values 83 std::string resourceFile_; //!< resources file name 84 unsigned int detailLevelParticle_; //!< Detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 64 85 }; 65 86 }
Note: See TracChangeset
for help on using the changeset viewer.