Remove the window feature entirely
This commit is contained in:
parent
c8fd077e17
commit
7a625ef3d8
8 changed files with 3 additions and 26 deletions
|
|
@ -1,6 +1,4 @@
|
|||
/*#[cfg(feature = "window")]
|
||||
pub use api::x11::{Window, WindowProxy, MonitorId, get_available_monitors, get_primary_monitor};
|
||||
#[cfg(feature = "window")]
|
||||
/*pub use api::x11::{Window, WindowProxy, MonitorId, get_available_monitors, get_primary_monitor};
|
||||
pub use api::x11::{WaitEventsIterator, PollEventsIterator};*/
|
||||
|
||||
use std::collections::VecDeque;
|
||||
|
|
|
|||
|
|
@ -11,18 +11,10 @@ use libc;
|
|||
|
||||
use api::osmesa::{self, OsMesaContext};
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
pub use self::api_dispatch::{Window, WindowProxy, MonitorId, get_available_monitors, get_primary_monitor};
|
||||
#[cfg(feature = "window")]
|
||||
pub use self::api_dispatch::{WaitEventsIterator, PollEventsIterator};
|
||||
#[cfg(feature = "window")]
|
||||
mod api_dispatch;
|
||||
|
||||
#[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
|
||||
|
||||
pub struct HeadlessContext(OsMesaContext);
|
||||
|
||||
impl HeadlessContext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue