351 std::unique_ptr<priv::GlContext> m_context;
353 Time m_frameTimeLimit;
Utility class that measures the elapsed time.
GlResource()
Default constructor.
Utility string class that automatically handles conversions between types and encodings.
VideoMode defines a video mode (size, bpp)
WindowBase()
Default constructor.
const ContextSettings & getSettings() const
Get the settings of the OpenGL context of the window.
Window(const Window &)=delete
Deleted copy constructor.
Window(WindowHandle handle, const ContextSettings &settings={})
Construct the window from an existing control.
Window(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed, const ContextSettings &settings={})
Construct a new window.
~Window() override
Destructor.
Window()
Default constructor.
void setVerticalSyncEnabled(bool enabled)
Enable or disable vertical synchronization.
Window(VideoMode mode, const String &title, State state, const ContextSettings &settings={})
Construct a new window.
bool setActive(bool active=true) const
Activate or deactivate the window as the current target for OpenGL rendering.
void close() override
Close the window and destroy all the attached resources.
Window(Window &&) noexcept
Move constructor.
Window & operator=(const Window &)=delete
Deleted copy assignment.
void display()
Display on screen what has been rendered to the window so far.
void create(VideoMode mode, const String &title, std::uint32_t style=Style::Default, State state=State::Windowed) override
Create (or recreate) the window.
void setFramerateLimit(unsigned int limit)
Limit the framerate to a maximum fixed frequency.
State
Enumeration of the window states.
"platform-specific" WindowHandle
Low-level window handle type, specific to each platform.
@ Windowed
Floating window.
@ Default
Default window style.
Structure defining the settings of the OpenGL context attached to a window.