API Reference / @gtkx/gl
@gtkx/gl
OpenGL 4.6 core bindings generated from the Khronos registry. Each command and constant maps to the C one of the same name, so the Khronos OpenGL 4.6 reference documents its parameters and behavior.
Names and types
- Commands drop the
glprefix and start in lowercase:gl.clearcallsglClear. - Constants drop
GL_:gl.COLOR_BUFFER_BITisGL_COLOR_BUFFER_BIT. - Numeric GL types are
number, exceptGLint64andGLuint64, which arebigint.GLbooleanisboolean.
Your editor's completions list every exported binding. The OpenGL guide's Use the bindings section covers singular helpers such as gl.genBuffer, typed arrays, and the commands that are not exported.
Only the info-log readers below differ from C: they read the whole log and return it as a string.
Functions
| Function | Description |
|---|---|
| getProgramInfoLog | Reads the info log for a program object, containing linking diagnostics. |
| getProgramPipelineInfoLog | Reads the info log for a program pipeline object, containing validation diagnostics. |
| getShaderInfoLog | Reads the info log for a shader object, containing compilation diagnostics. |