|
Crazy Eddies GUI System 0.7.6
|
OpenGLFBOTextureTarget - allows rendering to an OpenGL texture via FBO. More...
Inheritance diagram for CEGUI::OpenGLFBOTextureTarget:
Collaboration diagram for CEGUI::OpenGLFBOTextureTarget:Public Member Functions | |
| OpenGLFBOTextureTarget (OpenGLRenderer &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 Size &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 | |
Protected Attributes | |
| GLuint | d_frameBuffer |
| Frame buffer object. | |
Static Protected Attributes | |
| static const float | DEFAULT_SIZE |
| default size of created texture objects | |
OpenGLFBOTextureTarget - allows rendering to an OpenGL texture via FBO.
| void CEGUI::OpenGLFBOTextureTarget::activate | ( | ) | [virtual] |
Activate the render target and put it in a state ready to be drawn to.
Reimplemented from CEGUI::OpenGLRenderTarget.
| void CEGUI::OpenGLFBOTextureTarget::deactivate | ( | ) | [virtual] |
Deactivate the render target after having completed rendering.
Reimplemented from CEGUI::OpenGLRenderTarget.
| void CEGUI::OpenGLFBOTextureTarget::declareRenderSize | ( | const Size & | 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::OpenGLFBOTextureTarget::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.
1.7.4