Introduce a WindowProxy for accessing a subset of functionality
from other threads. This currently provides a way for other threads to wakeup a blocked event loop on X11. Other platforms have stub functions that need to be implemented. This is similar to the functionality of glfwPostEmptyEvent.
This commit is contained in:
parent
19d120b8b1
commit
9dc5689eef
8 changed files with 171 additions and 52 deletions
|
|
@ -2,7 +2,7 @@
|
|||
pub use self::headless::HeadlessContext;
|
||||
|
||||
#[cfg(feature = "window")]
|
||||
pub use self::window::{Window, MonitorID, get_available_monitors, get_primary_monitor};
|
||||
pub use self::window::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
|
||||
|
||||
mod ffi;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue