diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2009-12-02 18:11:52 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2009-12-03 11:50:09 -0800 |
commit | 89feae7c12dd703804c93f784f9bd7e39fcc7f60 (patch) | |
tree | 054ef01d7fc1cc8191999af5c3aebb0e14c1ff2f /src | |
parent | 19f7c8d47e747ec2e80bf21d76cada0c991505d6 (diff) |
Fix parameter ordering of projection matrix functions
The GL and (classic) GLU functions that these emulate have bottom before top.
Reorder the parameters to these functions to match.
Diffstat (limited to 'src')
-rw-r--r-- | src/matrix.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/matrix.c b/src/matrix.c index 9fb356d..e2f02e4 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -157,7 +157,7 @@ void gluRotate4v(GLUmat4 *result, const GLUvec4 *_axis, GLfloat angle) void gluFrustum6f(GLUmat4 *result, - GLfloat left, GLfloat right, GLfloat top, GLfloat bottom, + GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near, GLfloat far) { if ((right == left) || (top == bottom) || (near == far) @@ -206,7 +206,7 @@ gluPerspective4f(GLUmat4 *result, void gluOrtho6f(GLUmat4 *result, - GLfloat left, GLfloat right, GLfloat top, GLfloat bottom, + GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat near, GLfloat far) { if ((right == left) || (top == bottom) || (near == far)) @@ -224,8 +224,8 @@ gluOrtho6f(GLUmat4 *result, void -gluOrtho4f(GLUmat4 *result, GLfloat left, GLfloat right, GLfloat top, - GLfloat bottom) +gluOrtho4f(GLUmat4 *result, GLfloat left, GLfloat right, GLfloat bottom, + GLfloat top) { - gluOrtho6f(result, left, right, top, bottom, -1.0, 1.0); + gluOrtho6f(result, left, right, bottom, top, -1.0, 1.0); } |