Class: GlContextFactory

WebGLModule.GlContextFactory

new GlContextFactory()

Modular behaviour of the WebGL plugin. provide your OWN rendering behaviour using a GPU.
Source:

Methods

(static) init(wrapper, …versions)

Create WebGL context and corresponding implementation (State pattern & Factory method)
Parameters:
Name Type Attributes Description
wrapper WebGLModule
versions string <repeatable>
considered versions in the preferred order currently supported "1.0", "2.0"
Source:
Throws:
Error

(static) register(version, maker)

Register custom WebGL renderers
Parameters:
Name Type Description
version string version to register (can override)
maker GlContextMaker maker object
Properties
Name Type Description
glContext function returns WebGL context
webGLImplementation function returns class extending WebGLImplementation
Source: