![]() |
CMGDK r49-rc2
|
#include <TexFont.H>
公有成员 | |
int | GetCharHeight () |
int | GetCharWidth (wchar_t) |
int | GetStringWidth (const wchar_t *) |
void | SetScale (float sw, float sh) |
void | SetAlpha (float a) |
TexFont () | |
virtual | ~TexFont () |
bool | Add (wchar_t, const wchar_t *) |
增加一个字符 | |
int | Add (wchar_t, wchar_t, const wchar_t *) |
增加一批字符 | |
bool | DrawChar (int, int, wchar_t) |
绘制一个字符 | |
bool | DrawString (int, int, const wchar_t *) |
绘制一个字符串 | |
bool | DrawFormat (int, int, const wchar_t *,...) |
绘制一个字符串,以printf格式化字符串 |
贴图字体
hgl::TexFont::TexFont | ( | ) |
hgl::TexFont::~TexFont | ( | ) | [virtual] |
bool hgl::TexFont::Add | ( | wchar_t | ch, |
const wchar_t * | filename | ||
) |
增加一个字符
添加一个字符
ch | 字符 |
filename | 贴图文件名 |
int hgl::TexFont::Add | ( | wchar_t | start, |
wchar_t | end, | ||
const wchar_t * | fmt | ||
) |
增加一批字符
添加一批字符
start | 起始字符 |
end | 结束字符 |
fmt | printf格式文件名描述串 |
int hgl::TexFont::GetCharHeight | ( | ) | [inline] |
int hgl::TexFont::GetCharWidth | ( | wchar_t | ch | ) |
int hgl::TexFont::GetStringWidth | ( | const wchar_t * | str | ) |
void hgl::TexFont::SetAlpha | ( | float | a | ) | [inline] |
void hgl::TexFont::SetScale | ( | float | sw, |
float | sh | ||
) | [inline] |