mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
Merge pull request #285 from binsoftware/oculus-integration
expose platform-specific window handle (currently Win only)
This commit is contained in:
commit
7ff76cddd9
|
@ -329,6 +329,10 @@ impl Window {
|
||||||
self.display as *mut libc::c_void
|
self.display as *mut libc::c_void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn platform_window(&self) -> *mut libc::c_void {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_api(&self) -> ::Api {
|
pub fn get_api(&self) -> ::Api {
|
||||||
::Api::OpenGlEs
|
::Api::OpenGlEs
|
||||||
}
|
}
|
||||||
|
|
|
@ -604,6 +604,10 @@ impl Window {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn platform_window(&self) -> *mut libc::c_void {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_api(&self) -> ::Api {
|
pub fn get_api(&self) -> ::Api {
|
||||||
::Api::OpenGl
|
::Api::OpenGl
|
||||||
}
|
}
|
||||||
|
|
|
@ -212,6 +212,10 @@ impl Window {
|
||||||
unimplemented!()
|
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.
|
/// See the docs in the crate root file.
|
||||||
pub fn get_api(&self) -> ::Api {
|
pub fn get_api(&self) -> ::Api {
|
||||||
::Api::OpenGl
|
::Api::OpenGl
|
||||||
|
|
|
@ -357,6 +357,14 @@ impl Window {
|
||||||
self.window.platform_display()
|
self.window.platform_display()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Gets the native platform specific window handle. This is
|
||||||
|
/// typically only required when integrating with other libraries
|
||||||
|
/// that need this information.
|
||||||
|
#[inline]
|
||||||
|
pub unsafe fn platform_window(&self) -> *mut libc::c_void {
|
||||||
|
self.window.platform_window()
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the API that is currently provided by this window.
|
/// Returns the API that is currently provided by this window.
|
||||||
///
|
///
|
||||||
/// - On Windows and OS/X, this always returns `OpenGl`.
|
/// - On Windows and OS/X, this always returns `OpenGl`.
|
||||||
|
|
|
@ -719,6 +719,10 @@ impl Window {
|
||||||
self.x.display as *mut libc::c_void
|
self.x.display as *mut libc::c_void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn platform_window(&self) -> *mut libc::c_void {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
/// See the docs in the crate root file.
|
/// See the docs in the crate root file.
|
||||||
pub fn get_api(&self) -> ::Api {
|
pub fn get_api(&self) -> ::Api {
|
||||||
::Api::OpenGl
|
::Api::OpenGl
|
||||||
|
|
Loading…
Reference in a new issue