lib.rs 963 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1
#![crate_name="orbclient"]
2
#![crate_type="lib"]
Jeremy Soller's avatar
Jeremy Soller committed
3
#![feature(alloc)]
4
#![feature(asm)]
5
#![feature(const_fn)]
6
#![cfg_attr(all(not(feature="no_std"), not(target_os = "redox")), feature(const_ptr_null_mut))]
7
#![cfg_attr(feature="no_std", no_std)]
8

9 10
#![deny(warnings)]

Jeremy Soller's avatar
Jeremy Soller committed
11
extern crate alloc;
12
#[cfg(not(feature="no_std"))]
13
extern crate core;
14

Jeremy Soller's avatar
Jeremy Soller committed
15 16
pub static FONT: &'static [u8] = include_bytes!("../res/unifont.font");

Jeremy Soller's avatar
Jeremy Soller committed
17
pub use color::Color;
18
pub use event::*;
19
#[cfg(not(feature="no_std"))]
Jeremy Soller's avatar
Jeremy Soller committed
20
pub use sys::{get_display_size, EventIter, Window};
21
pub use graphicspath::GraphicsPath;
22
pub use renderer::Renderer;
23

Jeremy Soller's avatar
Jeremy Soller committed
24
pub mod color;
25
pub mod event;
26
pub mod graphicspath;
27
pub mod renderer;
Jeremy Soller's avatar
Jeremy Soller committed
28

29 30 31
#[derive(Clone, Copy, Debug)]
pub enum WindowFlag {
    Async,
32 33
    Back,
    Front,
34
    Resizable,
35
    Unclosable
36 37
}

38
#[cfg(all(not(feature="no_std"), target_os = "redox"))]
Jeremy Soller's avatar
Jeremy Soller committed
39 40
#[path="sys/orbital.rs"]
mod sys;
Jeremy Soller's avatar
Jeremy Soller committed
41

42
#[cfg(all(not(feature="no_std"), not(target_os = "redox")))]
Jeremy Soller's avatar
Jeremy Soller committed
43 44
#[path="sys/sdl2.rs"]
mod sys;