24#ifndef GF_RENDER_TEXTURE_H
25#define GF_RENDER_TEXTURE_H
27#include "GraphicsApi.h"
28#include "RenderTarget.h"
31#ifndef DOXYGEN_SHOULD_SKIP_THIS
118 m_texture.setSmooth(smooth);
129 return m_texture.isSmooth();
143 m_texture.setRepeated(repeated);
154 return m_texture.isRepeated();
209#ifndef DOXYGEN_SHOULD_SKIP_THIS
Class for loading, manipulating and saving images.
Definition: Image.h:81
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Target for off-screen 2D rendering into a texture.
Definition: RenderTexture.h:98
void resize(Vector2i size)
Resize the underlying texture.
bool isSmooth() const
Check if the smooth filtering is enabled or not.
Definition: RenderTexture.h:128
RenderTexture(Vector2i size)
Create the render-texture.
void setSmooth(bool smooth=true)
Enable or disable texture smoothing.
Definition: RenderTexture.h:117
void setRepeated(bool repeated=true)
Enable or disable texture repeating.
Definition: RenderTexture.h:142
void display()
Update the contents of the target texture.
void setActive() override
Activate the render target for rendering.
Image capture() const
Copy the current contents of the render texture to an image.
Vector2i 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:153
const Texture & getTexture() const
Get a read-only reference to the target texture.
Definition: RenderTexture.h:200
A texture for colored images.
Definition: Texture.h:313
The namespace for gf classes.