lib.rs 879 Bytes
Newer Older
Jeremy Soller's avatar
Jeremy Soller committed
1
#![crate_name="orbclient"]
2
#![crate_type="lib"]
3
#![feature(asm)]
4
#![feature(collections)]
5
#![feature(const_fn)]
6
#![cfg_attr(feature="no_std", no_std)]
7

8 9
#![deny(warnings)]

10
#[cfg(not(feature="no_std"))]
11
extern crate core;
12
extern crate collections;
13

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

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

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

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

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

41
#[cfg(all(not(feature="no_std"), not(target_os = "redox")))]
42 43
#[path="imp/sdl2.rs"]
mod imp;