2 stable releases

1.0.1 Nov 13, 2022
1.0.0 Nov 12, 2022

#938 in Graphics APIs

Download history 46/week @ 2024-07-21 61/week @ 2024-07-28 21/week @ 2024-08-04 85/week @ 2024-08-11 22/week @ 2024-08-18 15/week @ 2024-08-25 5/week @ 2024-09-01 55/week @ 2024-09-08 19/week @ 2024-09-15 78/week @ 2024-09-22 46/week @ 2024-09-29 39/week @ 2024-10-06 62/week @ 2024-10-13 9/week @ 2024-10-20 21/week @ 2024-10-27 185/week @ 2024-11-03

279 downloads per month
Used in wayrs-egl

Zlib OR Apache-2.0 OR MIT

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.

No runtime deps