diff options
author | Michael Riss <Michael.Riss@gmx.de> | 2013-01-16 21:12:31 +0100 |
---|---|---|
committer | Michael Riss <Michael.Riss@gmx.de> | 2013-01-16 21:12:31 +0100 |
commit | 6e00c50f6d3e1d183d2792990819d82cc3009222 (patch) | |
tree | 3152a31d87cad1bc69faf60c0344e3a96fd29e1d /src/library_gl.js | |
parent | c47f7eba9be951c8e308e66c2541091c6b057af8 (diff) |
Added the gluOrtho2D function.
Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
Diffstat (limited to 'src/library_gl.js')
-rw-r--r-- | src/library_gl.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 267a6185..f6793dc9 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -2462,7 +2462,11 @@ var LibraryGL = { {{{ makeSetValue('objZ', '0', 'result[2]', 'double') }}}; return 1 /* GL_TRUE */; - } + }, + + gluOrtho2D: function(left, right, bottom, top) { + _glOrtho(left, right, bottom, top, -1, 1); + }, }; // Simple pass-through functions. Starred ones have return values. [X] ones have X in the C name but not in the JS name |