animations: derive Debug
This commit is contained in:
parent
577a17e4e4
commit
faae4b40c7
@ -8,12 +8,14 @@ use crate::render::{Shader, Surface};
|
||||
use crate::task::Task;
|
||||
use crate::lib8::IntoRgb8;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct IdleTask<T: Surface> {
|
||||
frame: u8,
|
||||
surface: T,
|
||||
updater: Periodically
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct IdleShader {
|
||||
frame: u8
|
||||
}
|
||||
@ -74,6 +76,7 @@ impl Pattern {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct TestShader {
|
||||
pattern: Pattern
|
||||
}
|
||||
@ -97,6 +100,7 @@ impl Shader for TestShader {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct TestPattern<T: Surface> {
|
||||
surface: T,
|
||||
updater: Periodically,
|
||||
|
Loading…
x
Reference in New Issue
Block a user