Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIOpenGLWGLPBTextureTarget_h_
28 #define _CEGUIOpenGLWGLPBTextureTarget_h_
31 #include "CEGUI/RendererModules/OpenGL/GL.h"
34 #include "CEGUI/RendererModules/OpenGL/TextureTarget.h"
35 #include "../../Rect.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4250)
103 #if defined(_MSC_VER)
104 # pragma warning(pop)
107 #endif // end of guard _CEGUIOpenGLWGLPBTextureTarget_h_
OpenGLWGLPBTextureTarget - allows rendering to an OpenGL texture via the pbuffer WGL extension.
Definition: WGLPBTextureTarget.h:53
void initialisePBuffer()
Initialise the PBuffer with the needed size.
HGLRC d_context
Handle to the rendering context for the pbuffer.
Definition: WGLPBTextureTarget.h:92
void releasePBuffer()
Cleans up the pbuffer resources.
static const float DEFAULT_SIZE
default size of created texture objects
Definition: WGLPBTextureTarget.h:70
HGLRC d_prevContext
Handle to the rendering context in use when we switched to the pbuffer.
Definition: WGLPBTextureTarget.h:96
void activate()
Activate the render target and put it in a state ready to be drawn to.
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
void declareRenderSize(const Sizef &sz)
Used to declare to the TextureTarget the largest size, in pixels, of the next set of incoming renderi...
void disablePBuffer() const
Switch rendering to target what was active before the pbuffer was used.
int d_pixfmt
Holds the pixel format we use when creating the pbuffer.
Definition: WGLPBTextureTarget.h:88
OpenGLTextureTarget - Common base class for all OpenGL render targets based on some form of RTT suppo...
Definition: RendererModules/OpenGL/TextureTarget.h:47
void initialiseTexture()
Perform basic initialisation of the texture we're going to use.
HDC d_prevDC
Handle to the device context in use when we switched to the pbuffer.
Definition: WGLPBTextureTarget.h:98
void enablePBuffer() const
Switch rendering so it targets the pbuffer.
HPBUFFERARB d_pbuffer
Handle to the pbuffer itself.
Definition: WGLPBTextureTarget.h:90
void clear()
Clear the surface of the underlying texture.
HDC d_hdc
Handle to the Windows device context for the pbuffer.
Definition: WGLPBTextureTarget.h:94
void grabTexture()
Grab the texture to a local buffer.
Common base class used for other OpenGL (desktop or ES) based renderer modules.
Definition: RendererBase.h:54
void deactivate()
Deactivate the render target after having completed rendering.
void restoreTexture()
Restore the texture from the locally buffered copy previously create by a call to grabTexture.