Namespace: PicoGL

PicoGL

Global PicoGL module. For convenience, all WebGL enums are stored as properties of PicoGL (e.g. PicoGL.FLOAT, PicoGL.ONE_MINUS_SRC_ALPHA).
Source:

Methods

(static) createApp(canvas, contextAttributesopt) → {App}

Create a PicoGL app. The app is the primary entry point to PicoGL. It stores the canvas, the WebGL context and all WebGL state.
Parameters:
Name Type Attributes Description
canvas HTMLElement The canvas on which to create the WebGL context.
contextAttributes Object <optional>
Context attributes to pass when calling getContext().
Source:
Returns:
New App object.
Type
App