mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Add get_api() function
This commit is contained in:
@@ -265,6 +265,10 @@ impl Window {
|
||||
pub fn platform_display(&self) -> *mut libc::c_void {
|
||||
self.display as *mut libc::c_void
|
||||
}
|
||||
|
||||
pub fn get_api(&self) -> ::Api {
|
||||
::Api::OpenGlEs
|
||||
}
|
||||
}
|
||||
|
||||
#[unsafe_destructor]
|
||||
|
||||
Reference in New Issue
Block a user