25#ifndef SFML_RENDERWINDOW_HPP
26#define SFML_RENDERWINDOW_HPP
31#include <SFML/Graphics/Export.hpp>
32#include <SFML/Graphics/RenderTarget.hpp>
33#include <SFML/Graphics/Image.hpp>
34#include <SFML/Window/Window.hpp>
197 unsigned int m_defaultFrameBuffer;
Class for loading, manipulating and saving images.
Base class for all render targets (window, texture, ...)
Window that can serve as a target for 2D drawing.
RenderWindow(WindowHandle handle, const ContextSettings &settings=ContextSettings())
Construct the window from an existing control.
virtual ~RenderWindow()
Destructor.
Image capture() const
Copy the current contents of the window to an image.
virtual void onCreate()
Function called after the window has been created.
virtual void onResize()
Function called after the window has been resized.
RenderWindow()
Default constructor.
virtual bool isSrgb() const
Tell if the window will use sRGB encoding when drawing on it.
virtual Vector2u getSize() const
Get the size of the rendering region of the window.
RenderWindow(VideoMode mode, const String &title, Uint32 style=Style::Default, const ContextSettings &settings=ContextSettings())
Construct a new window.
bool setActive(bool active=true)
Activate or deactivate the window as the current target for OpenGL rendering.
Utility string class that automatically handles conversions between types and encodings.
VideoMode defines a video mode (width, height, bpp)
Window that serves as a target for OpenGL rendering.
platform specific WindowHandle
Define a low-level window handle type, specific to each platform.
Structure defining the settings of the OpenGL context attached to a window.