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
mod config; mod context; mod error; mod events; mod gpu; pub mod input; mod pel; mod surface; mod wrapper; pub use config::Config; pub use context::Context; pub use error::{Error, Result}; pub use events::Events; pub use gpu::TextureHandle; pub use pel::Pel; pub use surface::{RawSurface, Surface}; /// Entry point of this library. /// /// Due to cross-platform limitations, this function should only be called in the main thread. /// /// Provided [`Config`][1] is used to configure and start pel event loop. /// /// [1]: struct.Config.html pub fn new() -> Config { Config::new() }