24 #ifndef GF_RENDER_TEXTURE_H 25 #define GF_RENDER_TEXTURE_H 31 #ifndef DOXYGEN_SHOULD_SKIP_THIS 130 bool create(Vector2u size);
143 m_texture.setSmooth(smooth);
154 return m_texture.isSmooth();
168 m_texture.setRepeated(repeated);
179 return m_texture.isRepeated();
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:66
virtual Vector2u getSize() const override
Return the size of the rendering region of the target.
bool isRepeated() const
Check if the texture is repeated or not.
Definition: RenderTexture.h:178
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
Class for loading, manipulating and saving images.
Definition: Image.h:92
The namespace for gf classes.
Definition: Action.h:34
bool isSmooth() const
Check if the smooth filtering is enabled or not.
Definition: RenderTexture.h:153
Image capture() const
Copy the current contents of the render texture to an image.
const Texture & getTexture() const
Get a read-only reference to the target texture.
Definition: RenderTexture.h:225
~RenderTexture()
Destructor.
#define GF_API
Definition: Portability.h:35
void setActive()
Activate the render-texture for rendering.
RenderTexture()
Default constructor.