Changeset 1293 for code/trunk/src/orxonox/GraphicsEngine.h
- Timestamp:
- May 15, 2008, 5:44:55 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/GraphicsEngine.h
r1214 r1293 52 52 @brief Graphics engine manager class 53 53 */ 54 class _OrxonoxExport GraphicsEngine : public Ogre::WindowEventListener, public O rxonoxClass, public Ogre::LogListener54 class _OrxonoxExport GraphicsEngine : public Ogre::WindowEventListener, public Ogre::LogListener, public OrxonoxClass 55 55 { 56 friend class ClassIdentifier<GraphicsEngine>;57 56 public: 58 void setConfigPath(std::string path) { this->configPath_ = path; };59 57 void setConfigValues(); 60 void setup(); 61 bool load(std::string path); 62 void loadRessourceLocations(std::string path); 63 Ogre::SceneManager* getSceneManager(); 64 void initialise(); 58 bool setup(std::string& dataPath); 59 void declareRessourceLocations(); 60 bool loadRenderer(); 61 bool initialiseResources(); 62 bool createNewScene(); 63 65 64 void destroy(); 65 66 Ogre::SceneManager* getSceneManager() { return scene_; } 67 std::string& getDataPath() { return dataPath_; } 66 68 67 69 // several window properties … … 71 73 int getWindowHeight() const; 72 74 75 void windowMoved (Ogre::RenderWindow* rw); 76 void windowResized (Ogre::RenderWindow* rw); 77 void windowFocusChanged(Ogre::RenderWindow* rw); 78 void windowClosed (Ogre::RenderWindow* rw); 79 73 80 static GraphicsEngine& getSingleton(); 74 81 static GraphicsEngine* getSingletonPtr() { return &getSingleton(); } 75 76 void windowMoved(Ogre::RenderWindow* rw);77 void windowResized(Ogre::RenderWindow* rw);78 void windowFocusChanged(Ogre::RenderWindow* rw);79 82 80 83 private: … … 92 95 Ogre::RenderWindow* renderWindow_;//!< the current render window 93 96 //bool bOverwritePath_; //!< overwrites path 94 std::string configPath_; //!< path to config file97 //std::string configPath_; //!< path to config file 95 98 std::string dataPath_; //!< path to data file 96 99 std::string ogreLogfile_; //!< log file name for Ogre log messages
Note: See TracChangeset
for help on using the changeset viewer.