Crazy Eddie's GUI System
0.8.4
|
Intermediate RenderTarget implementing common parts for Ogre engine. More...
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 Rectf & | getArea () 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 | |
OgreRenderer & | d_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 |
true when d_viewport is up to date and valid. | |
Rectf | d_ogreViewportDimensions |
holds set Ogre viewport dimensions | |
Intermediate RenderTarget implementing common parts for Ogre engine.
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.
area | Rect object describing the area to use in pixels. |