diff --git a/src/script/graphics.rs b/src/script/graphics.rs index af708126..b3058396 100644 --- a/src/script/graphics.rs +++ b/src/script/graphics.rs @@ -2,14 +2,17 @@ use oden_js::{module, ContextRef, Value, ValueResult}; use std::sync::mpsc::Sender; use std::sync::Arc; +#[derive(Debug)] pub struct PrintCommand { pub text: String, } +#[derive(Debug)] pub struct ClearCommand { pub color: [f64; 4], } +#[derive(Debug)] pub struct SpriteCommand { pub x: f32, pub y: f32, @@ -21,6 +24,7 @@ pub struct SpriteCommand { pub sh: f32, } +#[derive(Debug)] pub enum GraphicsCommand { Clear(ClearCommand), Print(PrintCommand),