From 1aa3663ca4639f954ae72c95806a97a5a5550d5b Mon Sep 17 00:00:00 2001 From: John Doty Date: Sat, 24 Jun 2023 23:03:02 -0700 Subject: [PATCH] [oden] Derive debug --- src/script/graphics.rs | 4 ++++ 1 file changed, 4 insertions(+) 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),