webgl-mock.js
A simple implementation-less interface for testing code outside of WebGL.
Installation
Requires node.
npm install webgl-mock
Usage
Write source code using webgl.
{ options = options || {}; thisgl = gl; thistype = optionstype !== undefined ? optionstype : glFLOAT; thismode = optionsmode !== undefined ? optionsmode : glTRIANGLES; thisbuffer = gl; gl; gl; gl;}
Test source code outside of webgl.
;var canvas = 500 500 ;var gl = canvas; ;