CMGDK r49-rc2
组合类型 | 公有成员 | 公有属性 | 保护成员 | 保护属性
hgl::TextureAnime类参考

#include <TextureAnime.H>

继承图,类hgl::TextureAnime
hgl::Texture2D hgl::Texture hgl::DataObject hgl::Object hgl::_Object

所有成员的列表。

组合类型

struct  Frame

公有成员

 TextureAnime ()
 TextureAnime (TDFNode *, uint=0, int=1)
 TextureAnime (Stream *, uint=0, int=1)
 TextureAnime (const wchar_t *, uint=0, int=1)
 TextureAnime (HAC *, const wchar_t *, uint=0, int=1)
virtual ~TextureAnime ()
virtual bool Load (TDFNode *, uint=0, int=1)
virtual void Clear ()
 清除贴图
virtual void Bind ()
virtual void Draw (float, float, float=1, float=1)
 绘制贴图
virtual bool Draw (const Vertex2f *)
 绘制贴图,并指定四个角的顶点

公有属性

bool Loop
 是否循环播放
float Speed
 播放速度,默认为1

保护成员

void InitPrivate ()
void SetMinFilter (TextureFilter)
void SetMagFilter (TextureFilter)
void SetFilter (TextureFilter)
void SetAni (int)

保护属性

FramePicList
uint FrameTime
uint TotalTime
int CurFrame
int FrameCount

详细描述

贴图动画
为动画的每一帧都创建一张贴图


构造及析构函数文档

hgl::TextureAnime::TextureAnime ( )
hgl::TextureAnime::TextureAnime ( TDFNode tdf,
uint  fmt = 0,
int  mip = 1 
)
hgl::TextureAnime::TextureAnime ( Stream str,
uint  fmt = 0,
int  mip = 1 
)
hgl::TextureAnime::TextureAnime ( const wchar_t *  fn,
uint  fmt = 0,
int  mip = 1 
)
hgl::TextureAnime::TextureAnime ( HAC hac,
const wchar_t *  fn,
uint  fmt = 0,
int  mip = 1 
)
virtual hgl::TextureAnime::~TextureAnime ( ) [inline, virtual]

成员函数文档

void hgl::TextureAnime::Bind ( ) [virtual]

重载hgl::Texture

void hgl::TextureAnime::Clear ( ) [virtual]

清除贴图

重载hgl::Texture2D

void hgl::TextureAnime::Draw ( float  left,
float  top,
float  scale_width = 1,
float  scale_height = 1 
) [virtual]

绘制贴图

使用当前贴图绘制一个矩形

参数:
left矩形左边坐标
top矩形上边坐标
scale_width宽度缩放系数
scale_height高度缩放系数

重载hgl::Texture2D

bool hgl::TextureAnime::Draw ( const Vertex2f vertex) [virtual]

绘制贴图,并指定四个角的顶点

使用当前贴图绘制一个四边形

参数:
vertex四边形的四个顶点:左上,右上,右下,左下

重载hgl::Texture2D

void hgl::TextureAnime::InitPrivate ( ) [protected]
bool hgl::TextureAnime::Load ( TDFNode tdf,
uint  fmt = 0,
int  mip = 1 
) [virtual]
void hgl::TextureAnime::SetAni ( int  a) [protected]
void hgl::TextureAnime::SetFilter ( TextureFilter  tf) [protected]
void hgl::TextureAnime::SetMagFilter ( TextureFilter  tf) [protected]
void hgl::TextureAnime::SetMinFilter ( TextureFilter  tf) [protected]

成员数据文档

是否循环播放

播放速度,默认为1


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