~OpenGL3FBOTextureTarget - allows rendering to an OpenGL texture via FBO.
Definition: GL3FBOTextureTarget.h:48
void activate()
Activate the render target and put it in a state ready to be drawn to.
void resizeRenderTexture()
resize the texture
void grabTexture()
Grab the texture to a local buffer.
GLuint d_frameBuffer
Frame buffer object.
Definition: GL3FBOTextureTarget.h:75
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.
GLuint d_previousFrameBuffer
Frame buffer object that was bound before we bound this one.
Definition: GL3FBOTextureTarget.h:77
static const float DEFAULT_SIZE
default size of created texture objects
Definition: GL3FBOTextureTarget.h:65
void clear()
Clear the surface of the underlying texture.
void checkFramebufferStatus()
Checks for OpenGL framebuffer completeness.
void declareRenderSize(const Sizef &sz)
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming renderi...
void deactivate()
Deactivate the render target after having completed rendering.
OpenGLTextureTarget - Common base class for all OpenGL render targets based on some form of RTT suppo...
Definition: RendererModules/OpenGL/TextureTarget.h:47