42 #ifndef _GraphicsManager_H__ 43 #define _GraphicsManager_H__ 78 void setConfigValues();
80 void postUpdate(
const Clock& time);
85 size_t getRenderWindowHandle();
90 bool isFullScreen()
const;
91 unsigned int getWindowWidth()
const;
92 unsigned int getWindowHeight()
const;
94 bool hasVSyncEnabled()
const;
98 void upgradeToGraphics();
99 void loadDebugOverlay();
100 void unloadDebugOverlay();
103 void setCamera(Ogre::Camera* camera);
112 void loadOgrePlugins();
116 #if OGRE_VERSION >= 0x010800 117 virtual void messageLogged(
const std::string&
message, Ogre::LogMessageLevel lml,
bool maskDebug,
const std::string& logName,
bool& skipThisMessage)
override;
119 virtual void messageLogged(
const std::string& message, Ogre::LogMessageLevel lml,
bool maskDebug,
const std::string& logName)
override;
124 std::string setScreenResolution(
unsigned int width,
unsigned int height,
bool fullscreen);
std::string ogrePlugins_
Comma separated list of all plugins to load.
Definition: GraphicsManager.h:145
Ogre::Viewport * viewport_
default full size viewport
Definition: GraphicsManager.h:132
Ogre::RenderWindow * getRenderWindow()
Definition: GraphicsManager.h:83
DestructionHelper< GraphicsManager > destructionHelper_
Helper object that executes the surrogate destructor destroy()
Definition: GraphicsManager.h:149
std::string ogreLogFile_
log filename for Ogre log messages
Definition: GraphicsManager.h:146
Ogre::Root * ogreRoot_
Ogre's root.
Definition: GraphicsManager.h:130
Shared library macros, enums, constants and forward declarations for the core library ...
::std::string string
Definition: gtest-port.h:756
static GraphicsManager * singletonPtr_s
Pointer to the Singleton.
Definition: GraphicsManager.h:151
float lastFrameEndTime_
Time stamp of the end of the last frame.
Definition: GraphicsManager.h:136
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
The MetaPickup destroys all the PickupCarriers' Pickupables.
This is the base class of all objects which may contain config values.
Definition: Configurable.h:47
float lastFrameStartTime_
Time stamp of the beginning of the last frame.
Definition: GraphicsManager.h:135
static GraphicsManager & getInstance()
Definition: GraphicsManager.h:88
Ogre::LogManager * ogreLogger_
Definition: GraphicsManager.h:129
Base for singleton classes.
Definition: Singleton.h:114
Graphics engine manager class.
Definition: GraphicsManager.h:65
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
#define _CoreExport
Definition: CorePrereqs.h:61
Utility class that helps to create a special kind of destructor that also executes if the destruction...
Definition: DestructionHelper.h:75
std::shared_ptr< XMLFile > extResources_
XML with resource locations in the external path (only for dev runs)
Definition: GraphicsManager.h:140
Declaration of Configurable, the base class of all objects which may contain config values...
Ogre::OverlaySystem * overlaySystem_
Definition: GraphicsManager.h:133
std::shared_ptr< XMLFile > resources_
XML with resource locations.
Definition: GraphicsManager.h:139
Ogre::OverlaySystem * getOverlaySystem()
Definition: GraphicsManager.h:84
Definition of the Singleton template that is used as base class for classes that allow only one insta...
Definition: GlowMaterialListener.h:9
Simple real time clock based on Ogre::Timer.
Definition: Clock.h:57
bool rendererLoaded() const
Definition: GraphicsManager.h:101
OgreWindowEventListener * ogreWindowEventListener_
Pimpl to hide OgreWindowUtilities.h.
Definition: GraphicsManager.h:128
GlowMaterialListener * glowMaterialListener_
Material Listener for the 'Glow' compositor.
Definition: GraphicsManager.h:134
Ogre::RenderWindow * renderWindow_
the one and only render window
Definition: GraphicsManager.h:131
std::shared_ptr< XMLFile > debugOverlay_
XML with various debug overlays.
Definition: GraphicsManager.h:141
static T & getInstance()
Returns a reference to the singleton instance.
Definition: Singleton.h:118
Definition: GraphicsManager.cc:86
std::string ogreConfigFile_
ogre config filename
Definition: GraphicsManager.h:144
Ogre::Viewport * getViewport()
Definition: GraphicsManager.h:82