Changeset 929 for code/branches/network/src/orxonox/GraphicsEngine.h
- Timestamp:
- Mar 26, 2008, 11:39:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/GraphicsEngine.h
r926 r929 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" 16 #include "core/ BaseObject.h"17 #include "core/OrxonoxClass.h" 17 18 18 19 … … 22 23 * graphics engine manager class 23 24 */ 24 class _OrxonoxExport GraphicsEngine : public BaseObject25 class _OrxonoxExport GraphicsEngine : public OrxonoxClass 25 26 { 26 27 public: … … 28 29 inline void setConfigPath(std::string path) { this->configPath_ = path; }; 29 30 // find a better way for this 30 inline Ogre::Root* getRoot() { return root_; };31 //inline Ogre::Root* getRoot() { return root_; }; 31 32 void setConfigValues(); 32 33 void setup(); … … 34 35 void loadRessourceLocations(std::string path); 35 36 Ogre::SceneManager* getSceneManager(); 36 void startRender();37 void initialise(); 37 38 38 39 // several window properties 40 Ogre::RenderWindow* getRenderWindow() { return this->renderWindow_; } 39 41 size_t getWindowHandle(); 40 42 int getWindowWidth() const; 41 43 int getWindowHeight() const; 42 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(); } 52 43 53 virtual ~GraphicsEngine(); 54 44 55 private: 45 56 Ogre::Root* root_; //!< Ogre's root
Note: See TracChangeset
for help on using the changeset viewer.