2 stable releases
1.0.1 | Nov 13, 2022 |
---|---|
1.0.0 | Nov 12, 2022 |
#938 in Graphics APIs
279 downloads per month
Used in wayrs-egl
215KB
4K
SLoC
Docs.rs
gles31
OpenGL ES 3.1 bindings
lib.rs
:
Module for interfacing with GL_ES_VERSION_3_1
.
- Includes the
GL_KHR_debug
extension.
Before actually calling any GL function, you must first
load the GL function pointers using load_gl_functions
.
Always do this after your GL context has been created.
Function pointers are loaded into global atomic variables,
so all GL contexts across all threads must use compatible
pointers. In practice, if all contexts are created using the
same context creation parameters they will have compatible
function pointers.
On some platforms it's possible to load an extension function without the extension being supported for your context. Always check that your context supports an extension before calling any extension function.
Calling any GL function that isn't loaded will cause a panic.