aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-17 17:45:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-17 17:45:15 -0700
commit1070e6fd706cadfda3b2c808aaad98d4202b233d (patch)
tree77f4789fe69a3e05ad8950f39f428dd653de9a60 /src/library_gl.js
parent0d10acbc8c7fb9a0a11e8f1697bb3ee0354e3ca8 (diff)
sdl and gl stuff
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index d1c21fa1..45fc8585 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -63,8 +63,15 @@ var LibraryGL = {
glBindTexture: function(target, texture) {
Module.ctxGL.bindTexture(target, GL.textures[texture]);
},
+
};
+// Ignored stubs for fixed-function pipeline. We will need to emulate this
+'begin end matrixMode loadIdentity ortho color3f texCoord2f vertex2f blendFunc pushMatrix popMatrix translatef scalef'.split(' ').forEach(function(name_) {
+ var cName = 'gl' + name_[0].toUpperCase() + name_.substr(1);
+ LibraryGL[cName] = function(){};
+});
+
// Simple pass-through functions
[[0, 'shadeModel fogi fogfv'],
[1, 'clearDepth depthFunc enable disable frontFace cullFace'],