aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-13 14:14:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-13 14:14:04 -0700
commit20724ee7ef5dd676c9ca72ae36afc130a23237a3 (patch)
tree7df66bd0e8cefdc969fd84cc49cb940d11390e35
parent7b01e731ee0b0967ef5e60fb619802e7c8b10a2a (diff)
texImage2D, activeTexture
-rw-r--r--src/webGLWorker.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index f0216207..37756fa0 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -656,6 +656,13 @@ function WebGLWorker() {
this.texParameteri = function(target, pname, param) {
commandBuffer.push('texParameteri', 3, target, pname, param);
};
+ this.texImage2D = function(target, level, internalformat, width, height, border, format, type, pixels) {
+ assert(pixels); // we do not support the overloads that have fewer params
+ commandBuffer.push('texImage2D', 9, target, level, internalformat, width, height, border, format, type, new pixels.constructor(pixels));
+ };
+ this.activeTexture = function(texture) {
+ commandBuffer.push('activeTexture', 1, texture);
+ };
// Setup
var dropped = 0;