Changeset 1891 for code/trunk/src/orxonox/gamestates/GSGraphics.h
- Timestamp:
- Oct 6, 2008, 7:39:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSGraphics.h
r1878 r1891 39 39 namespace orxonox 40 40 { 41 class _OrxonoxExport GSGraphics : public GameState<GSRoot>, public OrxonoxClass, public Ogre::WindowEventListener 41 class _OrxonoxExport GSGraphics : public GameState<GSRoot>, public OrxonoxClass, 42 public Ogre::WindowEventListener, public Ogre::LogListener 42 43 { 43 44 friend class ClassIdentifier<GSGraphics>; 45 44 46 public: 45 47 GSGraphics(); 46 48 ~GSGraphics(); 47 49 48 Ogre::Viewport* getViewport() { return this->viewport_; } 49 GUIManager* getGUIManager() { return this->guiManager_; } 50 Ogre::Root* getOgreRoot() { return this->ogreRoot_ ; } 51 Ogre::Viewport* getViewport() { return this->viewport_ ; } 52 GUIManager* getGUIManager() { return this->guiManager_; } 50 53 51 private: 54 private: // functions 52 55 void enter(); 53 56 void leave(); … … 56 59 void setConfigValues(); 57 60 61 void setupOgre(); 58 62 void declareResources(); 59 63 void loadRenderer(); 60 64 void initialiseResources(); 61 65 66 // console commands 62 67 void printScreen(); 68 69 // event from Ogre::LogListener 70 void messageLogged(const std::string& message, Ogre::LogMessageLevel lml, 71 bool maskDebug, const std::string& logName); 63 72 64 73 // window events from Ogre::WindowEventListener … … 68 77 void windowClosed (Ogre::RenderWindow* rw); 69 78 70 Ogre::Root* ogreRoot_;79 private: // variables 71 80 Ogre::RenderWindow* renderWindow_; //!< the current render window 72 81 Ogre::Viewport* viewport_; //!< default full size viewport … … 76 85 InGameConsole* console_; 77 86 GUIManager* guiManager_; 87 Ogre::Root* ogreRoot_; //!< Ogre's root 88 Ogre::LogManager* ogreLogger_; 89 GraphicsEngine* graphicsEngine_; //!< Interface to Ogre 78 90 79 91 KeyBinder* masterKeyBinder_; … … 88 100 // config values 89 101 std::string resourceFile_; //!< resources file name 102 std::string ogreConfigFile_; //!< ogre config file name 103 std::string ogrePluginsFile_; //!< ogre plugins file name 104 std::string ogreLogFile_; //!< log file name for Ogre log messages 105 int ogreLogLevelTrivial_; //!< Corresponding Orxonx debug level for LL_TRIVIAL 106 int ogreLogLevelNormal_; //!< Corresponding Orxonx debug level for LL_NORMAL 107 int ogreLogLevelCritical_; //!< Corresponding Orxonx debug level for LL_CRITICAL 90 108 unsigned int detailLevelParticle_; //!< Detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 91 109 };
Note: See TracChangeset
for help on using the changeset viewer.