Rasterfarm-SDK
Loading...
Searching...
No Matches
PolygonalFont Class Reference

#include <polygonalfont.h>

Inheritance diagram for PolygonalFont:
Font

Public Member Functions

 PolygonalFont (TexturedFont *pTexturedFont, uint resolution)
 
 PolygonalFont (const char *pffPath)
 
virtual ~PolygonalFont ()
 
virtual float getFontHeight ()
 
const Vertex2fgetVertexOffset (uint index) const
 
const Mesh::TriangleMeshgetMesh (uint index) const
 
HeapArray< Vertex2fArraycreateOutline (uint index)
 
void createMesh (uint index, const HeapArray< Vertex2fArray > &contour)
 
void exportPFF ()
 
- Public Member Functions inherited from Font
 Font (const char *fontName)
 
virtual ~Font ()
 
String getFontName ()
 

Static Public Member Functions

static void createMesh (const HeapArray< Vertex2fArray > &contour, Mesh::TriangleMesh *pMesh)
 
static PFF importPFF (const char *pffPath)
 

Protected Attributes

HeapArray< HeapArray< Mesh::VertexIndexArray > > contourIndex
 
HeapArray< Mesh::TriangleMeshmesh
 
HeapArray< Vertex2fcharVertexPosition
 
float fontHeight
 
- Protected Attributes inherited from Font
String fontName
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ PolygonalFont() [1/2]

PolygonalFont::PolygonalFont ( TexturedFont * pTexturedFont,
uint resolution )

◆ PolygonalFont() [2/2]

PolygonalFont::PolygonalFont ( const char * pffPath)

◆ ~PolygonalFont()

virtual PolygonalFont::~PolygonalFont ( )
virtual

Member Function Documentation

◆ createMesh() [1/2]

static void PolygonalFont::createMesh ( const HeapArray< Vertex2fArray > & contour,
Mesh::TriangleMesh * pMesh )
static

◆ createMesh() [2/2]

void PolygonalFont::createMesh ( uint index,
const HeapArray< Vertex2fArray > & contour )

◆ createOutline()

HeapArray< Vertex2fArray > PolygonalFont::createOutline ( uint index)

◆ exportPFF()

void PolygonalFont::exportPFF ( )

◆ getFontHeight()

virtual float PolygonalFont::getFontHeight ( )
inlinevirtual

Implements Font.

◆ getMesh()

const Mesh::TriangleMesh & PolygonalFont::getMesh ( uint index) const

◆ getVertexOffset()

const Vertex2f & PolygonalFont::getVertexOffset ( uint index) const

◆ importPFF()

static PFF PolygonalFont::importPFF ( const char * pffPath)
static

Member Data Documentation

◆ charVertexPosition

HeapArray< Vertex2f > PolygonalFont::charVertexPosition
protected

The position where the charector is rendered.

◆ contourIndex

HeapArray< HeapArray< Mesh::VertexIndexArray > > PolygonalFont::contourIndex
protected

◆ fontHeight

float PolygonalFont::fontHeight
protected

◆ mesh

HeapArray< Mesh::TriangleMesh > PolygonalFont::mesh
protected

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