diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2014-12-07 14:14:10 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2014-12-07 14:14:10 +0100 |
commit | 6c5cca9d6a5f799b129ddd1b31316663c9da8e7e (patch) | |
tree | bb5ed569b0f5042c00e1c454452fdc9e108cd424 /src/win32 | |
parent | 2320c2bc974fcc655553e678c457230f3e97de68 (diff) | |
parent | c893e4faec212953174c12c68538d55929c90ad3 (diff) | |
download | glutin-6c5cca9d6a5f799b129ddd1b31316663c9da8e7e.tar.gz glutin-6c5cca9d6a5f799b129ddd1b31316663c9da8e7e.zip |
Merge pull request #121 from tomaka/get-api
Add get_api() function
Diffstat (limited to 'src/win32')
-rw-r--r-- | src/win32/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index 8339cb1..5ba5a26 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -41,6 +41,11 @@ impl HeadlessContext { pub fn get_proc_address(&self, addr: &str) -> *const () { self.0.get_proc_address(addr) } + + /// See the docs in the crate root file. + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } /// The Win32 implementation of the main `Window` object. @@ -252,6 +257,11 @@ impl Window { pub fn platform_display(&self) -> *mut libc::c_void { unimplemented!() } + + /// See the docs in the crate root file. + pub fn get_api(&self) -> ::Api { + ::Api::OpenGl + } } #[unsafe_destructor] |