diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-04-24 14:22:57 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-04-24 15:40:17 +0200 |
commit | a72e06cf1b8f0e037be8a0e3152b9b0ab9ef2c95 (patch) | |
tree | 3577f29635ebd3c1340740eee19250b716400578 /src/platform/linux | |
parent | 4dee36631c520726179139bd543453ff0f3b78d6 (diff) | |
download | glutin-a72e06cf1b8f0e037be8a0e3152b9b0ab9ef2c95.tar.gz glutin-a72e06cf1b8f0e037be8a0e3152b9b0ab9ef2c95.zip |
Reorganize the Linux implementation and split OSMesa and X11
Diffstat (limited to 'src/platform/linux')
-rw-r--r-- | src/platform/linux/mod.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/platform/linux/mod.rs b/src/platform/linux/mod.rs index df3a318..63a0118 100644 --- a/src/platform/linux/mod.rs +++ b/src/platform/linux/mod.rs @@ -1,3 +1,14 @@ #![cfg(target_os = "linux")] -pub use api::x11::*; +#[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 |