CMGDK r49-rc2
|
#include <HTPPart.H>
公有成员 | |
HTPPart () | |
HTPPart (TileLibrary *tlb) | |
HTPPart (TileLibrary *tlb, Stream *str) | |
HTPPart (TileLibrary *tlb, const wchar_t *filename) | |
HTPPart (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) |
HTPPartLayer * | GetLayer (int n) |
根据编号取得层 | |
HTPPartLayer * | GetLayer (const wchar_t *n) |
根据名称取得层 | |
void | SetBlend (BlendMode &) |
设置所有层的混合模式 | |
RectScope2i & | GetViewScope () |
取得显示范围 | |
void | SetViewScope (const RectScope2i &) |
设置显示范围 | |
void | SetViewScope (int l, int t, int w, int h) |
设置显示范围 | |
void | Draw (float l, float t, float sw, float sh) |
显示当前图片并指定缩放值 | |
void | Draw (float l, float t) |
显示当前图片 | |
void | DrawRect (float l, float t, float w, float h) |
HTPPart是HTP文件的特殊应用方式,一般情况下用于超大图片显示。
它要求在一开始指定一个显示范围大小,在显示前再具体指定要显示的图片原始范围。
hgl::HTPPart::HTPPart | ( | ) | [inline] |
hgl::HTPPart::HTPPart | ( | TileLibrary * | tlb | ) | [inline] |
hgl::HTPPart::HTPPart | ( | TileLibrary * | tlb, |
Stream * | str | ||
) | [inline] |
hgl::HTPPart::HTPPart | ( | TileLibrary * | tlb, |
const wchar_t * | filename | ||
) | [inline] |
hgl::HTPPart::HTPPart | ( | TileLibrary * | tlb, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) | [inline] |
void hgl::HTPPart::Draw | ( | float | l, |
float | t, | ||
float | sw, | ||
float | sh | ||
) |
显示当前图片并指定缩放值
绘制当前图片
l,t | 图片绘制的左上角坐标 |
sw,sh | 图片绘制时的缩放比 |
void hgl::HTPPart::Draw | ( | float | l, |
float | t | ||
) | [inline] |
显示当前图片
void hgl::HTPPart::DrawRect | ( | float | l, |
float | t, | ||
float | w, | ||
float | h | ||
) | [inline] |
h | 显示当前图片并指定宽高 |
HTPPartLayer* hgl::HTPPart::GetLayer | ( | int | n | ) | [inline] |
根据编号取得层
重载hgl::HTPBase。
HTPPartLayer* hgl::HTPPart::GetLayer | ( | const wchar_t * | n | ) | [inline] |
根据名称取得层
重载hgl::HTPBase。
RectScope2i& hgl::HTPPart::GetViewScope | ( | ) | [inline] |
取得显示范围
bool hgl::HTPPart::Load | ( | TileLibrary * | tlb, |
const wchar_t * | filename | ||
) | [inline] |
bool hgl::HTPPart::Load | ( | TileLibrary * | tlb, |
Stream * | str | ||
) | [inline] |
bool hgl::HTPPart::Load | ( | TileLibrary * | tlb, |
HAC * | hac, | ||
const wchar_t * | filename | ||
) | [inline] |
void hgl::HTPPart::SetBlend | ( | BlendMode & | bm | ) |
设置所有层的混合模式
void hgl::HTPPart::SetViewScope | ( | const RectScope2i & | rs | ) |
设置显示范围