Inheritance diagram for Eaagles::BasicGL::LcBitmapFont:


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 |
General font class
Slots:
1. reverse (LcNumber) Reverse video
| Eaagles::BasicGL::LcBitmapFont::LcBitmapFont | ( | ) |
Constructor. Initializes parameters such as font width, font height, bitmap width, bitmap height etc.
| 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] |
| 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.
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.
1.5.0