Last change
on this file since 473 was
462,
checked in by bknecht, 17 years ago
|
got my work to compile (it's all hacked together and I dunno if it runs)
- orxonox.h we got now a real .h file for our main class
- orxonox.cc this is the all hacked class. We/I have to strip that clean
- orxonoxOld.cc "You did something wrong, the old implementation was SOO much better"
- graphicsEngine we should have a wrapper around ogre so we have a real graphics module
- main.cc created a main again doing all the platform depending stuff in there.. (hope this works)
think that's all…
|
File size:
1012 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 | using namespace Ogre; |
---|
17 | /** |
---|
18 | * graphics engine manager class |
---|
19 | */ |
---|
20 | class GraphicsEngine { |
---|
21 | public: |
---|
22 | GraphicsEngine(); |
---|
23 | inline void setConfigPath(std::string path) { this->configPath_ = path; }; |
---|
24 | // find a better way for this |
---|
25 | inline Ogre::Root* getRoot() { return root_; }; |
---|
26 | void setup(); |
---|
27 | bool load(); |
---|
28 | void loadRessourceLocations(std::string path); |
---|
29 | SceneManager* getSceneManager(); |
---|
30 | void startRender(); |
---|
31 | |
---|
32 | virtual ~GraphicsEngine(); |
---|
33 | private: |
---|
34 | Ogre::Root* root_; //!< Ogre's root |
---|
35 | std::string configPath_; //!< path to config file |
---|
36 | std::string dataPath_; //!< path to data file |
---|
37 | Ogre::SceneManager* scene_; //!< scene manager of the game |
---|
38 | |
---|
39 | }; |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | #endif |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.