FTGLBitmapFont Class Reference

#include <FTGLBitmapFont.h>

Inheritance diagram for FTGLBitmapFont:

FTFont FTFont List of all members.

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 FTGlyphMakeGlyph (unsigned int g)
virtual FTGlyphMakeGlyph (unsigned int g)

Detailed Description

FTGLBitmapFont is a specialisation of the FTFont class for handling Bitmap fonts

See also:
FTFont

Definition at line 16 of file FTGLBitmapFont.h.


Constructor & Destructor Documentation

FTGLBitmapFont::FTGLBitmapFont ( const char *  fontFilePath  ) 

Open and read a font file. Sets Error flag.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
pBufferBytes the in-memory buffer
bufferSizeInBytes the length of the buffer in bytes

FTGLBitmapFont::~FTGLBitmapFont (  ) 

Destructor


Member Function Documentation

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.

Parameters:
g The glyph index NOT the char code.
Returns:
An FTBitmapGlyph or 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.

Parameters:
g The glyph index NOT the char code.
Returns:
An FTBitmapGlyph or null on failure.

Implements FTFont.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:32 2011 for ROOT_528-00b_version by  doxygen 1.5.1