Last change
on this file since 658 was
614,
checked in by rgrieder, 17 years ago
|
- curiously (…) under windows there is no difference between orxonox.h and Orxonox.h…
|
File size:
994 bytes
|
Line | |
---|
1 | /** |
---|
2 | @file GraphicsEngine.h |
---|
3 | @brief Graphics Engine |
---|
4 | @author Benjamin Knecht <beni_at_orxonox.net> |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef GRAPHICS_ENGINE_H |
---|
8 | #define GRAPHICS_ENGINE_H |
---|
9 | |
---|
10 | #include <OgreRoot.h> |
---|
11 | #include <OgreSceneManager.h> |
---|
12 | |
---|
13 | |
---|
14 | namespace orxonox { |
---|
15 | |
---|
16 | /** |
---|
17 | * graphics engine manager class |
---|
18 | */ |
---|
19 | class GraphicsEngine { |
---|
20 | public: |
---|
21 | GraphicsEngine(); |
---|
22 | inline void setConfigPath(std::string path) { this->configPath_ = path; }; |
---|
23 | // find a better way for this |
---|
24 | inline Ogre::Root* getRoot() { return root_; }; |
---|
25 | void setup(); |
---|
26 | bool load(); |
---|
27 | void loadRessourceLocations(std::string path); |
---|
28 | Ogre::SceneManager* getSceneManager(); |
---|
29 | void startRender(); |
---|
30 | |
---|
31 | virtual ~GraphicsEngine(); |
---|
32 | private: |
---|
33 | Ogre::Root* root_; //!< Ogre's root |
---|
34 | std::string configPath_; //!< path to config file |
---|
35 | std::string dataPath_; //!< path to data file |
---|
36 | Ogre::SceneManager* scene_; //!< scene manager of the game |
---|
37 | |
---|
38 | }; |
---|
39 | |
---|
40 | } |
---|
41 | |
---|
42 | #endif |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.