Remove Layer trait and simplify Canvas
This commit is contained in:
parent
bb424e54c5
commit
592cc68506
9 changed files with 181 additions and 174 deletions
|
|
@ -1,16 +0,0 @@
|
|||
use crate::canvas::{Event, Layer, Size};
|
||||
|
||||
pub trait Program {
|
||||
type Input;
|
||||
|
||||
fn layers<'a>(&'a self, input: &'a Self::Input)
|
||||
-> Vec<Box<dyn Layer + 'a>>;
|
||||
|
||||
fn update<'a>(
|
||||
&'a mut self,
|
||||
_event: Event,
|
||||
_bounds: Size,
|
||||
_input: &'a Self::Input,
|
||||
) {
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue