#include <FTGLBitmapFont.h>
Inheritance diagram for FTGLBitmapFont:
Public Member Functions | |
FTGLBitmapFont (const char *fontFilePath) | |
FTGLBitmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLBitmapFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
FTGLBitmapFont (const char *fontFilePath) | |
FTGLBitmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLBitmapFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
Private Member Functions | |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
Definition at line 16 of file FTGLBitmapFont.h.
FTGLBitmapFont::FTGLBitmapFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
Definition at line 5 of file FTGLBitmapFont.cxx.
FTGLBitmapFont::FTGLBitmapFont | ( | const unsigned char * | pBufferBytes, | |
size_t | bufferSizeInBytes | |||
) |
Open and read a font from a buffer in memory. Sets Error flag.
pBufferBytes | the in-memory buffer | |
bufferSizeInBytes | the length of the buffer in bytes |
Definition at line 10 of file FTGLBitmapFont.cxx.
FTGLBitmapFont::~FTGLBitmapFont | ( | ) |
Destructor
Definition at line 15 of file FTGLBitmapFont.cxx.
FTGLBitmapFont::FTGLBitmapFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
FTGLBitmapFont::FTGLBitmapFont | ( | const unsigned char * | pBufferBytes, | |
size_t | bufferSizeInBytes | |||
) |
Open and read a font from a buffer in memory. Sets Error flag.
pBufferBytes | the in-memory buffer | |
bufferSizeInBytes | the length of the buffer in bytes |
FTGLBitmapFont::~FTGLBitmapFont | ( | ) |
Destructor
void FTGLBitmapFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
Definition at line 34 of file FTGLBitmapFont.cxx.
References GL_BLEND, GL_CLIENT_PIXEL_STORE_BIT, GL_ENABLE_BIT, GL_FALSE, GL_UNPACK_ALIGNMENT, GL_UNPACK_LSB_FIRST, glDisable(), glPixelStorei(), glPushAttrib(), glPushClientAttrib(), and FTFont::PreRender().
void FTGLBitmapFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
Definition at line 47 of file FTGLBitmapFont.cxx.
References glPopAttrib(), glPopClientAttrib(), and FTFont::PostRender().
FTGlyph * FTGLBitmapFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTBitmapGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.
Definition at line 19 of file FTGLBitmapFont.cxx.
References FTFont::err, FTFace::Error(), FTFont::face, FT_LOAD_DEFAULT, FTFace::Glyph(), and NULL.
virtual void FTGLBitmapFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
virtual void FTGLBitmapFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
virtual FTGlyph* FTGLBitmapFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTBitmapGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.