Class: window.WebGLModule

WebGLModule.window.WebGLModule

Methods

new window.WebGLModule(incomingOptions)

Parameters:
Name Type Description
incomingOptions object
Properties
Name Type Description
htmlControlsId: string where to render html controls,
webGlPreferredVersion string prefered WebGL version, see WebGLModule.GlContextFactory for available
htmlShaderPartHeader WebGLModule.UIControlsRenderer function that generates particular layer HTML
debug boolean debug mode default false
ready function function called when ready
resetCallback function function called when user input changed, e.g. changed output of the current rendering
visualizationInUse function function called when visualization is initialized and run
visualizationChanged function function called when a visualization swap is performed: signature f({WebGLModule.VisualizationConfig} oldVisualization,{WebGLModule.VisualizationConfig} newVisualization)
onFatalError function called when this module is unable to run
onError function called when a problem occurs, but other parts of the system still might work
Source: