24 #ifndef GF_RENDER_TEXTURE_H
25 #define GF_RENDER_TEXTURE_H
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
130 bool create(Vector2u size);
182 virtual Vector2u
getSize()
const override;
234 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Target for off-screen 2D rendering into a texture.
Definition: RenderTexture.h:102
bool create(Vector2u size)
Create the render-texture.
void display()
Update the contents of the target texture.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
virtual Vector2u getSize() const override
Return the size of the rendering region of the target.
Image capture() const
Copy the current contents of the render texture to an image.
bool isRepeated() const noexcept
Check if the texture is repeated or not.
Definition: Texture.h:197
void setSmooth(bool smooth=true)
Enable or disable texture smoothing.
Definition: RenderTexture.h:142
void setRepeated(bool repeated=true)
Enable or disable texture repeating.
Definition: RenderTexture.h:167
A texture for colored images.
Definition: Texture.h:339
const Texture & getTexture() const
Get a read-only reference to the target texture.
Definition: RenderTexture.h:225
bool isSmooth() const noexcept
Check if the smooth filter is enabled or not.
Definition: Texture.h:165
void setSmooth(bool smooth=true)
Enable or disable the smooth filter.
Class for loading, manipulating and saving images.
Definition: Image.h:92
bool isSmooth() const
Check if the smooth filtering is enabled or not.
Definition: RenderTexture.h:153
~RenderTexture()
Destructor.
#define GF_API
Definition: Portability.h:35
void setActive()
Activate the render-texture for rendering.
void setRepeated(bool repeated=true)
Enable or disable repeating.
bool isRepeated() const
Check if the texture is repeated or not.
Definition: RenderTexture.h:178
RenderTexture()
Default constructor.