OpenGLFBOTextureTarget - allows rendering to an OpenGL texture via FBO.
Definition GLFBOTextureTarget.h:46
void resizeRenderTexture()
resize the texture
void declareRenderSize(const Sizef &sz)
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming renderi...
static const float DEFAULT_SIZE
default size of created texture objects
Definition GLFBOTextureTarget.h:63
GLuint d_frameBuffer
Frame buffer object.
Definition GLFBOTextureTarget.h:71
void grabTexture()
Grab the texture to a local buffer.
void deactivate()
Deactivate the render target after having completed rendering.
void activate()
Activate the render target and put it in a state ready to be drawn to.
void clear()
Clear the surface of the underlying texture.
GLuint d_previousFrameBuffer
Frame buffer object that was bound before we bound this one.
Definition GLFBOTextureTarget.h:73
void restoreTexture()
Restore the texture from the locally buffered copy previously create by a call to grabTexture.
void initialiseRenderTexture()
allocate and set up the texture used with the FBO.
OpenGLTextureTarget - Common base class for all OpenGL render targets based on some form of RTT suppo...
Definition RendererModules/OpenGL/TextureTarget.h:47