aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Riss <Michael.Riss@gmx.de>2013-01-16 21:12:31 +0100
committerAlon Zakai <alonzakai@gmail.com>2013-01-16 17:44:53 -0800
commit207695fec254d4c98ef7af79c2a45ec6e9a1fae7 (patch)
tree2f23ee13ebb5ed8497271d8df12f48730477701f
parent65cfcfaee6c05dcffcfeee278ac5dc5621c2259f (diff)
Added the gluOrtho2D function.
Signed-off-by: Michael Riss <Michael.Riss@gmx.de>
-rw-r--r--AUTHORS2
-rw-r--r--src/library_gl.js6
2 files changed, 6 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 04dfc10d..9399a4f8 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -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