Crazy Eddie's GUI System
0.8.4
|
~OpenGL3FBOTextureTarget - allows rendering to an OpenGL texture via FBO. More...
Public Member Functions | |
OpenGL3FBOTextureTarget (OpenGL3Renderer &owner) | |
void | activate () |
Activate the render target and put it in a state ready to be drawn to. | |
void | deactivate () |
Deactivate the render target after having completed rendering. | |
void | clear () |
Clear the surface of the underlying texture. | |
void | declareRenderSize (const Sizef &sz) |
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming rendering operations. | |
void | grabTexture () |
Grab the texture to a local buffer. | |
void | restoreTexture () |
Restore the texture from the locally buffered copy previously create by a call to grabTexture. | |
Protected Member Functions | |
void | initialiseRenderTexture () |
allocate and set up the texture used with the FBO. | |
void | resizeRenderTexture () |
resize the texture | |
void | checkFramebufferStatus () |
Checks for OpenGL framebuffer completeness. | |
Protected Attributes | |
GLuint | d_frameBuffer |
Frame buffer object. | |
GLuint | d_previousFrameBuffer |
Frame buffer object that was bound before we bound this one. | |
Static Protected Attributes | |
static const float | DEFAULT_SIZE |
default size of created texture objects |
~OpenGL3FBOTextureTarget - allows rendering to an OpenGL texture via FBO.
void CEGUI::OpenGL3FBOTextureTarget::activate | ( | ) | [virtual] |
Activate the render target and put it in a state ready to be drawn to.
Reimplemented from CEGUI::OpenGLRenderTarget< TextureTarget >.
void CEGUI::OpenGL3FBOTextureTarget::deactivate | ( | ) | [virtual] |
Deactivate the render target after having completed rendering.
Reimplemented from CEGUI::OpenGLRenderTarget< TextureTarget >.
void CEGUI::OpenGL3FBOTextureTarget::declareRenderSize | ( | const Sizef & | sz | ) | [virtual] |
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming rendering operations.
sz | Size object describing the largest area that will be rendererd in the next batch of rendering operations. |
InvalidRequestException | May be thrown if the TextureTarget would not be able to handle the operations rendering content of the given size. |
Implements CEGUI::TextureTarget.
void CEGUI::OpenGL3FBOTextureTarget::grabTexture | ( | ) | [virtual] |
Grab the texture to a local buffer.
This will destroy the OpenGL texture, and restoreTexture must be called before using it again.
Reimplemented from CEGUI::OpenGLTextureTarget.