aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-23 17:58:58 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-23 17:58:58 -0500
commitefe755987585bfd35d66d4c144de1848d8148f6e (patch)
tree5247aaf05be99ebb3eaf180f809be069738a5679 /src/library_gl.js
parentd71b3170de2b061288c3b859fd3cdba5e2fa0ffa (diff)
Simplify things by auto-generating some simple functions
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 9fdb737a..5d9e275d 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -374,27 +374,15 @@ var LibraryGL = {
Module.ctx.bindAttribLocation(GL.hashtable("program").get(program), index, name);
},
- glClearColor: function(red, green, blue, alpha) {
- Module.ctx.clearColor(red, green, blue, alpha);
- },
-
- glClear: function(mask) {
- Module.ctx.clear(mask);
- },
-
- glScissor: function(x, y, width, height) {
- Module.ctx.scissor(x, y, width, height);
- },
-
};
// Simple pass-through functions
[[0, 'shadeModel fogi fogfv getError'],
- [1, 'clearDepth depthFunc enable disable frontFace cullFace'],
+ [1, 'clearDepth depthFunc enable disable frontFace cullFace clear'],
[2, 'pixelStorei'],
[3, 'texParameteri texParameterf'],
- [4, 'viewport clearColor']].forEach(function(data) {
+ [4, 'viewport clearColor scissor']].forEach(function(data) {
var num = data[0];
var names = data[1];
var args = range(num).map(function(i) { return 'x' + i }).join(', ');