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

#include <HTP.H>

继承图,类hgl::HTP
hgl::HTPBase

所有成员的列表。

公有成员

 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)
HTPLayerGetLayer (int n)
 根据编号取得层
HTPLayerGetLayer (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

HTPLayer* hgl::HTP::GetLayer ( int  n) [inline]

根据编号取得层

重载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)

设置所有层的混合模式


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