aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-18 14:47:10 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-18 14:47:10 -0700
commitf2e4c9bba1c7c18675ab4db41850aad8eb911c8f (patch)
tree77723d45dea7bd12a3ee9b0476398722a0d2f953
parentd5156ffbf4ebe36f1ec13202f230e271a8616a24 (diff)
scissor, colorMask
-rw-r--r--src/webGLWorker.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webGLWorker.js b/src/webGLWorker.js
index 367306c8..8604f82e 100644
--- a/src/webGLWorker.js
+++ b/src/webGLWorker.js
@@ -793,6 +793,12 @@ function WebGLWorker() {
this.blendFunc = function(sfactor, dfactor) {
commandBuffer.push('blendFunc', 2, sfactor, dfactor);
};
+ this.scissor = function(x, y, width, height) {
+ commandBuffer.push('scissor', 4, x, y, width, height);
+ };
+ this.colorMask = function(red, green, blue, alpha) {
+ commandBuffer.push('colorMask', 4, red, green, blue, alpha);
+ };
this.createFramebuffer = function() {
var id = nextId++;
commandBuffer.push('createFramebuffer', -1, id);