VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static 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,
tbb::tbb_allocator
< 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. More...
 
virtual ~DtTexturedGlyphRenderer ()
 DTOR, releases resources. More...
 
void setProjectedStringPosition (const float pos[4])
 Set the projected string position. More...
 
void setProjectedStringRotation (float angle)
 Set the string's rotation (in radians). More...
 
void setGroup (unsigned int group)
 Set the string's order group. More...
 
virtual void renderGlyphWithAdvance (DtPen &pen, DtGlyph &glyph, bool advance)
 For each glyph to be rendered, the pen stores the location of the rendering. More...
 
virtual void renderGlyphWithRightToLeft (DtPen &pen, DtGlyph &glyph, bool rightToLeft)
 
const TextureListsperTextureLists () const
 Get the per texture lists (const). More...
 
TextureListsperTextureLists ()
 Get the per texture lists. More...
 
size_t maxRenderDataSizeInBytes (void) const
 
- Public Member Functions inherited from makVrv::DtGlyphRenderer
 DtGlyphRenderer ()
 
virtual ~DtGlyphRenderer ()
 DTOR. More...
 

Static Public Member Functions

static size_t dataSizeInBytes (const QuadVertexList &quads)
 

Protected Attributes

TextureLists myLists
 
float myCurrentStringPos [4]
 
float myCurrentStringRotation
 
float myGroup
 
QuadVertexList myScratchVertList
 

Detailed Description

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

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtTexturedGlyphRenderer::DtTexturedGlyphRenderer ( )

CTOR.

virtual makVrv::DtTexturedGlyphRenderer::~DtTexturedGlyphRenderer ( )
virtual

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::renderGlyphWithAdvance ( DtPen pen,
DtGlyph glyph,
bool  advance 
)
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.

virtual void makVrv::DtTexturedGlyphRenderer::renderGlyphWithRightToLeft ( DtPen pen,
DtGlyph glyph,
bool  rightToLeft 
)
virtual
const TextureLists& makVrv::DtTexturedGlyphRenderer::perTextureLists ( ) const
inline

Get the per texture lists (const).

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

Get the per texture lists.

size_t makVrv::DtTexturedGlyphRenderer::maxRenderDataSizeInBytes ( void  ) const
static size_t makVrv::DtTexturedGlyphRenderer::dataSizeInBytes ( const QuadVertexList quads)
static

Member Data Documentation

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

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)