void restoreTexture()
Restore the texture from the locally buffered copy previously create by a call to grabTexture.
GLuint d_frameBuffer
Frame buffer object.
Definition: GL3FBOTextureTarget.h:75
void deactivate()
Deactivate the render target after having completed rendering.
void declareRenderSize(const Sizef &sz)
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming renderi...
void clear()
Clear the surface of the underlying texture.
void checkFramebufferStatus()
Checks for OpenGL framebuffer completeness.
~OpenGL3FBOTextureTarget - allows rendering to an OpenGL texture via FBO.
Definition: GL3FBOTextureTarget.h:48
static const float DEFAULT_SIZE
default size of created texture objects
Definition: GL3FBOTextureTarget.h:65
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
GLuint d_previousFrameBuffer
Frame buffer object that was bound before we bound this one.
Definition: GL3FBOTextureTarget.h:77
void grabTexture()
Grab the texture to a local buffer.
void resizeRenderTexture()
resize the texture
void activate()
Activate the render target and put it in a state ready to be drawn to.