Crazy Eddie's GUI System
0.8.4
|
OpenGLTextureTarget - Common base class for all OpenGL render targets based on some form of RTT support. More...
Inherits CEGUI::OpenGLRenderTarget< TextureTarget >.
Inherited by CEGUI::OpenGL3FBOTextureTarget, CEGUI::OpenGLApplePBTextureTarget, CEGUI::OpenGLFBOTextureTarget, CEGUI::OpenGLGLXPBTextureTarget, and CEGUI::OpenGLWGLPBTextureTarget.
Public Member Functions | |
OpenGLTextureTarget (OpenGLRendererBase &owner) | |
constructor. | |
virtual | ~OpenGLTextureTarget () |
destructor | |
bool | isImageryCache () const |
Return whether the RenderTarget is an implementation that caches actual rendered imagery. | |
Texture & | getTexture () const |
Return a pointer to the CEGUI::Texture that the TextureTarget is using. | |
bool | isRenderingInverted () const |
Return whether rendering done on the target texture is inverted in relation to regular textures. | |
virtual void | grabTexture () |
Grab the texture to a local buffer. | |
virtual void | restoreTexture () |
Restore the texture from the locally buffered copy previously create by a call to grabTexture. | |
Protected Member Functions | |
void | createCEGUITexture () |
helper to create CEGUI::Texture d_CEGUITexture; | |
Static Protected Member Functions | |
static String | generateTextureName () |
helper to generate unique texture names | |
Protected Attributes | |
GLuint | d_texture |
Associated OpenGL texture ID. | |
OpenGLTexture * | d_CEGUITexture |
we use this to wrap d_texture so it can be used by the core CEGUI lib. | |
Static Protected Attributes | |
static uint | s_textureNumber |
static data used for creating texture names |
OpenGLTextureTarget - Common base class for all OpenGL render targets based on some form of RTT support.
Texture& CEGUI::OpenGLTextureTarget::getTexture | ( | ) | const [virtual] |
Return a pointer to the CEGUI::Texture that the TextureTarget is using.
Implements CEGUI::TextureTarget.
virtual void CEGUI::OpenGLTextureTarget::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 in CEGUI::OpenGLWGLPBTextureTarget, CEGUI::OpenGL3FBOTextureTarget, CEGUI::OpenGLFBOTextureTarget, CEGUI::OpenGLGLXPBTextureTarget, and CEGUI::OpenGLApplePBTextureTarget.
bool CEGUI::OpenGLTextureTarget::isImageryCache | ( | ) | const [virtual] |
Return whether the RenderTarget is an implementation that caches actual rendered imagery.
Typically it is expected that texture based RenderTargets would return true in response to this call. Other types of RenderTarget, like view port based targets, will more likely return false.
Implements CEGUI::RenderTarget.
bool CEGUI::OpenGLTextureTarget::isRenderingInverted | ( | ) | const [virtual] |
Return whether rendering done on the target texture is inverted in relation to regular textures.
This is intended to be used when generating geometry for rendering the TextureTarget onto another surface.
Implements CEGUI::TextureTarget.