diff options
author | Sven Gothel <[email protected]> | 2008-07-10 14:35:33 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2008-07-10 14:35:33 +0000 |
commit | ded03da17a6740b0805b039721c6c03ac67cd7cc (patch) | |
tree | 3646ce0b80d52200c44beb9d824e18a140fdb384 /make/glu-CustomJavaCode-gl2.java | |
parent | 4cb87cee20a57932b0dac2eb30ef0b847c2f210d (diff) |
Fixed:
- GLContextImpl GLBufferSizeTracker instantiation
- GL2ES1: added PopMatrix and PushMatrix
- GL: removed GL_FIXED
- GLU: added gluLookAt, .. float type variant
- Added: javax/media/opengl/util/FixedPoint.java for FixedPoint math (shall be increased)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1716 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/glu-CustomJavaCode-gl2.java')
-rw-r--r-- | make/glu-CustomJavaCode-gl2.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/make/glu-CustomJavaCode-gl2.java b/make/glu-CustomJavaCode-gl2.java index 9eedf6395..d6f18a7db 100644 --- a/make/glu-CustomJavaCode-gl2.java +++ b/make/glu-CustomJavaCode-gl2.java @@ -990,14 +990,27 @@ public final void gluSphere(GLUquadric quad, double radius, int slices, int stac private ProjectDouble project; +public final void gluOrtho2D(float left, float right, float bottom, float top) { + project.gluOrtho2D(getCurrentGL2(), (double)left, (double)right, (double)bottom, (double)top); + +} + public final void gluOrtho2D(double left, double right, double bottom, double top) { project.gluOrtho2D(getCurrentGL2(), left, right, bottom, top); } +public final void gluPerspective(float fovy, float aspect, float zNear, float zFar) { + project.gluPerspective(getCurrentGL2(), (double)fovy, (double)aspect, (double)zNear, (double)zFar); +} + public final void gluPerspective(double fovy, double aspect, double zNear, double zFar) { project.gluPerspective(getCurrentGL2(), fovy, aspect, zNear, zFar); } +public final void gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) { + project.gluLookAt(getCurrentGL2(), (double)eyeX, (double)eyeY, (double)eyeZ, (double)centerX, (double)centerY, (double)centerZ, (double)upX, (double)upY, (double)upZ); +} + public final void gluLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) { project.gluLookAt(getCurrentGL2(), eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); } |