Module gl

Module gl 

Source
Expand description

A collection of functions and traits related to WebGl2RenderingContext, as well as the GL alias.

Traits§

Bind
The Bind trait enables setting up WebGl state when bound, and optionally resetting to a neutral one when unbound.

Functions§

check_gl_error
Check for, and print any WebGL errors if found.
get_context
Get the WebGl2RenderingContext of a canvas with an element ID of “canvas”

Type Aliases§

GL
An alias for WebGl2RenderingContext.