aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGlenn Watson <gw@intuitionlibrary.com>2014-10-24 15:20:25 +1000
committerGlenn Watson <gw@intuitionlibrary.com>2014-10-24 15:20:25 +1000
commit5693fbcce3ca04aa7a26920add40ea770419f3ea (patch)
tree4333f1542ef16c8e1e7a244f0e64d08e33d2ee0d /src/lib.rs
parentd8ca679a6ec92ea8428ad5e3733a65b2e045d02c (diff)
downloadglutin-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/lib.rs')
-rw-r--r--src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 041ebeb..33c66db 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -341,6 +341,14 @@ impl Window {
pub fn swap_buffers(&self) {
self.window.swap_buffers()
}
+
+ /// Gets the native platform specific display for this window.
+ /// This is typically only required when integrating with
+ /// other libraries that need this information.
+ #[inline]
+ pub fn platform_display(&self) -> *mut libc::c_void {
+ self.window.platform_display()
+ }
}
/// Represents a headless OpenGL context.