Eaagles::BasicGL::LcBitmapFont Class Reference

Inherits Eaagles::BasicGL::LcFont.

Inheritance diagram for Eaagles::BasicGL::LcBitmapFont:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::BasicGL::LcBitmapFont:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LcBitmapFont ()
virtual void outputText (const double x, const double y, const char *txt, const int n, const bool vf=false)
virtual void outputText (const char *txt, const int n, const bool vf=false)
virtual void loadFont ()
virtual bool setReverse (const Basic::LcNumber *const rnumber)

Private Member Functions

GLubyte * loadTypeFace (const GLint index, const GLenum reverse)

Static Private Member Functions

static void reverseBitmapOrder (GLubyte *bitmap, int numBitmapBytes, int numBytesWide)
static GLubyte reverseByteOrder (GLubyte byte)

Private Attributes

bool reverse
const char ** fontMap
int numFonts

Static Private Attributes

static const char ** defaultFontMap
static const int defaultNumFonts

Detailed Description

General font class
    Slots:
   	1. reverse		(LcNumber)		Reverse video 


Constructor & Destructor Documentation

Eaagles::BasicGL::LcBitmapFont::LcBitmapFont (  ) 

Constructor. Initializes parameters such as font width, font height, bitmap width, bitmap height etc.


Member Function Documentation

void Eaagles::BasicGL::LcBitmapFont::outputText ( const double  x,
const double  y,
const char *  txt,
const int  n,
const bool  vf = false 
) [virtual]

Outputs n characters of the text txt at the position (x, y). If vf is set to true, output is displayed vertically.

Implements Eaagles::BasicGL::LcFont.

void Eaagles::BasicGL::LcBitmapFont::outputText ( const char *  txt,
const int  n,
const bool  vf = false 
) [virtual]

Outputs n characters of the text txt at current position. If vf is set to true, output is displayed vertically.

Implements Eaagles::BasicGL::LcFont.

void Eaagles::BasicGL::LcBitmapFont::loadFont (  )  [virtual]

Loads the font.

Implements Eaagles::BasicGL::LcFont.

bool Eaagles::BasicGL::LcBitmapFont::setReverse ( const Basic::LcNumber *const  rnumber  )  [virtual]

Sets the font to reverse if rnumber != 0.

GLubyte * Eaagles::BasicGL::LcBitmapFont::loadTypeFace ( const GLint  index,
const GLenum  reverse 
) [private]

Loads the font for one character.

void Eaagles::BasicGL::LcBitmapFont::reverseBitmapOrder ( GLubyte *  bitmap,
int  numBitmapBytes,
int  numBytesWide 
) [static, private]

Reverses the order of the bytes.

GLubyte Eaagles::BasicGL::LcBitmapFont::reverseByteOrder ( GLubyte  byte  )  [static, private]

Reverses the order of the bits.


Member Data Documentation

bool Eaagles::BasicGL::LcBitmapFont::reverse [private]

Reverse the font.

const char** Eaagles::BasicGL::LcBitmapFont::fontMap [private]

Font map (ASCII code to file name mapping).

int Eaagles::BasicGL::LcBitmapFont::numFonts [private]

Number of fonts in the map.

const char ** Eaagles::BasicGL::LcBitmapFont::defaultFontMap [static, private]

Default fontMap.

const int Eaagles::BasicGL::LcBitmapFont::defaultNumFonts [static, private]

Default number of fonts in the map.


Generated on Tue Dec 19 16:26:36 2006 for Eaagles by  doxygen 1.5.0