Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/script/src/orxonox/GraphicsEngine.h @ 924

Last change on this file since 924 was 924, checked in by bknecht, 17 years ago

those changes enable setting the data-repos via arguments and ini-file

File size: 1.2 KB
RevLine 
[612]1/**
[614]2  @file GraphicsEngine.h
[612]3  @brief Graphics Engine
4  @author Benjamin Knecht <beni_at_orxonox.net>
5 */
6
[673]7#ifndef _GraphicsEngine_H__
8#define _GraphicsEngine_H__
[612]9
[715]10#include <string>
11
[612]12#include <OgreRoot.h>
13#include <OgreSceneManager.h>
14
[729]15#include "OrxonoxPrereqs.h"
[911]16#include "core/BaseObject.h"
[612]17
[729]18
[612]19namespace orxonox {
20
21/**
22   * graphics engine manager class
23 */
[911]24  class _OrxonoxExport GraphicsEngine : public BaseObject
25  {
[612]26    public:
27      GraphicsEngine();
[715]28      inline void setConfigPath(std::string path) { this->configPath_ = path; };
[612]29      // find a better way for this
30      inline Ogre::Root* getRoot() { return root_; };
[911]31      void setConfigValues();
[612]32      void setup();
[911]33      bool load(std::string path);
[715]34      void loadRessourceLocations(std::string path);
[612]35      Ogre::SceneManager* getSceneManager();
36      void startRender();
37
38      virtual ~GraphicsEngine();
39    private:
40      Ogre::Root*         root_;        //!< Ogre's root
[715]41      std::string         configPath_;  //!< path to config file
42      std::string         dataPath_;    //!< path to data file
[612]43      Ogre::SceneManager* scene_;       //!< scene manager of the game
[924]44      //bool               bOverwritePath_; //!< overwrites path
[612]45
46  };
47
48}
49
[673]50#endif /* _GraphicsEngine_H__ */
Note: See TracBrowser for help on using the repository browser.