Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

BFont Class Reference

#include <font.h>

List of all members.

Public Methods

 BFont (Game *pgame, const char *fontbitmapfile)
 ~BFont ()
bool loadFontMetrics (const char *filename)
int getLineHeight ()
int getCharWidth (unsigned char ch)
int getCharXPos (unsigned char ch)
int getCharYPos (unsigned char ch)
int getTextureID ()
TexturegetTexture ()
int getBlockWidth ()
void getRGBA (float &fr, float &fg, float &fb, float &fa)
void getHotkeyRGBA (float &fr, float &fg, float &fb, float &fa)
void setRGBA (float fr, float fg, float fb, float fa)
void setHotkeyRGBA (float fr, float fg, float fb, float fa)

Private Attributes

float r
float g
float b
float a
float hr
float hg
float hb
float ha
Gamegame
bool metricsloaded
Texturetexture
int widths [256]
int stretching


Constructor & Destructor Documentation

BFont::BFont Game *   pgame,
const char *   fontbitmapfile
 

BFont::~BFont  
 


Member Function Documentation

int BFont::getBlockWidth  
 

Return a width of one character block.

int BFont::getCharWidth unsigned char   ch
 

int BFont::getCharXPos unsigned char   ch
 

int BFont::getCharYPos unsigned char   ch
 

void BFont::getHotkeyRGBA float &   fr,
float &   fg,
float &   fb,
float &   fa
 

Get hotkey RGBA color values.

int BFont::getLineHeight  
 

void BFont::getRGBA float &   fr,
float &   fg,
float &   fb,
float &   fa
 

Get RGBA color values.

Texture* BFont::getTexture   [inline]
 

Return a pointer to Texture.

int BFont::getTextureID   [inline]
 

Return a GL texture ID.

bool BFont::loadFontMetrics const char *   filename
 

Load a font metrics file (*.fmi) to get correct font spacing.

void BFont::setHotkeyRGBA float   fr,
float   fg,
float   fb,
float   fa
 

Set hotkey RGBA color values.

void BFont::setRGBA float   fr,
float   fg,
float   fb,
float   fa
 

Set RGBA color values.


Member Data Documentation

float BFont::a [private]
 

float BFont::b [private]
 

float BFont::g [private]
 

Game* BFont::game [private]
 

float BFont::ha [private]
 

float BFont::hb [private]
 

float BFont::hg [private]
 

float BFont::hr [private]
 

bool BFont::metricsloaded [private]
 

float BFont::r [private]
 

int BFont::stretching [private]
 

Texture* BFont::texture [private]
 

int BFont::widths[256] [private]
 


The documentation for this class was generated from the following file:
Generated at Fri Oct 5 20:23:53 2001 for Executor by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001