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

#include <HTPBase.H>

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

所有成员的列表。

公有成员

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)
 设置所有层的颜色
HTPBaseLayerGetLayer (int n)
 根据编号取得层
HTPBaseLayerGetLayer (const wchar_t *)
 根据名称取得层
 HTPBase ()
virtual ~HTPBase ()
bool Load (Stream *)
bool Load (const wchar_t *filename)
bool Load (HAC *hac, const wchar_t *filename)

公有属性

Property< intWidth
Property< intHeight
Property< intLayerNumber

保护成员

void InitPrivate ()
int GetWidth ()
int GetHeight ()
int GetLayerNumber ()
virtual HTPBaseLayerCreateLayer (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]

根据编号取得层

hgl::HTPhgl::HTPParthgl::HTPTile重载。

HTPBaseLayer * hgl::HTPBase::GetLayer ( const wchar_t *  name)

根据名称取得层

hgl::HTPhgl::HTPParthgl::HTPTile重载。

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::SetColor4b ( int  r,
int  g,
int  b,
int  a 
) [inline]

设置所有层的颜色

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::width [protected]

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