Last change
on this file since 698 was
673,
checked in by rgrieder, 17 years ago
|
- deleted obsolete classes: BaseEntity, Entity, Light and SceneNode (please complain if not agreed)
- improved include guard naming consistency
|
File size:
1023 bytes
|
Line | |
---|
1 | /** |
---|
2 | @file GraphicsEngine.h |
---|
3 | @brief Graphics Engine |
---|
4 | @author Benjamin Knecht <beni_at_orxonox.net> |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GraphicsEngine_H__ |
---|
8 | #define _GraphicsEngine_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 /* _GraphicsEngine_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.