[oden] Derive debug
This commit is contained in:
parent
82c386fd0f
commit
1aa3663ca4
1 changed files with 4 additions and 0 deletions
|
|
@ -2,14 +2,17 @@ use oden_js::{module, ContextRef, Value, ValueResult};
|
||||||
use std::sync::mpsc::Sender;
|
use std::sync::mpsc::Sender;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct PrintCommand {
|
pub struct PrintCommand {
|
||||||
pub text: String,
|
pub text: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct ClearCommand {
|
pub struct ClearCommand {
|
||||||
pub color: [f64; 4],
|
pub color: [f64; 4],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct SpriteCommand {
|
pub struct SpriteCommand {
|
||||||
pub x: f32,
|
pub x: f32,
|
||||||
pub y: f32,
|
pub y: f32,
|
||||||
|
|
@ -21,6 +24,7 @@ pub struct SpriteCommand {
|
||||||
pub sh: f32,
|
pub sh: f32,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum GraphicsCommand {
|
pub enum GraphicsCommand {
|
||||||
Clear(ClearCommand),
|
Clear(ClearCommand),
|
||||||
Print(PrintCommand),
|
Print(PrintCommand),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue