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