Skip to main content

edgefirst_gl/
lib.rs

1//! Minimal OpenGL ES bindings for the EdgeFirst HAL.
2//!
3//! This crate is a trimmed, maintained fork of [`gls`](https://github.com/vaxpl/gls-rs)
4//! by Varphone Wong, which became unmaintained. Only the surface the HAL uses is
5//! kept: the raw `gl` bindings (generated by `gl_generator`), a small set of safe
6//! wrappers, and the `Error` type. The upstream higher-level helpers (textures,
7//! framebuffers, shaders, buffers, math types) and their `nalgebra`/`serde`
8//! dependencies have been dropped, leaving no runtime dependencies.
9//!
10//! It is published as `edgefirst-gl` and imported as `edgefirst_gl`.
11
12/// Foreign Function Interface of the OpenGL ES bindings (generated by `gl_generator`).
13pub mod gl;
14pub use gl::{load_with, GLchar, GLeglImageOES, GLenum, GLint, GLsizei, GLuint};
15
16/// Error object for OpenGL.
17pub mod error;
18pub use error::Error;
19
20/// Safe-ish wrappers over the raw bindings.
21pub mod apis;
22pub use apis::*;