diff options
-rw-r--r-- | src/library_gl.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index f22eabcb..7e9a20d2 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -66,6 +66,22 @@ var LibraryGL = { Module.ctxGL.bindTexture(target, GL.textures[texture]); }, + glClearColor: function(red, green, blue, alpha) { + Module.ctxGL.clearColor(red, green, blue, alpha); + }, + + glClear: function(mask) { + Module.ctxGL.clear(mask); + }, + + glEnable: function(cap) { + Module.ctxGL.enable(cap); + }, + + glScissor: function(x, y, width, height) { + Module.ctxGL.scissor(x, y, width, height); + }, + }; // Ignored stubs for fixed-function pipeline. We will need to emulate this |