Layers are back
This commit is contained in:
@@ -42,6 +42,10 @@ class PD_API Drawlist {
|
||||
void Copy(Drawlist& other);
|
||||
void Optimize();
|
||||
void Clear();
|
||||
void SetLayer(int layer) { pCurrentLayer = layer; }
|
||||
void LayerUp() { pCurrentLayer++; }
|
||||
void LayerDown() { pCurrentLayer--; }
|
||||
int GetLayer() const { return pCurrentLayer; }
|
||||
|
||||
size_t GetNumVertices() const {
|
||||
size_t count = 0;
|
||||
@@ -126,6 +130,7 @@ class PD_API Drawlist {
|
||||
|
||||
private:
|
||||
Texture pCurrentTexture;
|
||||
int pCurrentLayer = 0;
|
||||
Pool<Command> pCommands;
|
||||
Pool<fvec2> pPath;
|
||||
Pool<Vertex> pVertices;
|
||||
|
||||
Reference in New Issue
Block a user