1 | #![cfg (any( |
2 | windows, |
3 | target_os = "linux" , |
4 | target_os = "android" , |
5 | target_os = "dragonfly" , |
6 | target_os = "freebsd" , |
7 | target_os = "netbsd" , |
8 | target_os = "openbsd" |
9 | ))] |
10 | #![allow (non_camel_case_types)] |
11 | #![allow (clippy::missing_safety_doc)] |
12 | #![allow (clippy::manual_non_exhaustive)] |
13 | #![allow (clippy::unnecessary_cast)] |
14 | #![allow (unknown_lints, clippy::missing_transmute_annotations)] |
15 | |
16 | pub mod egl; |
17 | |
18 | pub use self::egl::types::{EGLContext, EGLDisplay}; |
19 | |
20 | use std::os::raw; |
21 | |
22 | pub type khronos_utime_nanoseconds_t = khronos_uint64_t; |
23 | pub type khronos_uint64_t = u64; |
24 | pub type khronos_ssize_t = raw::c_long; |
25 | pub type EGLint = i32; |
26 | pub type EGLenum = raw::c_uint; |
27 | pub type EGLNativeDisplayType = *const raw::c_void; |
28 | |
29 | // FIXME: egl_native_pixmap_t instead |
30 | #[cfg (windows)] |
31 | pub type EGLNativePixmapType = windows_sys::Win32::Graphics::Gdi::HBITMAP; |
32 | #[cfg (not(windows))] |
33 | pub type EGLNativePixmapType = *const raw::c_void; |
34 | |
35 | #[cfg (windows)] |
36 | pub type EGLNativeWindowType = windows_sys::Win32::Foundation::HWND; |
37 | #[cfg (not(windows))] |
38 | pub type EGLNativeWindowType = *const raw::c_void; |
39 | |