1#[macro_export]
2macro_rules! rect(
3 ($x:expr, $y:expr, $w:expr, $h:expr) => (
4 sdl2::rect::Rect::new($x as i32, $y as i32, $w as u32, $h as u32)
5 )
6);
7
8#[macro_export]
9macro_rules! point(
10 ($x:expr, $y:expr) => (
11 sdl2::rect::Point::new($x as i32, $y as i32)
12 )
13);