From 603a9a7730d788f9a361d2b488c953c064d21a6b Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 21 Nov 2004 17:20:00 +0000 Subject: Fixed bug pointed out by fazekaim on the JOGL forums where the prototypes for the manually-implemented GLU projection routines were not in the GLU interface. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@177 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/glu-interface-common-CustomJavaCode.java | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'make/glu-interface-common-CustomJavaCode.java') diff --git a/make/glu-interface-common-CustomJavaCode.java b/make/glu-interface-common-CustomJavaCode.java index 0d9f550ef..0019046c5 100644 --- a/make/glu-interface-common-CustomJavaCode.java +++ b/make/glu-interface-common-CustomJavaCode.java @@ -1,3 +1,46 @@ +//---------------------------------------------------------------------- +// Projection routines +// + +/** Interface to C language function:
GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * winX, GLdouble * winY, GLdouble * winZ); */ +public boolean gluProject(double objX, double objY, double objZ, double[] model, double[] proj, int[] view, double[] winX, double[] winY, double[] winZ); + +/** + * Convenience routine for gluProject that accepts the outgoing window + * coordinates as a single array. + */ +public boolean gluProject(double objx, + double objy, + double objz, + double[] modelMatrix, + double[] projMatrix, + int[] viewport, + double[] winPos); + +/** Interface to C language function:
GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * objX, GLdouble * objY, GLdouble * objZ); */ +public boolean gluUnProject(double winX, double winY, double winZ, double[] model, double[] proj, int[] view, double[] objX, double[] objY, double[] objZ); + +/** + * Convenience routine for gluUnProject that accepts the outgoing + * object coordinates (a 3-vector) as a single array. + */ +public boolean gluUnProject(double winX, double winY, double winZ, double[] model, double[] proj, int[] view, double[] objPos); + +/** Interface to C language function:
GLint gluUnProject4(GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble nearVal, GLdouble farVal, GLdouble * objX, GLdouble * objY, GLdouble * objZ, GLdouble * objW); */ +public boolean gluUnProject4(double winX, double winY, double winZ, double clipW, double[] model, double[] proj, int[] view, double nearVal, double farVal, double[] objX, double[] objY, double[] objZ, double[] objW); + +/** + * Convenience routine for gluUnProject4 that accepts the outgoing + * object coordinates (a 4-vector) as a single array. + */ +public boolean gluUnProject4(double winX, double winY, double winZ, double clipW, double[] model, double[] proj, int[] view, double nearVal, double farVal, double[] objPos); + + + +//---------------------------------------------------------------------- +// Tesselation routines +// + /***************************************************************************** * gluBeginPolygon and {@link net.java.games.jogl.GLU#gluEndPolygon * gluEndPolygon} delimit the definition of a nonconvex polygon. To define -- cgit v1.2.3