Typedef
Static Public Summary | ||
public |
PatchConfig: Object configuration object for loading a patch |
Static Public
public PatchConfig: Object source
configuration object for loading a patch
Properties:
Name | Type | Attribute | Description |
prefixAssetPath | String |
|
prefix for path to assets |
assetPath | String |
|
path to assets |
jsPath | String |
|
path to javascript files |
glCanvasId | String |
|
dom element id of canvas element |
onError | Function |
|
called when an error occurs |
onFinishedLoading | Function |
|
called when patch finished loading all assets |
onFirstFrameRendered | Function |
|
called when patch rendered it's first frame |
glCanvasResizeToWindow | Boolean |
|
resize canvas automatically to window size |
doRequestAnimation | Boolean |
|
do requestAnimationFrame set to false if you want to trigger exec() from outside (only do if you know what you are doing) |
clearCanvasColor | Boolean |
|
clear canvas in transparent color every frame |
clearCanvasDepth | Boolean |
|
clear depth every frame |
glValidateShader | Boolean |
|
enable/disable validation of shaders * |
silent | Boolean |
|
|
fpsLimit | Number |
|
0 for maximum possible frames per second |
glslPrecision | String |
|
default precision for glsl shader |