API Docs for:
Show:

GL Class

Defined in: ../src/core.js:2

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

(
  • options
)
WebGLRenderingContext

Defined in ../src/core.js:7

creates a new WebGL context (it can create the canvas or use an existing one)

Parameters:

  • options Object

    supported 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)