VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
makVrv::DtTexturedGlyphRenderer Class Reference

A glyph renderer which renders the texture associated with a glyph. More...

Inheritance diagram for makVrv::DtTexturedGlyphRenderer:
Inheritance graph
[legend]

Public Types

typedef std::vector
< DtOffsetColoredTexturedVertex
QuadVertexList
typedef boost::unordered_map
< unsigned int, QuadVertexList
TextureLists
- Public Types inherited from makVrv::DtGlyphRenderer
enum  BitmapFormat { Alpha, RGB }

Public Member Functions

 DtTexturedGlyphRenderer ()
 CTOR.
 ~DtTexturedGlyphRenderer ()
 DTOR, releases resources.
void setProjectedStringPosition (const float pos[4])
 Set the projected string position.
void setProjectedStringRotation (float angle)
 Set the string's rotation (in radians).
void setGroup (unsigned int group)
 Set the string's order group.
virtual void renderGlyph (DtPen &pen, DtGlyph &glyph, bool advance=true)
 For each glyph to be rendered, the pen stores the location of the rendering.
const TextureListsperTextureLists () const
 Get the per texture lists (const).
TextureListsperTextureLists ()
 Get the per texture lists.
- Public Member Functions inherited from makVrv::DtGlyphRenderer
 DtGlyphRenderer ()
virtual ~DtGlyphRenderer ()
 DTOR.

Protected Attributes

TextureLists myLists
float myCurrentStringPos [4]
float myCurrentStringRotation
float myGroup

Detailed Description

A glyph renderer which renders the texture associated with a glyph.

Member Typedef Documentation

typedef boost::unordered_map<unsigned int, QuadVertexList > makVrv::DtTexturedGlyphRenderer::TextureLists

Constructor & Destructor Documentation

makVrv::DtTexturedGlyphRenderer::DtTexturedGlyphRenderer ( )

CTOR.

makVrv::DtTexturedGlyphRenderer::~DtTexturedGlyphRenderer ( )

DTOR, releases resources.

Member Function Documentation

void makVrv::DtTexturedGlyphRenderer::setProjectedStringPosition ( const float  pos[4])

Set the projected string position.

void makVrv::DtTexturedGlyphRenderer::setProjectedStringRotation ( float  angle)

Set the string's rotation (in radians).

void makVrv::DtTexturedGlyphRenderer::setGroup ( unsigned int  group)

Set the string's order group.

virtual void makVrv::DtTexturedGlyphRenderer::renderGlyph ( DtPen pen,
DtGlyph glyph,
bool  advance = true 
)
virtual

For each glyph to be rendered, the pen stores the location of the rendering.

The glyph provides the glyph parameters. If advance is true advances position in pen by font size

Implements makVrv::DtGlyphRenderer.

const TextureLists& makVrv::DtTexturedGlyphRenderer::perTextureLists ( ) const
inline

Get the per texture lists (const).

TextureLists& makVrv::DtTexturedGlyphRenderer::perTextureLists ( )
inline

Get the per texture lists.

Member Data Documentation

TextureLists makVrv::DtTexturedGlyphRenderer::myLists
protected
float makVrv::DtTexturedGlyphRenderer::myCurrentStringPos[4]
protected
float makVrv::DtTexturedGlyphRenderer::myCurrentStringRotation
protected
float makVrv::DtTexturedGlyphRenderer::myGroup
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)