diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-10-24 10:19:35 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-10-24 10:19:35 +0200 |
commit | fe8646c55681d6ecbd290010ab702f8f0feecc00 (patch) | |
tree | 9133f1513e7da85e951e08f3a0c9fb3ac93f00ac /src/lib.rs | |
parent | 59ff347eed8fda8a298330fcc5ab3ad89686da32 (diff) | |
parent | 21e3ff99fa5628011fe226dd13a87e09f0f33330 (diff) | |
download | glutin-fe8646c55681d6ecbd290010ab702f8f0feecc00.tar.gz glutin-fe8646c55681d6ecbd290010ab702f8f0feecc00.zip |
Merge pull request #66 from glennw/platform_data
Add accessor for underlying display handle on Linux.
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 unsafe fn platform_display(&self) -> *mut libc::c_void { + self.window.platform_display() + } } /// Represents a headless OpenGL context. |