aboutsummaryrefslogtreecommitdiff
path: root/src/library_gl.js
diff options
context:
space:
mode:
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 dbde945c..3c33ec2c 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -14,6 +14,8 @@ var LibraryGL = {
uniforms: {},
shaders: {},
+ matrix: {},
+
// Linear lookup in one of the tables (buffers, programs, etc.). TODO: consider using a weakmap to make this faster, if it matters
scan: function(table, object) {
for (var item in table) {
@@ -834,6 +836,11 @@ var LibraryGL = {
}
return Runtime.addFunction(func);
}
+ },
+
+ glBegin__deps: ['$GL', function() { return 'GL.matrix.lib = ' + read('gl-matrix.js') }],
+ glBegin: function() {
+ Module.print('TODO');
}
};