#![warn(missing_docs)]
#[macro_use]
extern crate bitflags;
#[allow(unused_imports)]
#[macro_use]
extern crate log;
#[cfg(target_os = "macos")]
#[macro_use]
extern crate objc;
pub mod platform;
pub use platform::default::connection::{Connection, NativeConnection};
pub use platform::default::context::{Context, ContextDescriptor, NativeContext};
pub use platform::default::device::{Adapter, Device, NativeDevice};
pub use platform::default::surface::{NativeWidget, Surface, SurfaceTexture};
#[cfg(target_os = "macos")]
pub use platform::system::connection::Connection as SystemConnection;
#[cfg(target_os = "macos")]
pub use platform::system::device::{Adapter as SystemAdapter, Device as SystemDevice};
#[cfg(target_os = "macos")]
pub use platform::system::surface::Surface as SystemSurface;
#[cfg(feature = "chains")]
pub mod chains;
pub mod connection;
pub mod device;
pub mod error;
pub use crate::error::{Error, WindowingApiError};
mod context;
pub use crate::context::{ContextAttributeFlags, ContextAttributes, ContextID};
mod info;
pub use crate::info::{GLApi, GLVersion};
mod surface;
pub use crate::surface::{SurfaceAccess, SurfaceID, SurfaceInfo, SurfaceType, SystemSurfaceInfo};
pub mod macros;
pub(crate) use macros::implement_interfaces;
#[cfg(not(any(target_os = "android", target_env = "ohos")))]
pub(crate) use crate::gl::Gl;
#[cfg(any(target_os = "android", target_env = "ohos"))]
pub(crate) use crate::gl::Gles2 as Gl;
mod gl_utils;
mod renderbuffers;
#[allow(clippy::all)]
mod gl {
include!(concat!(env!("OUT_DIR"), "/gl_bindings.rs"));
}
#[cfg(any(
target_os = "android",
target_env = "ohos",
all(target_os = "windows", feature = "sm-angle"),
unix
))]
#[allow(non_camel_case_types)]
#[allow(clippy::all)]
mod egl {
use std::os::raw::{c_long, c_void};
pub type khronos_utime_nanoseconds_t = khronos_uint64_t;
pub type khronos_uint64_t = u64;
pub type khronos_ssize_t = c_long;
pub type EGLint = i32;
pub type EGLNativeDisplayType = *const c_void;
pub type EGLNativePixmapType = *const c_void;
pub type EGLNativeWindowType = *const c_void;
pub type NativeDisplayType = EGLNativeDisplayType;
pub type NativePixmapType = EGLNativePixmapType;
pub type NativeWindowType = EGLNativeWindowType;
include!(concat!(env!("OUT_DIR"), "/egl_bindings.rs"));
}