Implement basic layer merging for graphics::layer::Stack
This commit is contained in:
parent
95769fcd59
commit
d3e9547079
6 changed files with 122 additions and 17 deletions
|
|
@ -304,6 +304,12 @@ impl Batch {
|
|||
self.gradients.clear();
|
||||
self.order.clear();
|
||||
}
|
||||
|
||||
pub fn append(&mut self, batch: &mut Batch) {
|
||||
self.solids.append(&mut batch.solids);
|
||||
self.gradients.append(&mut batch.gradients);
|
||||
self.order.append(&mut batch.order);
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue