#[allow(non_upper_case_globals)]
#[doc(hidden)]
#[cfg_attr(feature = "cargo-clippy", allow(clippy))]
pub mod gl {
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
}
mod errors;
pub use self::errors::{get_error, get_error_always};
mod buffer;
pub use self::buffer::*;
mod compute;
pub use self::compute::*;
mod shader;
pub use self::shader::*;
mod program;
pub use self::program::*;
mod shader_program;
pub use self::shader_program::*;
mod pipeline;
pub use self::pipeline::*;
mod texture;
pub use self::texture::*;
mod image;
pub use self::image::*;
mod framebuffer;
pub use self::framebuffer::*;
mod sync;
pub use self::sync::*;
mod state;
pub use self::state::*;
mod get;
pub use self::get::*;
mod draw;
pub use self::draw::*;
mod uniform;
pub use self::uniform::*;
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Face {
Front,
Back,
FrontBack,
}
impl From<Face> for u32 {
fn from(face: Face) -> Self {
match face {
Face::Front => gl::FRONT,
Face::Back => gl::BACK,
Face::FrontBack => gl::FRONT_AND_BACK,
}
}
}
impl Default for Face {
fn default() -> Face {
Face::Back
}
}