2 stable releases

1.0.1 Nov 13, 2022
1.0.0 Nov 12, 2022

#924 in Graphics APIs

Download history 29/week @ 2023-12-06 11/week @ 2023-12-13 10/week @ 2023-12-20 1/week @ 2023-12-27 18/week @ 2024-01-03 24/week @ 2024-01-10 2/week @ 2024-01-17 11/week @ 2024-01-24 72/week @ 2024-01-31 15/week @ 2024-02-07 30/week @ 2024-02-14 34/week @ 2024-02-21 48/week @ 2024-02-28 66/week @ 2024-03-06 38/week @ 2024-03-13 72/week @ 2024-03-20

234 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