diff options
author | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-24 15:20:25 +1000 |
---|---|---|
committer | Glenn Watson <gw@intuitionlibrary.com> | 2014-10-24 15:20:25 +1000 |
commit | 5693fbcce3ca04aa7a26920add40ea770419f3ea (patch) | |
tree | 4333f1542ef16c8e1e7a244f0e64d08e33d2ee0d /src/x11 | |
parent | d8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff) | |
download | glutin-5693fbcce3ca04aa7a26920add40ea770419f3ea.tar.gz glutin-5693fbcce3ca04aa7a26920add40ea770419f3ea.zip |
Add accessor for underlying display handle on Linux. Although unimplemented on other platforms, this applies to at least android as well.
Diffstat (limited to 'src/x11')
-rw-r--r-- | src/x11/window/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index cb73958..3d69a3e 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -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 { |