1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#![crate_name="orbclient"] #![crate_type="lib"] #![feature(asm)] #![feature(const_fn)] #![deny(warnings)] extern crate core; pub static FONT: &'static [u8] = include_bytes!("../res/unifont.font"); pub use color::Color; pub use event::*; pub use imp::{get_display_size, EventIter, Window}; pub use graphicspath::GraphicsPath; pub use renderer::Renderer; pub mod color; pub mod event; pub mod graphicspath; pub mod renderer; #[derive(Clone, Copy, Debug)] pub enum WindowFlag { Async, Resizable } #[cfg(target_os = "redox")] #[path="imp/orbital.rs"] mod imp; #[cfg(not(target_os = "redox"))] #[path="imp/sdl2.rs"] mod imp;