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.
117 bool create(unsigned int width, unsigned int height, const ContextSettings& settings = ContextSettings());
bool create(unsigned int width, unsigned int height, bool depthBuffer)
Create the render-texture.
bool create(unsigned int width, unsigned int height, const ContextSettings &settings=ContextSettings())
Create the render-texture.
bool isSmooth() const
Tell whether the smooth filtering is enabled or not.
bool setActive(bool active=true)
Activate or deactivate the render-texture for rendering.
const Texture & getTexture() const
Get a read-only reference to the target texture.
virtual Vector2u getSize() const
Return the size of the rendering region of the texture.
bool generateMipmap()
Generate a mipmap using the current texture data.
virtual bool isSrgb() const
Tell if the render-texture will use sRGB encoding when drawing on it.
static unsigned int getMaximumAntialiasingLevel()
Get the maximum anti-aliasing level supported by the system.
Definition AlResource.hpp:35
Structure defining the settings of the OpenGL context attached to a window.
Definition ContextSettings.hpp:38