Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/GraphicsEngine.h @ 715

Last change on this file since 715 was 715, checked in by rgrieder, 16 years ago
  • the master has spoken…
  • misc/String.h is not anymore..
File size: 1.0 KB
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 <string>
11
12#include <OgreRoot.h>
13#include <OgreSceneManager.h>
14
15
16namespace orxonox {
17
18/**
19   * graphics engine manager class
20 */
21  class GraphicsEngine {
22    public:
23      GraphicsEngine();
24      inline void setConfigPath(std::string path) { this->configPath_ = path; };
25      // find a better way for this
26      inline Ogre::Root* getRoot() { return root_; };
27      void setup();
28      bool load();
29      void loadRessourceLocations(std::string path);
30      Ogre::SceneManager* getSceneManager();
31      void startRender();
32
33      virtual ~GraphicsEngine();
34    private:
35      Ogre::Root*         root_;        //!< Ogre's root
36      std::string         configPath_;  //!< path to config file
37      std::string         dataPath_;    //!< path to data file
38      Ogre::SceneManager* scene_;       //!< scene manager of the game
39
40  };
41
42}
43
44#endif /* _GraphicsEngine_H__ */
Note: See TracBrowser for help on using the repository browser.