Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CBitmapFont Class Reference

#include <BitmapFont.h>

Classes

struct  BitmapCharacter
 

Public Member Functions

 CBitmapFont ()
 
void DrawText (CByteImage *pImage, const char *pText, int x, int y, unsigned char r=0, unsigned char g=0, unsigned char b=0) const
 
void DrawText (CByteImage *pImage, const char *pText, int x, int y, Color::Color color) const
 
int GetFontHeight () const
 
bool LoadPCFFont (const char *pFilePath)
 
 ~CBitmapFont ()
 

Private Member Functions

void AddEncoding (int nEncoding, int nIndex)
 
bool GetCharacterInformation (unsigned char encoding, int *&pCoordinatesX, int *&pCoordinatesY, int &nCoordinates, int &nWidth) const
 
void Init (int nCharacters)
 
void Reset ()
 
void SetGlyph (int nIndex, int *pCoordinatesX, int *pCoordinatesY, int nCoordinates, int nWidth, int nAscent, int nDescent)
 

Private Attributes

int m_nCharacters
 
int m_nFontHeight
 
int m_nMaxEncoding
 
BitmapCharacterm_pCharacters
 
int * m_pEncodingTable
 

Detailed Description

Definition at line 65 of file BitmapFont.h.

Constructor & Destructor Documentation

CBitmapFont::CBitmapFont ( )

Definition at line 152 of file BitmapFont.cpp.

CBitmapFont::~CBitmapFont ( )

Definition at line 160 of file BitmapFont.cpp.

Member Function Documentation

void CBitmapFont::AddEncoding ( int  nEncoding,
int  nIndex 
)
private

Definition at line 251 of file BitmapFont.cpp.

void CBitmapFont::DrawText ( CByteImage pImage,
const char *  pText,
int  x,
int  y,
unsigned char  r = 0,
unsigned char  g = 0,
unsigned char  b = 0 
) const

Definition at line 522 of file BitmapFont.cpp.

void CBitmapFont::DrawText ( CByteImage pImage,
const char *  pText,
int  x,
int  y,
Color::Color  color 
) const

Definition at line 552 of file BitmapFont.cpp.

bool CBitmapFont::GetCharacterInformation ( unsigned char  encoding,
int *&  pCoordinatesX,
int *&  pCoordinatesY,
int &  nCoordinates,
int &  nWidth 
) const
private

Definition at line 215 of file BitmapFont.cpp.

int CBitmapFont::GetFontHeight ( ) const
inline

Definition at line 81 of file BitmapFont.h.

void CBitmapFont::Init ( int  nCharacters)
private

Definition at line 190 of file BitmapFont.cpp.

bool CBitmapFont::LoadPCFFont ( const char *  pFilePath)

Definition at line 299 of file BitmapFont.cpp.

void CBitmapFont::Reset ( )
private

Definition at line 165 of file BitmapFont.cpp.

void CBitmapFont::SetGlyph ( int  nIndex,
int *  pCoordinatesX,
int *  pCoordinatesY,
int  nCoordinates,
int  nWidth,
int  nAscent,
int  nDescent 
)
private

Definition at line 230 of file BitmapFont.cpp.

Member Data Documentation

int CBitmapFont::m_nCharacters
private

Definition at line 110 of file BitmapFont.h.

int CBitmapFont::m_nFontHeight
private

Definition at line 112 of file BitmapFont.h.

int CBitmapFont::m_nMaxEncoding
private

Definition at line 107 of file BitmapFont.h.

BitmapCharacter* CBitmapFont::m_pCharacters
private

Definition at line 109 of file BitmapFont.h.

int* CBitmapFont::m_pEncodingTable
private

Definition at line 106 of file BitmapFont.h.


The documentation for this class was generated from the following files:


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28