Last change
on this file since 768 was
729,
checked in by rgrieder, 17 years ago
|
- fixed multiple template instantiation problem under windows
- removed some warnings by introducing explicit casts
|
File size:
1.1 KB
|
Rev | Line | |
---|
[612] | 1 | /** |
---|
[614] | 2 | @file GraphicsEngine.h |
---|
[612] | 3 | @brief Graphics Engine |
---|
| 4 | @author Benjamin Knecht <beni_at_orxonox.net> |
---|
| 5 | */ |
---|
| 6 | |
---|
[673] | 7 | #ifndef _GraphicsEngine_H__ |
---|
| 8 | #define _GraphicsEngine_H__ |
---|
[612] | 9 | |
---|
[715] | 10 | #include <string> |
---|
| 11 | |
---|
[612] | 12 | #include <OgreRoot.h> |
---|
| 13 | #include <OgreSceneManager.h> |
---|
| 14 | |
---|
[729] | 15 | #include "OrxonoxPrereqs.h" |
---|
[612] | 16 | |
---|
[729] | 17 | |
---|
[612] | 18 | namespace orxonox { |
---|
| 19 | |
---|
| 20 | /** |
---|
| 21 | * graphics engine manager class |
---|
| 22 | */ |
---|
[729] | 23 | class _OrxonoxExport GraphicsEngine { |
---|
[612] | 24 | public: |
---|
| 25 | GraphicsEngine(); |
---|
[715] | 26 | inline void setConfigPath(std::string path) { this->configPath_ = path; }; |
---|
[612] | 27 | // find a better way for this |
---|
| 28 | inline Ogre::Root* getRoot() { return root_; }; |
---|
| 29 | void setup(); |
---|
| 30 | bool load(); |
---|
[715] | 31 | void loadRessourceLocations(std::string path); |
---|
[612] | 32 | Ogre::SceneManager* getSceneManager(); |
---|
| 33 | void startRender(); |
---|
| 34 | |
---|
| 35 | virtual ~GraphicsEngine(); |
---|
| 36 | private: |
---|
| 37 | Ogre::Root* root_; //!< Ogre's root |
---|
[715] | 38 | std::string configPath_; //!< path to config file |
---|
| 39 | std::string dataPath_; //!< path to data file |
---|
[612] | 40 | Ogre::SceneManager* scene_; //!< scene manager of the game |
---|
| 41 | |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | } |
---|
| 45 | |
---|
[673] | 46 | #endif /* _GraphicsEngine_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.