![]() |
CMGDK r49-rc2
|
#include <HTPBase.H>
公有成员 | |
void | SetShow (bool) |
设置所有层显示属性 | |
void | SetAlpha (float) |
设置所有层的Alpha值 | |
void | SetColor3f (float, float, float) |
设置所有层的颜色 | |
void | SetColor4f (float, float, float, float) |
设置所有层的颜色以及Alpha | |
void | SetColor4fv (float *v) |
设置所有层的颜色 | |
void | SetColor (const Color4f &v) |
设置所有层的颜色 | |
void | SetColor4b (int r, int g, int b, int a) |
设置所有层的颜色 | |
HTPBaseLayer * | GetLayer (int n) |
根据编号取得层 | |
HTPBaseLayer * | GetLayer (const wchar_t *) |
根据名称取得层 | |
HTPBase () | |
virtual | ~HTPBase () |
bool | Load (Stream *) |
bool | Load (const wchar_t *filename) |
bool | Load (HAC *hac, const wchar_t *filename) |
公有属性 | |
Property< int > | Width |
Property< int > | Height |
Property< int > | LayerNumber |
保护成员 | |
void | InitPrivate () |
int | GetWidth () |
int | GetHeight () |
int | GetLayerNumber () |
virtual HTPBaseLayer * | CreateLayer (Stream *)=0 |
保护属性 | |
int | width |
int | height |
HTPBase负责HTP的数据处理
hgl::HTPBase::HTPBase | ( | ) | [inline] |
virtual hgl::HTPBase::~HTPBase | ( | ) | [inline, virtual] |
virtual HTPBaseLayer* hgl::HTPBase::CreateLayer | ( | Stream * | ) | [protected, pure virtual] |
int hgl::HTPBase::GetHeight | ( | ) | [inline, protected] |
HTPBaseLayer* hgl::HTPBase::GetLayer | ( | int | n | ) | [inline] |
根据编号取得层
HTPBaseLayer * hgl::HTPBase::GetLayer | ( | const wchar_t * | name | ) |
根据名称取得层
int hgl::HTPBase::GetLayerNumber | ( | ) | [inline, protected] |
int hgl::HTPBase::GetWidth | ( | ) | [inline, protected] |
void hgl::HTPBase::InitPrivate | ( | ) | [protected] |
bool hgl::HTPBase::Load | ( | const wchar_t * | filename | ) |
bool hgl::HTPBase::Load | ( | HAC * | hac, |
const wchar_t * | filename | ||
) |
bool hgl::HTPBase::Load | ( | Stream * | str | ) |
void hgl::HTPBase::SetAlpha | ( | float | a | ) |
设置所有层的Alpha值
void hgl::HTPBase::SetColor | ( | const Color4f & | v | ) | [inline] |
设置所有层的颜色
void hgl::HTPBase::SetColor3f | ( | float | r, |
float | g, | ||
float | b | ||
) |
设置所有层的颜色
设置所有层的颜色系数
r | 红色系数(0.0-1.0) |
g | 红色系数(0.0-1.0) |
b | 红色系数(0.0-1.0) |
void hgl::HTPBase::SetColor4f | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
设置所有层的颜色以及Alpha
void hgl::HTPBase::SetColor4fv | ( | float * | v | ) | [inline] |
设置所有层的颜色
void hgl::HTPBase::SetShow | ( | bool | s | ) |
设置所有层显示属性
int hgl::HTPBase::height [protected] |
int hgl::HTPBase::width [protected] |