Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2008, 2:37:00 PM (17 years ago)
Author:
rgrieder
Message:

Moved most of the GraphicsEngine code to GSRoot and GSGraphics.
GraphicsEngine is now more of a legacy object to ensure functionality until there is a new solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/orxonox/gamestates/GSGraphics.h

    r1674 r1686  
    3232#include "OrxonoxPrereqs.h"
    3333#include <OgrePrerequisites.h>
     34#include <OgreWindowEventUtilities.h>
    3435#include "core/GameState.h"
    3536#include "core/OrxonoxClass.h"
     
    3738namespace orxonox
    3839{
    39     class _OrxonoxExport GSGraphics : public GameState, public OrxonoxClass
     40    class _OrxonoxExport GSGraphics : public GameState, public OrxonoxClass, public Ogre::WindowEventListener
    4041    {
     42        friend class ClassIdentifier<GSGraphics>;
    4143    public:
    4244        GSGraphics();
    4345        ~GSGraphics();
    44 
    45         void setConfigValues();
    4646
    4747    private:
     
    5050        void ticked(const Clock& time);
    5151
     52        void setConfigValues();
     53
     54        void declareResources();
     55        void loadRenderer();
     56        void initialiseResources();
     57
     58        void printScreen();
     59
     60        // window events from Ogre::WindowEventListener
     61        void windowMoved       (Ogre::RenderWindow* rw);
     62        void windowResized     (Ogre::RenderWindow* rw);
     63        void windowFocusChanged(Ogre::RenderWindow* rw);
     64        void windowClosed      (Ogre::RenderWindow* rw);
     65
    5266        Ogre::Root*           ogreRoot_;
    53         GraphicsEngine*       graphicsEngine_;   //!< pointer to GraphicsEngine instance
     67        Ogre::RenderWindow*   renderWindow_;          //!< the current render window
     68        Ogre::Viewport*       viewport_;              //!< default full size viewport
     69
     70        // managed singletons
    5471        InputManager*         inputManager_;
    5572        InGameConsole*        console_;
     
    6279        unsigned long         statisticsStartCount_;
    6380        unsigned int          tickTime_;
     81
     82        // config values
     83        std::string           resourceFile_;          //!< resources file name
     84        unsigned int          detailLevelParticle_;   //!< Detail level of particle effects (0: off, 1: low, 2: normal, 3: high)
    6485    };
    6586}
Note: See TracChangeset for help on using the changeset viewer.