Crate gles31

source ·
Expand description

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.

Constants

Functions

Loads all GL function pointers.