- [NEW] Funcions per a apilar i desapilar surfaces target i source:

surf.source.push(surface)
surf.source.pop()
surf.target.push(surface)
surf.target.pop()
This commit is contained in:
2026-05-29 20:37:15 +02:00
parent a45cb95030
commit 4c0eabcc5c
4 changed files with 100 additions and 8 deletions
+20
View File
@@ -176,6 +176,16 @@ namespace mini
uint8_t get() {
return state.dest_surface;
}
void push(uint8_t surface) {
state.dest_stack.push(state.dest_surface);
state.dest_surface = surface;
}
void pop() {
state.dest_surface = state.dest_stack.top();
state.dest_stack.pop();
}
}
namespace source {
@@ -186,6 +196,16 @@ namespace mini
uint8_t get() {
return state.source_surface;
}
void push(uint8_t surface) {
state.source_stack.push(state.source_surface);
state.source_surface = surface;
}
void pop() {
state.source_surface = state.source_stack.top();
state.source_stack.pop();
}
}
namespace clip {