CMGDK r49-rc2
公有成员 | 保护成员
hgl::HTPLayer类参考

#include <HTPLayer.H>

继承图,类hgl::HTPLayer
hgl::HTPBaseLayer

所有成员的列表。

公有成员

 HTPLayer ()
 HTPLayer (TileLibrary *, Stream *)
 ~HTPLayer ()
Texture2DGetTexture (float &r, float &b)
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 Draw (uint mode, const Vertex2< float > *vcoord, const Vertex2< float > *tcoord, int count)

保护成员

void Build ()

构造及析构函数文档

hgl::HTPLayer::HTPLayer ( )
hgl::HTPLayer::HTPLayer ( TileLibrary tlb,
Stream str 
)
hgl::HTPLayer::~HTPLayer ( )

成员函数文档

void hgl::HTPLayer::Build ( ) [protected]
void hgl::HTPLayer::Draw ( uint  mode,
const Vertex2< float > *  vcoord,
const Vertex2< float > *  tcoord,
int  count 
)

使用指定方式绘制

参数:
mode绘图模式
vcoord绘制坐标
tcoord贴图坐标
count数据个数
void hgl::HTPLayer::Draw ( float  l,
float  t 
) [inline]
void hgl::HTPLayer::Draw ( float  l,
float  t,
float  sw,
float  sh 
)

绘制当前图层

参数:
l,t图片绘制的左上角坐标
sw,sh图片绘制时的缩放比
void hgl::HTPLayer::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::HTPLayer::DrawRect ( float  l,
float  t,
float  r,
float  b 
) [inline]
Texture2D* hgl::HTPLayer::GetTexture ( float &  r,
float &  b 
) [inline]

取得贴图

参数:
r贴图绘制用的右边界纹理坐标
b贴图绘制用的底边界纹理坐标
返回:
贴图指针

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