aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-09 16:52:03 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-09 16:52:03 -0700
commit2ce59f770eac07f62814be45daf39ba9b75bad15 (patch)
tree712f01026f0b5f802a0d81dbfcec3ee15dd21ac2
parente46022269a67837521327d8e16a2ed21547f9d98 (diff)
drawArrays, disableVertexAttribArray
-rw-r--r--src/webGLWorker.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 2ed63b44..5139d60e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -596,7 +596,12 @@ function WebGLWorker() {
this.enableVertexAttribArray = function(index) {
commandBuffer.push('enableVertexAttribArray', 1, index);
};
-
+ this.disableVertexAttribArray = function(index) {
+ commandBuffer.push('disableVertexAttribArray', 1, index);
+ };
+ this.drawArrays = function(mode, first, count) {
+ commandBuffer.push('drawArrays', 3, mode, first, count);
+ };
// Setup
var postMainLoop = Module['postMainLoop'];