2015-04-24 09:51:23 +02:00
|
|
|
#![cfg(target_os = "linux")]
|
|
|
|
|
|
2015-04-24 14:22:57 +02:00
|
|
|
#[cfg(feature = "headless")]
|
|
|
|
|
pub use api::osmesa::OsMesaContext as HeadlessContext;
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "window")]
|
|
|
|
|
pub use api::x11::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
|
|
|
|
|
#[cfg(feature = "window")]
|
|
|
|
|
pub use api::x11::{WaitEventsIterator, PollEventsIterator};
|
|
|
|
|
|
|
|
|
|
#[cfg(not(feature = "window"))]
|
|
|
|
|
pub type Window = (); // TODO: hack to make things work
|
|
|
|
|
#[cfg(not(feature = "window"))]
|
|
|
|
|
pub type MonitorID = (); // TODO: hack to make things work
|