new Renderer( htmlCanvas ) → {Renderer}

Description
Creates a Renderer and initializes a webgl 1.0 context
Parameters
Name Type Description
htmlCanvas HTMLCanvasElement Canvas to render to
Returns

Members


gl :WebglContext

Description
Reference to the Webgl context

isWebGL2 :boolean

Description
is Context a webgl 2.0 context

clearColor :array

Description
Color to reset all pixels to on framestart

Methods


init()

Description
init Webgl context and settings

resize( width, height )

Description
resize gl viewport
Parameters
Name Type Description
width * width of viewport
height * height of viewport

prepareRenderFrame()

Description
Prepare for renderframe