Changeset 1021 for code/trunk/src/orxonox/GraphicsEngine.h
- Timestamp:
- Apr 10, 2008, 5:03:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/GraphicsEngine.h
r790 r1021 10 10 #include <string> 11 11 12 #include <OgrePrerequisites.h> 12 13 #include <OgreRoot.h> 13 14 #include <OgreSceneManager.h> 14 15 15 16 #include "OrxonoxPrereqs.h" 17 #include "core/OrxonoxClass.h" 16 18 17 19 … … 21 23 * graphics engine manager class 22 24 */ 23 class _OrxonoxExport GraphicsEngine { 25 class _OrxonoxExport GraphicsEngine : public OrxonoxClass 26 { 24 27 public: 25 28 GraphicsEngine(); 26 29 inline void setConfigPath(std::string path) { this->configPath_ = path; }; 27 30 // find a better way for this 28 inline Ogre::Root* getRoot() { return root_; }; 31 //inline Ogre::Root* getRoot() { return root_; }; 32 void setConfigValues(); 29 33 void setup(); 30 bool load( );34 bool load(std::string path); 31 35 void loadRessourceLocations(std::string path); 32 36 Ogre::SceneManager* getSceneManager(); 33 void startRender(); 37 void initialise(); 38 39 // several window properties 40 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 41 size_t getWindowHandle(); 42 int getWindowWidth() const; 43 int getWindowHeight() const; 44 45 // Ogre Root access for Orxonox 46 void frameStarted(Ogre::FrameEvent &evt) 47 { if (root_) root_->_fireFrameStarted(evt); } 48 void frameEnded (Ogre::FrameEvent &evt) 49 { if (root_) root_->_fireFrameEnded(evt); } 50 void renderOneFrame() 51 { if (root_) root_->_updateAllRenderTargets(); } 34 52 35 53 virtual ~GraphicsEngine(); 54 36 55 private: 37 56 Ogre::Root* root_; //!< Ogre's root … … 39 58 std::string dataPath_; //!< path to data file 40 59 Ogre::SceneManager* scene_; //!< scene manager of the game 60 Ogre::RenderWindow* renderWindow_;//!< the current render window 61 //bool bOverwritePath_; //!< overwrites path 41 62 42 63 };
Note: See TracChangeset
for help on using the changeset viewer.