GL Class
The global scope that contains all the classes from LiteGL and also all the enums of WebGL so you dont need to create a context to use the values.
Item Index
Methods
Methods
create
(
WebGLRenderingContext
-
options
creates a new WebGL context (it can create the canvas or use an existing one)
Parameters:
-
options
Objectsupported are:
- width
- height
- canvas
- container (string or element)
Returns:
WebGLRenderingContext:
webgl context with all the extra functions (check gl in the doc for more info)