Reorganize the Linux implementation and split OSMesa and X11
This commit is contained in:
parent
4dee36631c
commit
a72e06cf1b
9 changed files with 913 additions and 922 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue