Target for off-screen 2D rendering into a texture.
bool create(unsigned int width, unsigned int height, bool depthBuffer)
Create the render-texture.
bool create(unsigned int width, unsigned int height, const ContextSettings &settings=ContextSettings())
Create the render-texture.
bool isSmooth() const
Tell whether the smooth filtering is enabled or not.
bool setActive(bool active=true)
Activate or deactivate the render-texture for rendering.
const Texture & getTexture() const
Get a read-only reference to the target texture.
virtual Vector2u getSize() const
Return the size of the rendering region of the texture.
bool isRepeated() const
Tell whether the texture is repeated or not.
bool generateMipmap()
Generate a mipmap using the current texture data.
virtual bool isSrgb() const
Tell if the render-texture will use sRGB encoding when drawing on it.
static unsigned int getMaximumAntialiasingLevel()
Get the maximum anti-aliasing level supported by the system.
void setSmooth(bool smooth)
Enable or disable texture smoothing.
void setRepeated(bool repeated)
Enable or disable texture repeating.
void display()
Update the contents of the target texture.
Image living on the graphics card that can be used for drawing.
Structure defining the settings of the OpenGL context attached to a window.