diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 16:54:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-13 16:54:31 -0700 |
commit | 955d27814497fbe9f628b208d202d9a61dfc3a74 (patch) | |
tree | ec4a57f65a0c11bfacfbbb275b404e66dd14224b /src/webGLWorker.js | |
parent | 34f6c172da1dd2bd51e80a06007efd75581c38a3 (diff) |
drawElements, prepare for cubegeom proxy test
Diffstat (limited to 'src/webGLWorker.js')
-rw-r--r-- | src/webGLWorker.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js index 3154f904..5b25a24e 100644 --- a/src/webGLWorker.js +++ b/src/webGLWorker.js @@ -658,6 +658,9 @@ function WebGLWorker() { this.drawArrays = function(mode, first, count) { commandBuffer.push('drawArrays', 3, mode, first, count); }; + this.drawElements = function(mode, count, type, offset) { + commandBuffer.push('drawElements', 4, mode, count, type, offset); + }; this.getError = function() { // optimisticaly return success; client will abort on an actual error. we assume an error-free async workflow commandBuffer.push('getError', 0); |