aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-22 14:24:23 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-22 14:24:23 -0800
commit1628ae8f6e7918feba8dd5e27c3f74cb9599e483 (patch)
tree6b65894d6c8a9b9f165bc7966dc247cdd51615c4 /src/library_gl.js
parent36ac03888364283ef2a3d4492e673ba38f4fa1a8 (diff)
add missing vertex array signatures
Diffstat (limited to 'src/library_gl.js')
-rw-r--r--src/library_gl.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 1474fff8..027b2841 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -2522,6 +2522,7 @@ var LibraryGL = {
// Vertex array object (VAO) support. TODO: when the WebGL extension is popular, use that and remove this code and GL.vaos
glGenVertexArrays__deps: ['$GLEMulation'],
+ glGenVertexArrays__sig: ['vii'],
glGenVertexArrays: function(n, vaos) {
for (var i = 0; i < n; i++) {
var id = GL.getNewId(GLEmulation.vaos);
@@ -2536,6 +2537,7 @@ var LibraryGL = {
{{{ makeSetValue('vaos', 'i*4', 'id', 'i32') }}};
}
},
+ glDeleteVertexArrays__sig: ['vii'],
glDeleteVertexArrays: function(n, vaos) {
for (var i = 0; i < n; i++) {
var id = {{{ makeGetValue('vaos', 'i*4', 'i32') }}};
@@ -2543,6 +2545,7 @@ var LibraryGL = {
if (GLEmulation.currentVao && GLEmulation.currentVao.id == id) GLEmulation.currentVao = null;
}
},
+ glBindVertexArray__sig: ['vi'],
glBindVertexArray: function(vao) {
// undo vao-related things, wipe the slate clean, both for vao of 0 or an actual vao
GLEmulation.currentVao = null; // make sure the commands we run here are not recorded