Loading...
Searching...
No Matches
Window/Window.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
81 Window(VideoMode mode, const String& title, Uint32 style = Style::Default, const ContextSettings& settings = ContextSettings());
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:46
const ContextSettings & getSettings() const
Get the settings of the OpenGL context of the window.
virtual void create(WindowHandle handle, const ContextSettings &settings)
Create (or recreate) the window from an existing control.
Window(VideoMode mode, const String &title, Uint32 style=Style::Default, const ContextSettings &settings=ContextSettings())
Construct a new window.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
virtual void create(WindowHandle handle)
Create (or recreate) the window from an existing control.
virtual void create(VideoMode mode, const String &title, Uint32 style, const ContextSettings &settings)
Create (or recreate) the window.
Window(WindowHandle handle, const ContextSettings &settings=ContextSettings())
Construct the window from an existing control.
bool setActive(bool active=true) const
Activate or deactivate the window as the current target for OpenGL rendering.
virtual void create(VideoMode mode, const String &title, Uint32 style=Style::Default)
Create (or recreate) the window.
void setFramerateLimit(unsigned int limit)
Limit the framerate to a maximum fixed frequency.
platform specific WindowHandle
Define a low-level window handle type, specific to each platform.
Definition WindowHandle.hpp:68
Definition AlResource.hpp:35
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:38