2017-03-07 10:53:57 +00:00
|
|
|
//! Backend (rendering/input) creation helpers
|
|
|
|
//!
|
|
|
|
//! Collection of common traits and implementation about
|
|
|
|
//! rendering onto various targets and receiving input
|
|
|
|
//! from various sources.
|
|
|
|
//!
|
|
|
|
//! Supported graphics backends:
|
|
|
|
//!
|
|
|
|
//! - glutin (headless/windowed)
|
|
|
|
//!
|
|
|
|
//! Supported input backends:
|
|
|
|
//!
|
|
|
|
//! - glutin (windowed)
|
|
|
|
|
|
|
|
pub mod input;
|
|
|
|
pub mod graphics;
|
|
|
|
|
2017-03-18 16:26:22 +00:00
|
|
|
#[cfg(feature = "backend_glutin")]
|
2017-03-07 10:53:57 +00:00
|
|
|
pub mod glutin;
|
|
|
|
|
2017-03-18 16:26:22 +00:00
|
|
|
#[cfg(feature = "renderer_glium")]
|
2017-03-07 10:53:57 +00:00
|
|
|
mod glium;
|
2017-03-18 16:26:22 +00:00
|
|
|
#[cfg(feature = "renderer_glium")]
|
2017-03-07 10:53:57 +00:00
|
|
|
pub use glium::*;
|
|
|
|
|
2017-03-19 20:55:32 +00:00
|
|
|
/// Internal functions that need to be accessible by the different backend implementations
|
|
|
|
|
|
|
|
trait SeatInternal {
|
|
|
|
fn new(id: u32, capabilities: input::SeatCapabilities) -> Self;
|
|
|
|
}
|
|
|
|
|
|
|
|
trait TouchSlotInternal {
|
2017-03-07 10:53:57 +00:00
|
|
|
fn new(id: u32) -> Self;
|
|
|
|
}
|