46class RenderTextureImpl;
219 [[nodiscard]]
bool setActive(
bool active =
true)
override;
252 [[nodiscard]]
bool isSrgb()
const override;
274 std::unique_ptr<priv::RenderTextureImpl> m_impl;
#define SFML_GRAPHICS_API
RenderTarget(const RenderTarget &)=delete
Deleted copy constructor.
RenderTexture()
Default constructor.
RenderTexture & operator=(const RenderTexture &)=delete
Deleted copy assignment.
bool setActive(bool active=true) override
Activate or deactivate the render-texture for rendering.
~RenderTexture() override
Destructor.
RenderTexture(RenderTexture &&) noexcept
Move constructor.
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 isRepeated() const
Tell whether the texture is repeated or not.
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.
bool resize(Vector2u size, const ContextSettings &settings={})
Resize the render-texture.
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.
Vector2< unsigned int > Vector2u
Structure defining the settings of the OpenGL context attached to a window.