Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference


Optional Imports is currently published as a single package, however there are still some optional parts of the library that are made available through the use of special imports.

Optional ImportDescription
import GL from '';Import static WebGL constant definitions
import '';Install optional WebGL debug support. Enables creation of debug contexts. Import before creating contexts.
import '';Install optional support for running on WebGL1-only browsers. Import before creating contexts.

Running under Node.js

See get-started for information on installing headless-gl to run WebGL under Node.js.