mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Add accessor for underlying display handle on Linux. Although unimplemented on other platforms, this applies to at least android as well.
This commit is contained in:
@@ -469,6 +469,10 @@ impl Window {
|
||||
pub fn swap_buffers(&self) {
|
||||
unsafe { ffi::glx::SwapBuffers(self.display, self.window) }
|
||||
}
|
||||
|
||||
pub fn platform_display(&self) -> *mut libc::c_void {
|
||||
self.display as *mut libc::c_void
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Window {
|
||||
|
||||
Reference in New Issue
Block a user