![]() |
CMGDK r49-rc2
|
#include <HTP.H>
公有成员 | |
HTP () | |
HTP (TileLibrary *tlb) | |
HTP (TileLibrary *tlb, Stream *str) | |
HTP (TileLibrary *tlb, const wchar_t *filename) | |
HTP (TileLibrary *tlb, HAC *hac, const wchar_t *filename) | |
bool | Load (TileLibrary *tlb, Stream *str) |
bool | Load (TileLibrary *tlb, const wchar_t *filename) |
bool | Load (TileLibrary *tlb, HAC *hac, const wchar_t *filename) |
HTPLayer * | GetLayer (int n) |
根据编号取得层 | |
HTPLayer * | GetLayer (const wchar_t *n) |
根据名称取得层 | |
void | SetBlend (BlendMode &) |
设置所有层的混合模式 | |
void | Draw (float l, float t, float sw, float sh) |
void | DrawRect (float l, float t, float r, float b) |
void | Draw (float l, float t) |
void | DrawPart (float l, float t, float w, float h, float pl, float pt, float pw, float ph) |
绘制部分 | |
void | DrawPart (const RectScope2f &vrs, const RectScope2f &srs) |
void | Draw (uint, const Vertex2< float > *vcoord, const Vertex2< float > *tcoord, int) |
使用指定方式绘制 |
hgl::HTP::HTP | ( | ) | [inline] |
hgl::HTP::HTP | ( | TileLibrary * | tlb | ) | [inline] |
hgl::HTP::HTP | ( | TileLibrary * | tlb, |
Stream * | str | ||
) | [inline] |
hgl::HTP::HTP | ( | TileLibrary * | tlb, |
const wchar_t * | filename | ||
) | [inline] |
hgl::HTP::HTP | ( | TileLibrary * | tlb, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) | [inline] |
void hgl::HTP::Draw | ( | float | l, |
float | t, | ||
float | sw, | ||
float | sh | ||
) |
绘制当前图片
l,t | 图片绘制的左上角坐标 |
sw,sh | 图片绘制时的缩放比 |
void hgl::HTP::Draw | ( | float | l, |
float | t | ||
) | [inline] |
void hgl::HTP::Draw | ( | uint | mode, |
const Vertex2< float > * | vcoord, | ||
const Vertex2< float > * | tcoord, | ||
int | count | ||
) |
使用指定方式绘制
使用指定方式绘制
mode | 绘图模式 |
vcoord | 绘制坐标 |
tcoord | 贴图坐标 |
count | 数据个数 |
void hgl::HTP::DrawPart | ( | float | draw_left, |
float | draw_top, | ||
float | draw_width, | ||
float | draw_height, | ||
float | part_left, | ||
float | part_top, | ||
float | part_width, | ||
float | part_height | ||
) |
绘制部分
绘制当前图片的一部分
draw_left | 图片绘制的左边界坐标 |
draw_top | 图片绘制的上边界坐标 |
draw_width | 图片绘制的宽度 |
draw_height | 图片绘制的高度 |
part_left | 图片部分的左边界相对坐标(0-1) |
part_top | 图片部分的上边界相对坐标(0-1) |
part_width | 图片宽度的相对范围(0-1) |
part_height | 图片高度的相对范围(0-1) |
void hgl::HTP::DrawPart | ( | const RectScope2f & | vrs, |
const RectScope2f & | srs | ||
) | [inline] |
srs | 绘制部分 |
void hgl::HTP::DrawRect | ( | float | l, |
float | t, | ||
float | r, | ||
float | b | ||
) | [inline] |
HTPLayer* hgl::HTP::GetLayer | ( | const wchar_t * | n | ) | [inline] |
根据名称取得层
重载hgl::HTPBase。
根据编号取得层
重载hgl::HTPBase。
bool hgl::HTP::Load | ( | TileLibrary * | tlb, |
Stream * | str | ||
) | [inline] |
bool hgl::HTP::Load | ( | TileLibrary * | tlb, |
const wchar_t * | filename | ||
) | [inline] |
bool hgl::HTP::Load | ( | TileLibrary * | tlb, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) | [inline] |
void hgl::HTP::SetBlend | ( | BlendMode & | bm | ) |
设置所有层的混合模式