Eidolon
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
TextRenderable Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for TextRenderable:
Inheritance graph
Collaboration diagram for TextRenderable:
Collaboration graph

Classes

struct  TextVertex
 

Public Member Functions

 TextRenderable (const std::string &name, Ogre::SceneManager *mgr)
 
virtual ~TextRenderable ()
 
virtual void setOverlay (bool isOverlay)
 
virtual void setFont (const std::string &fontname) throw (RenderException)
 
- Public Member Functions inherited from OgreBaseRenderable
 OgreBaseRenderable (const std::string &name, const std::string &matname, Ogre::RenderOperation::OperationType opType, Ogre::SceneManager *mgr) throw (RenderException)
 
virtual ~OgreBaseRenderable ()
 
void setParentObjects (Figure *parent, OgreRenderScene *scene)
 
void setDepthSorting (bool val)
 
MutexgetMutex ()
 
virtual void createBuffers (size_t numVerts, size_t numInds, bool deferCreate=false)
 Create the hardware buffers with the given number of vertices and indices (NOTE: must be executed in renderer thread) More...
 
virtual void destroyBuffers ()
 Delete the hardware and local buffers (NOTE: must be executed in renderer thread) More...
 
virtual void getRenderOperation (Ogre::RenderOperation &op)
 
VertexgetLocalVertBuff ()
 Get (and allocate if needed) the local memory vertex buffer of the same size as the hardware buffer. More...
 
indexvalgetLocalIndBuff ()
 Get (and allocate if needed) the local memory index buffer of the same size as the hardware buffer. More...
 
void commitBuffers (bool commitVert=true, bool commitInd=true)
 Copy the local buffers to the hardware buffers (NOTE: must be executed in renderer thread) More...
 
void commitMatrices (const Matrix< Vertex > *verts, const IndexMatrix *inds)
 Copy the data from matrices to the hardware buffers (NOTE: must be executed in renderer thread) More...
 
void deleteLocalVertBuff ()
 
void deleteLocalIndBuff ()
 
void fillDefaultData (bool deferFill=false)
 
size_t numVertices () const
 
size_t numIndices () const
 
Ogre::RenderOperation::OperationType opType () const
 
Ogre::HardwareVertexBufferSharedPtr getVertexBuffer () const
 
Ogre::HardwareIndexBufferSharedPtr getIndexBuffer () const
 
virtual const Ogre::MaterialPtr & getMaterial () const
 
virtual void setMaterial (const Ogre::MaterialPtr &m)
 
virtual void setMaterial (const std::string &m) throw (RenderException)
 
virtual void getWorldTransforms (Ogre::Matrix4 *xform) const
 
virtual Ogre::Real getSquaredViewDepth (const Ogre::Camera *cam) const
 
virtual const Ogre::LightList & getLights () const
 
virtual const Ogre::String & getMovableType () const
 
virtual const Ogre::AxisAlignedBox & getBoundingBox () const
 
virtual Ogre::Real getBoundingRadius () const
 
virtual void setBoundingBox (vec3 minv, vec3 maxv)
 

Public Attributes

std::string text
 
std::string fontname
 
std::string internalMatName
 
color col
 
VAlignType valign
 
HAlignType halign
 
real textHeight
 
real spaceWidth
 
bool updateCols
 
bool updateGeom
 
bool isOverlay
 
bool isCameraAligned
 
Ogre::HardwareVertexBufferSharedPtr colBuf
 
Ogre::Font * fontobj
 

Protected Member Functions

void updateColors ()
 
void updateGeometry ()
 
virtual void _notifyCurrentCamera (Ogre::Camera *cam)
 
virtual void _updateRenderQueue (Ogre::RenderQueue *queue)
 
virtual void visitRenderables (Ogre::Renderable::Visitor *visitor, bool debugRenderables)
 

Static Protected Attributes

static const short POS_TEX_BINDING =0
 
static const short COLOUR_BINDING =1
 
- Static Protected Attributes inherited from OgreBaseRenderable
static Ogre::HardwareBuffer::Usage vertexBufferUsage =Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY
 Sets vertex buffer to be write only. More...
 
static Ogre::HardwareBuffer::Usage indexBufferUsage =Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY
 Sets index buffer to be write only. More...
 

Additional Inherited Members

- Protected Attributes inherited from OgreBaseRenderable
Figureparent
 Parent figure this renderable is used by. More...
 
OgreRenderScenescene
 The root scene which renders this object. More...
 
Ogre::VertexData * vertexData
 
Ogre::HardwareVertexBufferSharedPtr vertBuf
 
Ogre::IndexData * indexData
 
Ogre::RenderOperation::OperationType _opType
 
bool deferFillOp
 
size_t _numVertices
 
size_t _numIndices
 
VertexlocalVertBuff
 Vertex buffer in main memory used to stage data before being committed to video memory. More...
 
indexvallocalIndBuff
 Index buffer in main memory used to stage data before being committed to video memory. More...
 
Ogre::MaterialPtr mat
 
Ogre::AxisAlignedBox aabb
 
Ogre::Real boundRad
 
Ogre::String movableType
 
vec3 lastCamPos
 
bool depthSorting
 
Mutex mutex
 

Constructor & Destructor Documentation

◆ TextRenderable()

TextRenderable ( const std::string &  name,
Ogre::SceneManager *  mgr 
)
inline

◆ ~TextRenderable()

virtual ~TextRenderable ( )
inlinevirtual

Member Function Documentation

◆ _notifyCurrentCamera()

void _notifyCurrentCamera ( Ogre::Camera *  cam)
protectedvirtual

Reimplemented from OgreBaseRenderable.

Here is the call graph for this function:

◆ _updateRenderQueue()

void _updateRenderQueue ( Ogre::RenderQueue *  queue)
protectedvirtual

Reimplemented from OgreBaseRenderable.

Here is the call graph for this function:

◆ setFont()

void setFont ( const std::string &  fontname)
throw (RenderException
)
virtual
Here is the caller graph for this function:

◆ setOverlay()

virtual void setOverlay ( bool  isOverlay)
inlinevirtual

◆ updateColors()

void updateColors ( )
protected
Here is the call graph for this function:

◆ updateGeometry()

void updateGeometry ( )
protected
Here is the call graph for this function:

◆ visitRenderables()

virtual void visitRenderables ( Ogre::Renderable::Visitor *  visitor,
bool  debugRenderables 
)
inlineprotectedvirtual

Reimplemented from OgreBaseRenderable.

Member Data Documentation

◆ col

color col

◆ colBuf

Ogre::HardwareVertexBufferSharedPtr colBuf

◆ COLOUR_BINDING

const short COLOUR_BINDING =1
staticprotected

◆ fontname

std::string fontname

◆ fontobj

Ogre::Font* fontobj

◆ halign

HAlignType halign

◆ internalMatName

std::string internalMatName

◆ isCameraAligned

bool isCameraAligned

◆ isOverlay

bool isOverlay

◆ POS_TEX_BINDING

const short POS_TEX_BINDING =0
staticprotected

◆ spaceWidth

real spaceWidth

◆ text

std::string text

◆ textHeight

real textHeight

◆ updateCols

bool updateCols

◆ updateGeom

bool updateGeom

◆ valign

VAlignType valign

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