Crazy Eddie's GUI System  0.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::OpenGLRenderTarget< T > Class Template Reference

Intermediate OpenGL implementation of a RenderTarget. More...

+ Inheritance diagram for CEGUI::OpenGLRenderTarget< T >:
+ Collaboration diagram for CEGUI::OpenGLRenderTarget< T >:

Public Member Functions

 OpenGLRenderTarget (OpenGLRendererBase &owner)
 Constructor.
 
void draw (const GeometryBuffer &buffer)
 
void draw (const RenderQueue &queue)
 
void setArea (const Rectf &area)
 
const RectfgetArea () const
 
void activate ()
 
void deactivate ()
 
void unprojectPoint (const GeometryBuffer &buff, const Vector2f &p_in, Vector2f &p_out) const
 

Protected Member Functions

virtual void updateMatrix () const
 helper that initialises the cached matrix
 

Protected Attributes

OpenGLRendererBased_owner
 OpenGLRendererBase that created this object.
 
Rectf d_area
 holds defined area for the RenderTarget
 
mat4Pimpld_matrix
 saved copy of projection matrix
 
bool d_matrixValid
 true if saved matrix is up to date
 
double d_viewDistance
 tracks viewing distance (this is set up at the same time as d_matrix)
 

Static Protected Attributes

static const double d_yfov_tan
 tangent of the y FOV half-angle; used to calculate viewing distance.
 

Detailed Description

template<typename T = RenderTarget>
class CEGUI::OpenGLRenderTarget< T >

Intermediate OpenGL implementation of a RenderTarget.