Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTGLBufferFont Class Reference

#include <FTGLBufferFont.h>

Inheritance diagram for FTGLBufferFont:

FTFont

Detailed Description

FTGLBufferFont is a specialisation of the FTFont class for handling Pixmap (Grey Scale) fonts.

See also:
FTFont

Definition at line 18 of file FTGLBufferFont.h.

Public Member Functions

 FTGLBufferFont (const char *fontname)
 Open and read a font file.

 FTGLBufferFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Open and read a font from a buffer in memory.

void SetClientBuffer (unsigned char *b)
 ~FTGLBufferFont ()
 Destructor.

void Render (const char *string)
 Renders a string of characters.

void Render (const wchar_t *string)
 Renders a string of characters.


Constructor & Destructor Documentation

FTGLBufferFont::FTGLBufferFont const char *  fontname  ) 
 

Open and read a font file.

Sets Error flag.

Parameters:
fontname font file name.

Definition at line 5 of file FTGLBufferFont.cpp.

FTGLBufferFont::FTGLBufferFont 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 11 of file FTGLBufferFont.cpp.

FTGLBufferFont::~FTGLBufferFont  ) 
 

Destructor.

Definition at line 17 of file FTGLBufferFont.cpp.


Member Function Documentation

void FTGLBufferFont::Render const wchar_t *  string  )  [virtual]
 

Renders a string of characters.

Parameters:
string wchar_t string to be output.

Reimplemented from FTFont.

Definition at line 45 of file FTGLBufferFont.cpp.

References FTFont::Render().

void FTGLBufferFont::Render const char *  string  )  [virtual]
 

Renders a string of characters.

Parameters:
string 'C' style string to be output.

Reimplemented from FTFont.

Definition at line 36 of file FTGLBufferFont.cpp.

References FTFont::Render().

void FTGLBufferFont::SetClientBuffer unsigned char *  b  )  [inline]
 

Definition at line 37 of file FTGLBufferFont.h.


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 22:11:49 2004 for FTGL by doxygen 1.3.6