Rasterfarm-SDK
Loading...
Searching...
No Matches
TexturedFont Class Referenceabstract

#include <texturedfont.h>

Inheritance diagram for TexturedFont:
Font FTFont

Classes

class  CharacterMetric
 

Public Types

typedef HeapArray< CharacterMetricCharacterMetricArray
 

Public Member Functions

 TexturedFont (const char *fontName, uint fontSize)
 
virtual ~TexturedFont ()
 
uint getFontSize ()
 
TexturegetTexture ()
 
virtual float getFontHeight ()
 
const CharacterMetric getCharacterMetric (char index) const
 
virtual HeapArray< Vertex2fArraycreateOutline (char index, uint resolution)=0
 
virtual void createMesh (char index, uint resolution, Mesh::TriangleMesh *pMesh)=0
 
- Public Member Functions inherited from Font
 Font (const char *fontName)
 
virtual ~Font ()
 
String getFontName ()
 

Protected Member Functions

virtual TexturecreateTexture ()=0
 

Protected Attributes

CharacterMetricArray characterMetric
 
uint fontSize
 
TexturepTexture
 
uint cellWidth
 
uint cellHeight
 
- Protected Attributes inherited from Font
String fontName
 

Static Protected Attributes

static const uint CELLS_PER_COL = 16
 
- Static Protected Attributes inherited from Font
static const uint CHAR_SET_SIZE = 256
 

Member Typedef Documentation

◆ CharacterMetricArray

Constructor & Destructor Documentation

◆ TexturedFont()

TexturedFont::TexturedFont ( const char * fontName,
uint fontSize )

◆ ~TexturedFont()

virtual TexturedFont::~TexturedFont ( )
virtual

Member Function Documentation

◆ createMesh()

virtual void TexturedFont::createMesh ( char index,
uint resolution,
Mesh::TriangleMesh * pMesh )
pure virtual

Implemented in FTFont.

◆ createOutline()

virtual HeapArray< Vertex2fArray > TexturedFont::createOutline ( char index,
uint resolution )
pure virtual

Implemented in FTFont.

◆ createTexture()

virtual Texture * TexturedFont::createTexture ( )
protectedpure virtual

◆ getCharacterMetric()

const CharacterMetric TexturedFont::getCharacterMetric ( char index) const

◆ getFontHeight()

virtual float TexturedFont::getFontHeight ( )
virtual

Implements Font.

◆ getFontSize()

uint TexturedFont::getFontSize ( )
inline

◆ getTexture()

Texture * TexturedFont::getTexture ( )
Returns
Valid Texture or nullptr if font failed to load.

Member Data Documentation

◆ cellHeight

uint TexturedFont::cellHeight
protected

◆ CELLS_PER_COL

const uint TexturedFont::CELLS_PER_COL = 16
staticprotected

◆ cellWidth

uint TexturedFont::cellWidth
protected

◆ characterMetric

CharacterMetricArray TexturedFont::characterMetric
protected

◆ fontSize

uint TexturedFont::fontSize
protected

◆ pTexture

Texture* TexturedFont::pTexture
protected

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