Permalink
Browse files

Add script to run 'Chapter 13' WebGL demo in v8-gl standalone.

  • Loading branch information...
1 parent 0bf17c1 commit 872757fd3e15b2fd4051ac51993622b8addac85d @cscott committed Dec 8, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 examples/webgl/run-ch13-particle-system.js
@@ -0,0 +1,14 @@
+load('dom.js'); // initial dom-like context
+load('v8glcanvas.js'); // our canvas emulation
+
+load('Common/esShader.js');
+load('Common/esShapes.js');
+load('Common/esTransform.js');
+load('Common/esUtil.js');
+
+document.baseURI = 'Chapter_13/ParticleSystem/ParticleSystem.js';
+load(document.baseURI);
+
+esContext = main(v8gl_canvas);
+
+if (_intervalFunc) { esContext.gl.mainLoop(_intervalFunc); }

0 comments on commit 872757f

Please sign in to comment.