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/GSRoot.h

    r1674 r1686  
    3131
    3232#include "OrxonoxPrereqs.h"
     33#include <OgreLog.h>
    3334#include "core/RootGameState.h"
     35#include "core/OrxonoxClass.h"
    3436
    3537namespace orxonox
    3638{
    37     class _OrxonoxExport GSRoot : public RootGameState
     39    class _OrxonoxExport GSRoot : public RootGameState, public Ogre::LogListener, public OrxonoxClass
    3840    {
     41        friend class ClassIdentifier<GSRoot>;
    3942    public:
    4043        GSRoot();
     
    5154        void ticked(const Clock& time);
    5255
     56        void setConfigValues();
     57        void messageLogged(const std::string& message, Ogre::LogMessageLevel lml,
     58            bool maskDebug, const std::string& logName);
    5359        void setThreadAffinity();
     60        void setupOgre();
    5461
    5562        Settings*             settings_;
     63        Ogre::Root*           ogreRoot_;                  //!< Ogre's root
     64        Ogre::LogManager*     ogreLogger_;
    5665        GraphicsEngine*       graphicsEngine_;   //!< Interface to Ogre
     66
     67        std::string           ogreConfigFile_;        //!< ogre config file name
     68        std::string           ogrePluginsFile_;       //!< ogre plugins file name
     69        std::string           ogreLogFile_;           //!< log file name for Ogre log messages
     70        int                   ogreLogLevelTrivial_;   //!< Corresponding Orxonx debug level for LL_TRIVIAL
     71        int                   ogreLogLevelNormal_;    //!< Corresponding Orxonx debug level for LL_NORMAL
     72        int                   ogreLogLevelCritical_;  //!< Corresponding Orxonx debug level for LL_CRITICAL
    5773    };
    5874}
Note: See TracChangeset for help on using the changeset viewer.