diff options
author | Michael Riss <Michael.Riss@gmx.de> | 2013-01-16 21:12:31 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-16 17:44:53 -0800 |
commit | 207695fec254d4c98ef7af79c2a45ec6e9a1fae7 (patch) | |
tree | 2f23ee13ebb5ed8497271d8df12f48730477701f /src | |
parent | 65cfcfaee6c05dcffcfeee278ac5dc5621c2259f (diff) |
Added the gluOrtho2D function.
Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
Diffstat (limited to 'src')
-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 |