Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
render::Overlay Class Reference

Represents a layer which is rendered on top of the 'normal' scene contents. More...

#include <Overlay.h>

Inheritance diagram for render::Overlay:
render::Renderable scene::Node engine::Object render::PanelOverlay render::TextOverlay

List of all members.

Public Member Functions

f32 getHeight ()
 Gets one of the relative dimensions of the overlay, a value between 0.0 and 1.0.
virtual MaterialgetMaterial () const
 Gets the material which this mesh uses.
MetricsMode getMetricsMode () const
 Gets the MetricsMode of this overlay.
void getRenderOperation (RenderOperation &ro)
f32 getWidth ()
 Gets one of the relative dimensions of the overlay, a value between 0.0 and 1.0.
 Overlay (const std::string &name)
 Overlay ()
void setDimension (f32 width, f32 height)
 Sets the dimension.
virtual void setMetricsMode (MetricsMode mm)
 Sets the MetricsMode for this overlay.
void setPosition (f32 x, f32 y)
 Sets the position.
virtual ~Overlay ()

Protected Member Functions

void initProperties ()
void updateImpl (f32 elapsedTime)
virtual void updatePositionBinding ()=0
 Internal method for updating the positions of the element.
virtual void updateTextureBinding ()=0
 Internal method for updating the UVs of the element.
void updateWorldTransform ()

Protected Attributes

bool mGeometryInitialized
bool mGeomPositionsOutOfDate
 Flag indicating if the vertex positions need recalculating.
bool mGeomUVsOutOfDate
 Flag indicating if the vertex uvs need recalculating.
f32 mHeight
IndexDatamIndexData
 Face index data.
MaterialmMaterial
MetricsMode mMetricsMode
bool mModifiedWorldTransform
f32 mU1
f32 mU2
f32 mV1
f32 mV2
VertexDatamVertexData
 Dedicated vertex data.
f32 mWidth

Static Protected Attributes

static u32 msNextGeneratedOverlayIndex = 0

Detailed Description

Represents a layer which is rendered on top of the 'normal' scene contents.


Constructor & Destructor Documentation

render::Overlay::Overlay ( )
render::Overlay::Overlay ( const std::string &  name)
render::Overlay::~Overlay ( ) [virtual]

References mIndexData, and mVertexData.


Member Function Documentation

f32 render::Overlay::getHeight ( )

Gets one of the relative dimensions of the overlay, a value between 0.0 and 1.0.

References mHeight.

Material * render::Overlay::getMaterial ( ) const [virtual]

Gets the material which this mesh uses.

Reimplemented from render::Renderable.

Reimplemented in render::TextOverlay.

References mMaterial.

Referenced by render::RenderManager::renderSingleOverlay().

MetricsMode render::Overlay::getMetricsMode ( ) const

Gets the MetricsMode of this overlay.

References mMetricsMode.

Referenced by render::RenderManager::renderSingleOverlay().

void render::Overlay::getRenderOperation ( RenderOperation ro) [virtual]
f32 render::Overlay::getWidth ( )

Gets one of the relative dimensions of the overlay, a value between 0.0 and 1.0.

References mWidth.

Referenced by render::TextOverlay::updatePositionBinding().

void render::Overlay::initProperties ( ) [protected]
void render::Overlay::setDimension ( f32  width,
f32  height 
)

Sets the dimension.

References mGeomPositionsOutOfDate, mHeight, and mWidth.

Referenced by render::TextOverlay::updatePositionBinding().

void render::Overlay::setMetricsMode ( MetricsMode  mm) [virtual]

Sets the MetricsMode for this overlay.

References mMetricsMode.

void render::Overlay::setPosition ( f32  x,
f32  y 
)
void render::Overlay::updateImpl ( f32  elapsedTime) [protected, virtual]
virtual void render::Overlay::updatePositionBinding ( ) [protected, pure virtual]

Internal method for updating the positions of the element.

Implemented in render::PanelOverlay, and render::TextOverlay.

Referenced by updateImpl().

virtual void render::Overlay::updateTextureBinding ( ) [protected, pure virtual]

Internal method for updating the UVs of the element.

Implemented in render::PanelOverlay, and render::TextOverlay.

Referenced by updateImpl().

void render::Overlay::updateWorldTransform ( ) [protected]

Member Data Documentation

Flag indicating if the vertex uvs need recalculating.

Referenced by initProperties(), render::TextOverlay::setCaption(), render::TextOverlay::setFont(), and updateImpl().


The documentation for this class was generated from the following files:

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:09 by Doxygen (1.7.4)