aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authorRyan Stewart <ryan@binsoftware.com>2015-02-20 12:32:40 -0800
committerRyan Stewart <ryan@binsoftware.com>2015-02-20 12:33:25 -0800
commit25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b (patch)
tree645cd2d15272d61227fed75adfba294caeaac76b /src/win32
parent8e1d0f7a976078ef7031ff84e077f00655d4e061 (diff)
downloadglutin-25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b.tar.gz
glutin-25ce029cf67993a7bc8dfc3de0ccd4ab3c9f349b.zip
expose the platform-specific window handle (currently Win only)
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index e0adb7b..cfb573a 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -212,6 +212,10 @@ impl Window {
unimplemented!()
}
+ pub fn platform_window(&self) -> *mut libc::c_void {
+ self.window as *mut libc::c_void
+ }
+
/// See the docs in the crate root file.
pub fn get_api(&self) -> ::Api {
::Api::OpenGl