FTGL  2.2.0
Data Structures | Defines | Functions
FTGLPolygonFont.h File Reference
#include <FTGL/ftgl.h>

Go to the source code of this file.

Data Structures

class  FTPolygonFont
 FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon Mesh fonts. More...

Defines

#define FTGLPolygonFont   FTPolygonFont

Functions

FTGLfontftglCreatePolygonFont (const char *file)
 Create a specialised FTGLfont object for handling tesselated polygon mesh fonts.
FTGLfontftglCreatePolygonFontFromMem (const unsigned char *bytes, size_t len)
 Create a specialised FTGLfont object for handling tesselated polygon mesh fonts from a buffer in memory.

Define Documentation

Definition at line 84 of file FTGLPolygonFont.h.


Function Documentation

FTGLfont* ftglCreatePolygonFont ( const char *  file)

Create a specialised FTGLfont object for handling tesselated polygon mesh fonts.

Parameters:
fileThe font file name.
Returns:
An FTGLfont* object.
See also:
FTGLfont
FTGLfont* ftglCreatePolygonFontFromMem ( const unsigned char *  bytes,
size_t  len 
)

Create a specialised FTGLfont object for handling tesselated polygon mesh fonts from a buffer in memory.

Sets Error flag. The buffer is owned by the client and is NOT copied by FTGL. The pointer must be valid while using FTGL.

Parameters:
bytesthe in-memory buffer
lenthe length of the buffer in bytes
Returns:
An FTGLfont* object.