#include <TextureAnime.H>
所有成员的列表。
组合类型 |
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) |
保护属性 |
Frame * | PicList |
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] |
void hgl::TextureAnime::Clear |
( |
| ) |
[virtual] |
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] |
成员数据文档
该类的文档由以下文件生成: