Layers are back

This commit is contained in:
2026-09-06 15:58:19 +02:00
parent 72bb76dcbc
commit acc4fd11eb
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;