Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/GraphicsEngine.h @ 808

Last change on this file since 808 was 790, checked in by nicolasc, 17 years ago

merged FICN back into trunk
awaiting release.

File size: 1.1 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#include "OrxonoxPrereqs.h"
16
17
18namespace orxonox {
19
20/**
21   * graphics engine manager class
22 */
23  class _OrxonoxExport GraphicsEngine {
24    public:
25      GraphicsEngine();
26      inline void setConfigPath(std::string path) { this->configPath_ = path; };
27      // find a better way for this
28      inline Ogre::Root* getRoot() { return root_; };
29      void setup();
30      bool load();
31      void loadRessourceLocations(std::string path);
32      Ogre::SceneManager* getSceneManager();
33      void startRender();
34
35      virtual ~GraphicsEngine();
36    private:
37      Ogre::Root*         root_;        //!< Ogre's root
38      std::string         configPath_;  //!< path to config file
39      std::string         dataPath_;    //!< path to data file
40      Ogre::SceneManager* scene_;       //!< scene manager of the game
41
42  };
43
44}
45
46#endif /* _GraphicsEngine_H__ */
Note: See TracBrowser for help on using the repository browser.