![]() |
VR-Forces 5.0.3 Developer's Guide
|
A glyph renderer which renders the texture associated with a glyph.

Public Types | |
| typedef std::vector < DtOffsetColoredTexturedVertex, tbb::tbb_allocator < DtOffsetColoredTexturedVertex > > | QuadVertexList |
| typedef std::unordered_map < unsigned int, QuadVertexList > | TextureLists |
Public Types inherited from makVrv::DtGlyphRenderer | |
| enum | BitmapFormat { Alpha, RGB } |
Public Member Functions | |
| DtTexturedGlyphRenderer () | |
| virtual | ~DtTexturedGlyphRenderer () |
| void | setProjectedStringPosition (const float pos[4]) |
| void | setProjectedStringRotation (float angle) |
| void | setGroup (unsigned int group) |
| virtual void | renderGlyphWithAdvance (DtPen &pen, DtGlyph &glyph, bool advance) |
| virtual void | renderGlyphWithRightToLeft (DtPen &pen, DtGlyph &glyph, bool rightToLeft) |
| const TextureLists & | perTextureLists () const |
| TextureLists & | perTextureLists () |
| const size_t | maxRenderDataSizeInBytes () const |
Public Member Functions inherited from makVrv::DtGlyphRenderer | |
| DtGlyphRenderer () | |
| virtual | ~DtGlyphRenderer () |
Static Public Member Functions | |
| static const size_t | dataSizeInBytesForQuadCount (const size_t count) |
Protected Attributes | |
| TextureLists | myLists |
| float | myCurrentStringPos [4] |
| float | myCurrentStringRotation |
| float | myGroup |
| QuadVertexList | myScratchVertList |
| typedef std::vector<DtOffsetColoredTexturedVertex, tbb::tbb_allocator<DtOffsetColoredTexturedVertex> > makVrv::DtTexturedGlyphRenderer::QuadVertexList |
| typedef std::unordered_map<unsigned int, QuadVertexList > makVrv::DtTexturedGlyphRenderer::TextureLists |
| makVrv::DtTexturedGlyphRenderer::DtTexturedGlyphRenderer | ( | ) |
CTOR.
|
virtual |
DTOR, releases resources.
| 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).
|
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 |
Implements makVrv::DtGlyphRenderer.
|
inline |
Get the per texture lists (const).
|
inline |
Get the per texture lists.
| const size_t makVrv::DtTexturedGlyphRenderer::maxRenderDataSizeInBytes | ( | ) | const |
Returns the maximum size in bytes needed for any QuadVertexList in the current per texture lists.
|
static |
Returns the size in bytes needed for the given number of quads.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |