Loading...
Searching...
No Matches
RenderTexture.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.
Base class for all render targets (window, texture, ...)
Definition RenderTarget.hpp:63
RenderTexture & operator=(const RenderTexture &)=delete
Deleted copy assignment.
bool setActive(bool active=true) override
Activate or deactivate the render-texture for rendering.
bool isSmooth() const
Tell whether the smooth filtering is enabled or not.
const Texture & getTexture() const
Get a read-only reference to the target texture.
RenderTexture(const RenderTexture &)=delete
Deleted copy constructor.
Vector2u getSize() const override
Return the size of the rendering region of the texture.
bool generateMipmap()
Generate a mipmap using the current texture data.
static unsigned int getMaximumAntiAliasingLevel()
Get the maximum anti-aliasing level supported by the system.
RenderTexture(Vector2u size, const ContextSettings &settings={})
Construct a render-texture.
bool isSrgb() const override
Tell if the render-texture will use sRGB encoding when drawing on it.
Definition AudioResource.hpp:36
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:39