Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/graphicsEngine.h @ 609

Last change on this file since 609 was 609, checked in by rgrieder, 16 years ago
  • removed all the "using namespace Ogre" in the header files
  • cleaned up the orxonox.cc header a little bit (every Ogre class referenced is now included via header file)
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
14namespace 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.