- [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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user