Module: index

Serves as central export of the entire engine, client programs can simply import this file for all symbols defined in the engine

Found in Chapter 3, page 69 of the textbook

Example: 3.1 Renderable Objects
Source:

Methods

(static) cleanUp()

Calls clean up functions for all parts of the engine
Source:

(static) clearCanvas(color)

Clears the canvas and set it to a single color
Parameters:
Name Type Description
color vec4 [R,G,B,A] color array
Source:

(static) init(htmlCanvasID)

Initializes all the parts of the engine
Parameters:
Name Type Description
htmlCanvasID string name of the html canvas element
Source: