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::task::Task;
|
||||||
use crate::lib8::IntoRgb8;
|
use crate::lib8::IntoRgb8;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct IdleTask<T: Surface> {
|
pub struct IdleTask<T: Surface> {
|
||||||
frame: u8,
|
frame: u8,
|
||||||
surface: T,
|
surface: T,
|
||||||
updater: Periodically
|
updater: Periodically
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct IdleShader {
|
struct IdleShader {
|
||||||
frame: u8
|
frame: u8
|
||||||
}
|
}
|
||||||
@ -74,6 +76,7 @@ impl Pattern {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct TestShader {
|
struct TestShader {
|
||||||
pattern: Pattern
|
pattern: Pattern
|
||||||
}
|
}
|
||||||
@ -97,6 +100,7 @@ impl Shader for TestShader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct TestPattern<T: Surface> {
|
pub struct TestPattern<T: Surface> {
|
||||||
surface: T,
|
surface: T,
|
||||||
updater: Periodically,
|
updater: Periodically,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user