25 #ifndef GRAPHICS_WINDOWMAN_H 26 #define GRAPHICS_WINDOWMAN_H 137 #define WindowMan Graphics::WindowManager::instance() 139 #endif // GRAPHICS_WINDOWMAN_H int getWindowHeight() const
Return the current window height.
void showCursor(bool show)
Show/Hide the cursor.
Class and macro for implementing singletons.
Common::UString _windowTitle
The current window title.
A class holding an UTF-8 string.
int _width
The game's window width.
int getSystemHeight() const
Return the system's screen height.
void deinit()
Deinitialize the window manager.
SDL_Window * _window
The OpenGL hardware surface.
int getSystemWidth() const
Return the system's screen width.
int _fsaaMax
Max supported FSAA level.
void setWindowSize(int width, int height)
Set the window size.
bool initRender(RenderType type, bool useDebug, int fsaa)
Setup the Render Context on the window.
void init()
Initialize the window manager.
Common::Mutex _cursorMutex
A mutex locked for the cursor.
Generic template base class for implementing the singleton design pattern.
CursorState _cursorState
What to do with the cursor.
float getGamma() const
Get the overall gamma correction.
int getWindowWidth() const
Return the current window width.
int getMaxFSAA() const
Return the max supported FSAA level.
int _height
The game's window height.
void setWindowTitle(const Common::UString &title="")
Set the window's title.
void initWindow(uint32 flags)
void handleCursorSwitch()
bool isFullScreen() const
Are we currently in full screen mode?
void setFullScreen(bool fullScreen)
Set full screen/windowed mode.
bool _fullScreen
Are we currently in fullscreen mode?
SDL_DisplayMode DisplayMode
void toggleMouseGrab()
Toggle mouse grab.
void toggleFullScreen()
Toggle between full screen and windowed mode.
float _gamma
The current gamma correction value.
std::vector< DisplayMode > getDisplayModes()
Get all possible display modes.
void setCursorPosition(int x, int y)
Set position to the cursor.
void setGamma(float gamma)
Set the overall gamma correction.