实现图层顺序接口
更多...
#include <VisualInterface.h>
Public 成员函数 | |
| LayerInterface () | |
| 构造图层顺序接口 | |
| ~LayerInterface () | |
| 析构图层顺序接口,从world图层顺序容器中删去这个类 | |
| void | SetLayer (int _layer) |
| 设置图层层级 要实现必须先把排好序的容器中删除已经排好序的对象,重新插入已经改变好的对象 | |
| int | GetLayer () const |
| 获取图层层级 | |
| virtual void | Render ()=0 |
| 纯虚函数,继承的类都有它来实现渲染,world默认遍历函数实现渲染 | |
Private 属性 | |
| int | layer = 0 |
| 图层层级 默认同一层级 | |
实现图层顺序接口
| LayerInterface::LayerInterface | ( | ) |
构造图层顺序接口
| LayerInterface::~LayerInterface | ( | ) |
析构图层顺序接口,从world图层顺序容器中删去这个类
| int LayerInterface::GetLayer | ( | ) | const |
获取图层层级
|
pure virtual |
| void LayerInterface::SetLayer | ( | int | _layer | ) |
设置图层层级 要实现必须先把排好序的容器中删除已经排好序的对象,重新插入已经改变好的对象
| [in] | _layer | 图层层级 |
|
private |
图层层级 默认同一层级