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
.