Loading...
Searching...
No Matches
RenderWindow.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.
109 RenderWindow(VideoMode mode, const String& title, State state, const ContextSettings& settings = {});
Base class for all render targets (window, texture, ...)
Definition RenderTarget.hpp:63
RenderWindow(WindowHandle handle, const ContextSettings &settings={})
Construct the window from an existing control.
bool isSrgb() const override
Tell if the window will use sRGB encoding when drawing on it.
bool setActive(bool active=true) override
Activate or deactivate the window as the current target for OpenGL rendering.
RenderWindow(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed, const ContextSettings &settings={})
Construct a new window.
void onResize() override
Function called after the window has been resized.
void onCreate() override
Function called after the window has been created.
RenderWindow(VideoMode mode, const String &title, State state, const ContextSettings &settings={})
Construct a new window.
Vector2u getSize() const override
Get the size of the rendering region of the window.
Utility string class that automatically handles conversions between types and encodings.
Definition String.hpp:89
"platform-specific" WindowHandle
Low-level window handle type, specific to each platform.
Definition WindowHandle.hpp:68
Definition AudioResource.hpp:36
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:39