Add get_api() function

This commit is contained in:
Pierre Krieger 2014-11-18 17:55:26 +01:00
parent 2320c2bc97
commit c893e4faec
6 changed files with 52 additions and 0 deletions

View file

@ -535,6 +535,11 @@ impl Window {
pub fn platform_display(&self) -> *mut libc::c_void {
self.display as *mut libc::c_void
}
/// See the docs in the crate root file.
pub fn get_api(&self) -> ::Api {
::Api::OpenGl
}
}
impl Drop for Window {