aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Aquino <mr.danielaquino@gmail.com>2013-10-13 21:42:17 -0400
committerDaniel Aquino <mr.danielaquino@gmail.com>2013-10-13 22:00:02 -0400
commit9e09f40ba0d7a462627df5507f28bece15bd4370 (patch)
tree79dc8e1add37ba82327c751c7f10005ee61ad6ed /src
parent0a229cf5a240a1ebf4ff5d0ebb501a286bc96202 (diff)
opengl: implement glColor4ubv
Diffstat (limited to 'src')
-rw-r--r--src/library_gl.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 83e68777..511709ae 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -3894,7 +3894,10 @@ var LibraryGL = {
_glColor4f({{{ makeGetValue('p', '0', 'float') }}}, {{{ makeGetValue('p', '4', 'float') }}}, {{{ makeGetValue('p', '8', 'float') }}}, {{{ makeGetValue('p', '12', 'float') }}});
},
- glColor4ubv: function() { throw 'glColor4ubv not implemented' },
+ glColor4ubv__deps: ['glColor4ub'],
+ glColor4ubv: function(p) {
+ _glColor4ub({{{ makeGetValue('p', '0', 'i8') }}}, {{{ makeGetValue('p', '1', 'i8') }}}, {{{ makeGetValue('p', '2', 'i8') }}}, {{{ makeGetValue('p', '3', 'i8') }}});
+ },
glFogf: function(pname, param) { // partial support, TODO
switch(pname) {