#include <FTGLPixmapFont.h>
Inheritance diagram for FTGLPixmapFont:
Public Member Functions | |
FTGLPixmapFont (const char *fontFilePath) | |
FTGLPixmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLPixmapFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
FTGLPixmapFont (const char *fontFilePath) | |
FTGLPixmapFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes) | |
~FTGLPixmapFont () | |
virtual void | PreRender () |
virtual void | PostRender () |
Private Member Functions | |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
virtual FTGlyph * | MakeGlyph (unsigned int g) |
Definition at line 18 of file FTGLPixmapFont.h.
FTGLPixmapFont::FTGLPixmapFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
Definition at line 5 of file FTGLPixmapFont.cxx.
FTGLPixmapFont::FTGLPixmapFont | ( | 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 FTGLPixmapFont.cxx.
FTGLPixmapFont::~FTGLPixmapFont | ( | ) |
Destructor
Definition at line 15 of file FTGLPixmapFont.cxx.
FTGLPixmapFont::FTGLPixmapFont | ( | const char * | fontFilePath | ) |
Open and read a font file. Sets Error flag.
fontFilePath | font file path. |
FTGLPixmapFont::FTGLPixmapFont | ( | 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 |
FTGLPixmapFont::~FTGLPixmapFont | ( | ) |
Destructor
void FTGLPixmapFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
Definition at line 34 of file FTGLPixmapFont.cxx.
References GL_ALPHA_SCALE, GL_ALPHA_TEST, GL_BLEND, GL_BLUE_SCALE, GL_CLIENT_PIXEL_STORE_BIT, GL_COLOR_BUFFER_BIT, GL_CURRENT_RASTER_COLOR, GL_ENABLE_BIT, GL_GEQUAL, GL_GREEN_SCALE, GL_ONE_MINUS_SRC_ALPHA, GL_PIXEL_MODE_BIT, GL_RED_SCALE, GL_SRC_ALPHA, GL_TEXTURE_2D, glAlphaFunc(), glBlendFunc(), glDisable(), glEnable(), glGetFloatv(), glPixelTransferf(), glPushAttrib(), glPushClientAttrib(), and FTFont::PreRender().
void FTGLPixmapFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
Definition at line 57 of file FTGLPixmapFont.cxx.
References glPopAttrib(), glPopClientAttrib(), and FTFont::PostRender().
FTGlyph * FTGLPixmapFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTPixmapGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.
Definition at line 19 of file FTGLPixmapFont.cxx.
References FTFont::err, FTFace::Error(), FTFont::face, FT_LOAD_NO_HINTING, FTFace::Glyph(), and NULL.
virtual void FTGLPixmapFont::PreRender | ( | ) | [virtual] |
Prepare for rendering
Reimplemented from FTFont.
virtual void FTGLPixmapFont::PostRender | ( | ) | [virtual] |
Cleanup after rendering
Reimplemented from FTFont.
virtual FTGlyph* FTGLPixmapFont::MakeGlyph | ( | unsigned int | g | ) | [inline, private, virtual] |
Construct a FTPixmapGlyph.
g | The glyph index NOT the char code. |
null
on failure. Implements FTFont.