1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
pub use quad_gl::Color;

pub struct Rect {
    pub x: f32,
    pub y: f32,
    pub w: f32,
    pub h: f32,
}

impl Rect {
    pub fn new(x: f32, y: f32, w: f32, h: f32) -> Rect {
        Rect { x, y, w, h }
    }
}