Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/orxonox/GraphicsEngine.h @ 919

Last change on this file since 919 was 919, checked in by rgrieder, 17 years ago
  • AudioManager is now Tickable
  • NPC update moved to its tick-function
  • corrected CMakeLists
  • added a few window properties to GraphicsEngine
  • OrxListener has been completely replaced
File size: 1.3 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      // several window properties
36      size_t getWindowHandle();
37      int getWindowWidth() const;
38      int getWindowHeight() const;
39
40      virtual ~GraphicsEngine();
41    private:
42      Ogre::Root*         root_;        //!< Ogre's root
43      std::string         configPath_;  //!< path to config file
44      std::string         dataPath_;    //!< path to data file
45      Ogre::SceneManager* scene_;       //!< scene manager of the game
46      Ogre::RenderWindow* renderWindow_;//!< the current render window
47
48  };
49
50}
51
52#endif /* _GraphicsEngine_H__ */
Note: See TracBrowser for help on using the repository browser.