Crazy Eddie's GUI System  0.8.5
CEGUI::OgreRenderTarget< T > Class Template Reference

Intermediate RenderTarget implementing common parts for Ogre engine. More...

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

Public Member Functions

 OgreRenderTarget (OgreRenderer &owner, Ogre::RenderSystem &rs)
 Constructor.
 
virtual ~OgreRenderTarget ()
 Destructor.
 
void setOgreViewportDimensions (const Rectf &area)
 Set the underlying viewport area directly - bypassing what the RenderTarget considers to be it's area - thus allowing the view port area used for rendering to be different to the area set for the target. More...
 
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

void updateMatrix () const
 helper that initialises the cached matrix
 
void updateViewport ()
 helper that initialises the viewport
 
void updateOgreViewportDimensions (const Ogre::RenderTarget *const rt)
 helper to update the actual Ogre viewport dimensions
 

Protected Attributes

OgreRendererd_owner
 OgreRenderer object that owns this RenderTarget.
 
Ogre::RenderSystem & d_renderSystem
 Ogre RendererSystem used to affect the rendering process.
 
Rectf d_area
 holds defined area for the RenderTarget
 
Ogre::RenderTarget * d_renderTarget
 Ogre render target that we are effectively wrapping.
 
Ogre::Viewport * d_viewport
 Ogre viewport used for this target.
 
Ogre::Matrix4 d_matrix
 projection / view matrix cache
 
bool d_matrixValid
 true when d_matrix is valid and up to date
 
float d_viewDistance
 tracks viewing distance (this is set up at the same time as d_matrix)
 
bool d_viewportValid
 
Rectf d_ogreViewportDimensions
 holds set Ogre viewport dimensions
 

Detailed Description

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

Intermediate RenderTarget implementing common parts for Ogre engine.

Member Function Documentation

template<typename T = RenderTarget>
void CEGUI::OgreRenderTarget< T >::setOgreViewportDimensions ( const Rectf area)

Set the underlying viewport area directly - bypassing what the RenderTarget considers to be it's area - thus allowing the view port area used for rendering to be different to the area set for the target.

Parameters
areaRect object describing the area to use in pixels.
Deprecated:
This function is deprecated and will be removed or changed considerably in future releases.

Member Data Documentation

template<typename T = RenderTarget>
bool CEGUI::OgreRenderTarget< T >::d_viewportValid
protected

true when d_viewport is up to date and valid.

Version
Beginning from Ogre 2.0 this indicates whether the workspace is up to date