Class: VM

MVM. VM

The virtual machine used to execute Sketch programs.

new VM(glctx, manager, codeStore, debugMode)

Parameters:
Name Type Description
glctx WebGLRenderingContext WebGL context of the canvas to operate on.
manager Palette.Manager Shader Manager used to abstract draw calls and shader manipulation.
codeStore Array MVM program code generated by an instance of Sketch.SketchGen.
debugMode boolean print additional information to the console during execution.
Author:
  • Darren Findlay
Source: