161 [[nodiscard]]
bool isSrgb()
const override;
179 [[nodiscard]]
bool setActive(
bool active =
true)
override;
205 unsigned int m_defaultFrameBuffer{};
#define SFML_GRAPHICS_API
Definition Export.hpp:42
Class for loading, manipulating and saving images.
Definition Image.hpp:55
RenderTarget(const RenderTarget &)=delete
Deleted copy constructor.
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.
void setIcon(const Image &icon)
Change the window's icon.
RenderWindow()=default
Default constructor.
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
VideoMode defines a video mode (width, height, bpp).
Definition VideoMode.hpp:44
void setIcon(Vector2u size, const std::uint8_t *pixels)
Change the window's icon.
Window()
Default constructor.
@ Default
Default window style.
Definition WindowEnums.hpp:44
Definition BlendMode.hpp:34
State
Enumeration of the window states.
Definition WindowEnums.hpp:55
@ Windowed
Floating window.
Definition WindowEnums.hpp:56
Vector2< unsigned int > Vector2u
Definition Vector2.hpp:225
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:39