Crazy Eddie's GUI System  ${CEGUI_VERSION}
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::OgreWindowTarget Class Reference

CEGUI::RenderTarget that targets an existing gre::RenderTarget. More...

+ Inheritance diagram for CEGUI::OgreWindowTarget:
+ Collaboration diagram for CEGUI::OgreWindowTarget:

Public Member Functions

 OgreWindowTarget (OgreRenderer &owner, Ogre::RenderSystem &rs, Ogre::RenderTarget &target)
 Constructor.
 
virtual ~OgreWindowTarget ()
 Destructor.
 
void setOgreRenderTarget (Ogre::RenderTarget &target)
 Set the Ogre::RenderTarget that the output from the OgreWindowTarget should be rendered to. More...
 
bool isImageryCache () const
 
 OgreWindowTarget (OgreRenderer &owner, Ogre::RenderSystem &rs, Ogre::RenderTarget &target)
 Constructor.
 
virtual ~OgreWindowTarget ()
 Destructor.
 
void setOgreRenderTarget (Ogre::RenderTarget &target)
 Set the Ogre::RenderTarget that the output from the OgreWindowTarget should be rendered to. More...
 
bool isImageryCache () const
 
- Public Member Functions inherited from CEGUI::OgreRenderTarget<>
 OgreRenderTarget (OgreRenderer &owner, Ogre::RenderSystem &rs)
 Constructor.
 
 OgreRenderTarget (OgreRenderer &owner, Ogre::RenderSystem &rs)
 Constructor.
 
virtual ~OgreRenderTarget ()
 Destructor.
 
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 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 draw (const GeometryBuffer &buffer)
 
void draw (const RenderQueue &queue)
 
void setArea (const Rectf &area)
 
void setArea (const Rectf &area)
 
const RectfgetArea () const
 
const RectfgetArea () const
 
void activate ()
 
void activate ()
 
void deactivate ()
 
void deactivate ()
 
void unprojectPoint (const GeometryBuffer &buff, const Vector2f &p_in, Vector2f &p_out) const
 
void unprojectPoint (const GeometryBuffer &buff, const Vector2f &p_in, Vector2f &p_out) const
 

Protected Member Functions

void initRenderTarget (Ogre::RenderTarget &target)
 helper function to initialise the render target details
 
void initRenderTarget (Ogre::RenderTarget &target)
 helper function to initialise the render target details
 
- Protected Member Functions inherited from CEGUI::OgreRenderTarget<>
void updateMatrix () const
 helper that initialises the cached matrix
 
void updateMatrix () const
 helper that initialises the cached matrix
 
void updateViewport ()
 helper that initialises the viewport
 
void updateViewport ()
 helper that initialises the viewport
 
void updateOgreViewportDimensions (const Ogre::RenderTarget *const rt)
 helper to update the actual Ogre viewport dimensions
 
void updateOgreViewportDimensions (const Ogre::RenderTarget *const rt)
 helper to update the actual Ogre viewport dimensions
 

Additional Inherited Members

- Protected Attributes inherited from CEGUI::OgreRenderTarget<>
OgreRendererd_owner
 OgreRenderer object that owns this RenderTarget.
 
Ogre::RenderSystemd_renderSystem
 Ogre RendererSystem used to affect the rendering process.
 
Rectf d_area
 holds defined area for the RenderTarget
 
Ogre::RenderTargetd_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

CEGUI::RenderTarget that targets an existing gre::RenderTarget.

Member Function Documentation

void CEGUI::OgreWindowTarget::setOgreRenderTarget ( Ogre::RenderTarget target)

Set the Ogre::RenderTarget that the output from the OgreWindowTarget should be rendered to.

Parameters
targetReference to an Ogre::RenderTarget object that will receive the rendered output.
void CEGUI::OgreWindowTarget::setOgreRenderTarget ( Ogre::RenderTarget target)

Set the Ogre::RenderTarget that the output from the OgreWindowTarget should be rendered to.

Parameters
targetReference to an Ogre::RenderTarget object that will receive the rendered output.

References CEGUI::OgreRenderTarget<>::d_viewport, CEGUI::OgreRenderTarget<>::d_viewportValid, and initRenderTarget().

Referenced by CEGUI::OgreRenderer::setDefaultRootRenderTarget().