| 
                Last change
                  on this file since 713 was
                  708,
                  checked in by rgrieder, 18 years ago
           | 
        
        
          
              - added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files
(each of them contains #include <string> … typedef std::string String , etc.)
 - please use String from now on by including <misc/String.h"
 - removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
 - adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
 - moved usleep hack to misc/Sleep.h
 - relative include paths for files from other root directories (like misc, network, etc.)
(but it stills writes "../Orxonox.h" when in folder orxonox/objects)
 - "OgreSceneManager.h" —> <OgreSceneManager.h>
 - included OrxonoxPrereqs in every file in folder orxonox
 - moved HUD and ParticleInterface to namespace orxonox
 - removed some using namespace Ogre/std when appropriate
 - I hope I haven't forgotten important points..
  
           | 
        
        | 
            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 <OgreRoot.h> | 
|---|
| 11 | #include <OgreSceneManager.h> | 
|---|
| 12 |  | 
|---|
| 13 | #include "misc/String.h" | 
|---|
| 14 |  | 
|---|
| 15 |  | 
|---|
| 16 | namespace orxonox { | 
|---|
| 17 |  | 
|---|
| 18 | /** | 
|---|
| 19 |    * graphics engine manager class | 
|---|
| 20 |  */ | 
|---|
| 21 |   class GraphicsEngine { | 
|---|
| 22 |     public: | 
|---|
| 23 |       GraphicsEngine(); | 
|---|
| 24 |       inline void setConfigPath(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(String path); | 
|---|
| 30 |       Ogre::SceneManager* getSceneManager(); | 
|---|
| 31 |       void startRender(); | 
|---|
| 32 |  | 
|---|
| 33 |       virtual ~GraphicsEngine(); | 
|---|
| 34 |     private: | 
|---|
| 35 |       Ogre::Root*         root_;        //!< Ogre's root | 
|---|
| 36 |       String         configPath_;  //!< path to config file | 
|---|
| 37 |       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.