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 | |
parent | c47f7eba9be951c8e308e66c2541091c6b057af8 (diff) |
Added the gluOrtho2D function.
Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
-rw-r--r-- | AUTHORS | 2 | ||||
-rw-r--r-- | src/library_gl.js | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -44,4 +44,4 @@ a license to everyone to use it as detailed in LICENSE.) * Dominic Wong <dom@slowbunyip.org> * Alan Kligman <alan.kligman@gmail.com> (copyright owned by Mozilla Foundation) * Anthony Liot <wolfviking0@yahoo.com> - +* Michael Riß <Michael.Riss@gmx.de> 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 |