Kiwano Engine v1.3.x
kiwano::Layer类 参考

图层 更多...

#include <Layer.h>

Public 成员函数

 Layer (const Rect &bounds, float opacity=1.f)
 创建矩形图层 更多...
 
 Layer (RefPtr< Shape > mask, const Matrix3x2 &mask_transform=Matrix3x2(), float opacity=1.f, const Rect &bounds=Rect::Infinite())
 创建图层 更多...
 

Public 属性

Rect bounds
 
float opacity
 
RefPtr< Shapemask
 
Matrix3x2 mask_transform
 

详细描述

图层

构造及析构函数说明

◆ Layer() [1/2]

kiwano::Layer::Layer ( const Rect bounds,
float  opacity = 1.f 
)

创建矩形图层

参数
bounds图层边界
opacity图层透明度

◆ Layer() [2/2]

kiwano::Layer::Layer ( RefPtr< Shape mask,
const Matrix3x2 mask_transform = Matrix3x2(),
float  opacity = 1.f,
const Rect bounds = Rect::Infinite() 
)

创建图层

参数
mask几何蒙层
mask_transform几何蒙层变换
opacity图层透明度
bounds图层边界