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
16pub mod egl;
17
18pub use self::egl::types::{EGLContext, EGLDisplay};
19
20use std::os::raw;
21
22pub type khronos_utime_nanoseconds_t = khronos_uint64_t;
23pub type khronos_uint64_t = u64;
24pub type khronos_ssize_t = raw::c_long;
25pub type EGLint = i32;
26pub type EGLenum = raw::c_uint;
27pub type EGLNativeDisplayType = *const raw::c_void;
28
29// FIXME: egl_native_pixmap_t instead
30#[cfg(windows)]
31pub type EGLNativePixmapType = windows_sys::Win32::Graphics::Gdi::HBITMAP;
32#[cfg(not(windows))]
33pub type EGLNativePixmapType = *const raw::c_void;
34
35#[cfg(windows)]
36pub type EGLNativeWindowType = windows_sys::Win32::Foundation::HWND;
37#[cfg(not(windows))]
38pub type EGLNativeWindowType = *const raw::c_void;
39