![]() |
CMGDK r49-rc2
|
贴图标签 更多...
#include <TexLabel.H>
公有成员 | |
TexLabel () | |
TexLabel (float, float, Texture2D *t2d=NULL, bool=false) | |
TexLabel (float, float, const wchar_t *) | |
TexLabel (float, float, HAC *, const wchar_t *) | |
void | SetSourceScope (int, int, int, int) |
设置贴图显示的源范围 | |
void | SetImage (Texture2D *, bool=false) |
指定图片指针 | |
void | SetImage (const wchar_t *fn) |
指定图片文件 | |
void | SetImage (HAC *hac, const wchar_t *fn) |
指定图片文件 | |
公有属性 | |
RectScope2f | SourceScope |
显示源范围 | |
保护成员 | |
void | DefaultDraw (GUIObject *) |
保护属性 | |
int | SourceWidth |
int | SourceHeight |
贴图标签
TexLabel是一个显示Texture2D的控件,并提供各种显示控制方法
hgl::gui::TexLabel::TexLabel | ( | ) |
贴图标签
hgl::gui::TexLabel::TexLabel | ( | float | x, |
float | y, | ||
Texture2D * | tex = NULL , |
||
bool | pi = false |
||
) |
贴图标签
x,y | 显示坐标 |
pi | 是否放弃不管,由TexLabel删除(默认false) |
hgl::gui::TexLabel::TexLabel | ( | float | x, |
float | y, | ||
const wchar_t * | filename | ||
) |
hgl::gui::TexLabel::TexLabel | ( | float | x, |
float | y, | ||
HAC * | hac, | ||
const wchar_t * | filename | ||
) |
void hgl::gui::TexLabel::DefaultDraw | ( | GUIObject * | go | ) | [protected] |
void hgl::gui::TexLabel::SetImage | ( | HAC * | hac, |
const wchar_t * | fn | ||
) | [inline, virtual] |
指定图片文件
void hgl::gui::TexLabel::SetImage | ( | const wchar_t * | fn | ) | [inline, virtual] |
指定图片文件
void hgl::gui::TexLabel::SetImage | ( | Texture2D * | tex, |
bool | pi = false |
||
) | [virtual] |
指定图片指针
设置贴图显示的源范围
设置图片显示源范围,即只显示指定部分
l,t | 左上角坐标(象素) |
w,h | 宽高(象素) |
int hgl::gui::TexLabel::SourceHeight [protected] |
int hgl::gui::TexLabel::SourceWidth [protected] |