Layers are back

This commit is contained in:
2026-09-06 16:16:59 +02:00
parent 320c4c8ef7
commit 126afd2472
3 changed files with 17 additions and 1 deletions
+5
View File
@@ -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;