render: merge Framed trait into Display
This commit is contained in:
@@ -27,13 +27,10 @@ pub trait Surface: Default + Clone + Debug {
|
||||
fn set_opacity(&mut self, opacity: u8);
|
||||
}
|
||||
|
||||
pub trait Framed {
|
||||
pub trait Display<T: Surface>: Surfaces<T> {
|
||||
fn start_frame(&mut self) {}
|
||||
fn end_frame(&mut self) {}
|
||||
}
|
||||
|
||||
pub trait Display<T: Surface>: Surfaces<T> + Framed {
|
||||
fn render_frame(&mut self);
|
||||
fn end_frame(&mut self) {}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
Reference in New Issue
Block a user