![]() |
CMGDK r49-rc2
|
HGP图层类 更多...
#include <HGPLayer.H>
公有成员 | |
HGPLayer (int, int) | |
virtual | ~HGPLayer () |
void | Load (TDFNode *, uint=0, uint=1) |
加载数据 | |
void | Create (int, int, int, int, ColorType, uint, void *, uint=1) |
创建层数据 | |
virtual void | Clear ()=0 |
清除数据 | |
virtual void | Change (ColorType, void *)=0 |
更改图像 | |
virtual void | Change (int, int, int, int, ColorType, void *)=0 |
更改图像 | |
virtual void | Draw (double, double, double=1, double=1)=0 |
绘制当前层(指定宽高缩放系数) | |
virtual bool | Draw (const Vertex2f *)=0 |
绘制当前层(指定四个顶点) | |
void | DrawRect (double l, double t, double w, double h) |
void | Draw (const RectScope2f &rs) |
绘制当前层(指定范围) | |
RectScope2i | GetScope () |
公有属性 | |
Property< LayerType > | Type |
层类型 | |
Property< ColorType > | OrignColor |
原始色彩类型(只读) | |
WideString | Name |
图层名称 | |
bool | Visible |
本层是否显示 | |
BlendMode | Blend |
混合设置 | |
Color4f | Color |
颜色系数 | |
Property< int > | Left |
层相对左边界坐标 | |
Property< int > | Top |
层相对上边界坐标 | |
Property< int > | Width |
层宽度 | |
Property< int > | Height |
层高度 | |
Property< TextureFilter > | Filter |
贴图过滤方式设置虚拟变量 | |
Property< int > | Anisotropy |
各向异性过滤设置 |
HGP图层类
HGPLayer是HGP图片中一个图层的控制类,可以用于控制这一层是否显示、整体透明度、混合模式等等
hgl::HGPLayer::~HGPLayer | ( | ) | [virtual] |
virtual void hgl::HGPLayer::Change | ( | ColorType | , |
void * | |||
) | [pure virtual] |
更改图像
更改图像
virtual void hgl::HGPLayer::Clear | ( | ) | [pure virtual] |
清除数据
void hgl::HGPLayer::Create | ( | int | left, |
int | top, | ||
int | width, | ||
int | height, | ||
ColorType | color, | ||
uint | format, | ||
void * | data, | ||
uint | mip = 1 |
||
) |
创建层数据
创建当前层图像数据
left,top | 这一层图片的显示偏移 |
width,height | 这一层图片的宽与高 |
color | 源色彩类型 |
format | 使用的OpenGL格式 |
data | 原始图像象素数据 |
mip | mipmap级别 |
virtual bool hgl::HGPLayer::Draw | ( | const Vertex2f * | ) | [pure virtual] |
绘制当前层(指定四个顶点)
void hgl::HGPLayer::Draw | ( | const RectScope2f & | rs | ) | [inline] |
绘制当前层(指定范围)
virtual void hgl::HGPLayer::Draw | ( | double | , |
double | , | ||
double | = 1 , |
||
double | = 1 |
||
) | [pure virtual] |
绘制当前层(指定宽高缩放系数)
void hgl::HGPLayer::DrawRect | ( | double | l, |
double | t, | ||
double | w, | ||
double | h | ||
) | [inline] |
h | 绘制当前层(指定范围) |
RectScope2i hgl::HGPLayer::GetScope | ( | ) | [inline] |
加载数据
从TDF中加载一层数据
tdf | TDF数据 |
format | OpenGL格式 |
mip | mipmap级别 |
各向异性过滤设置
贴图过滤方式设置虚拟变量
层相对左边界坐标
Property<ColorType> hgl::HGPLayer::OrignColor |
原始色彩类型(只读)
层相对上边界坐标
本层是否显示