CMGDK r49-rc2
公有成员
hgl::TexFont类参考

#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结束字符
fmtprintf格式文件名描述串
返回:
添加成功的字符
bool hgl::TexFont::DrawChar ( int  x,
int  y,
wchar_t  ch 
)

绘制一个字符

bool hgl::TexFont::DrawFormat ( int  l,
int  t,
const wchar_t *  fmt,
  ... 
)

绘制一个字符串,以printf格式化字符串

bool hgl::TexFont::DrawString ( int  x,
int  y,
const wchar_t *  str 
)

绘制一个字符串

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]

该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义