Pyrogenesis
trunk
|
Storage for a bitmap font. More...
#include <Font.h>
Classes | |
struct | GlyphData |
class | GlyphMap |
Relatively efficient lookup of GlyphData from 16-bit Unicode codepoint. More... | |
Public Member Functions | |
bool | HasRGB () const |
int | GetLineSpacing () const |
int | GetHeight () const |
int | GetCharacterWidth (wchar_t c) const |
void | CalculateStringSize (const wchar_t *string, int &w, int &h) const |
void | GetGlyphBounds (float &x0, float &y0, float &x1, float &y1) const |
const GlyphMap & | GetGlyphs () const |
CTexturePtr | GetTexture () const |
Private Member Functions | |
CFont () | |
Private Attributes | |
CTexturePtr | m_Texture |
bool | m_HasRGB |
GlyphMap | m_Glyphs |
int | m_LineSpacing |
int | m_Height |
float | m_BoundsX0 |
float | m_BoundsY0 |
float | m_BoundsX1 |
float | m_BoundsY1 |
Friends | |
class | CFontManager |
Storage for a bitmap font.
Loaded by CFontManager.
|
inlineprivate |
void CFont::CalculateStringSize | ( | const wchar_t * | string, |
int & | w, | ||
int & | h | ||
) | const |
int CFont::GetCharacterWidth | ( | wchar_t | c | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |