Package jgl.wt.awt
Class GLU
java.lang.Object
jgl.wt.awt.GLU
GLU is the glu class of jGL 2.4.
- Version:
- 0.4, 12 May 2003
- Author:
- Robin Bing-Yu Chen Modified 11/15/2002 by Jon McCall. Fixed the gluUnProject code. To fix the gluUnProject method I replaced the inverseMatrix44 with with a different algorithum, it was returning incorrect results. Also added a method to swap rows and columns (swapRowsCols44) because the projection and model matrixes are expected to be in this format for the gluUnproject algoithum to work correctly.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Property types:static final int
static final int
static final int
static final int
static final int
static final boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Trim types:static final int
static final int
Error codes:static final int
static final int
Error codes:static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Display types:static final int
Orientation types:static final int
static final int
static final int
Sampling types:static final int
DrawStyle types:static final int
static final int
static final int
static final int
Types of normals:static final boolean
Booleanstatic final int
static final int
static final int
String names: -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
gluBeginCurve
(GLUnurbsObj nobj) GLvoid gluBeginCurve (GLUnurbsObj *nobj)void
gluBeginSurface
(GLUnurbsObj nobj) GLvoid gluBeginSurface (GLUnurbsObj *nobj)void
gluCylinder
(GLUquadricObj qobj, double baseRadius, double topRadius, double height, int slices, int stacks) GLvoid gluCylinder (GLUquadricObj *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)void
GLvoid gluDeleteNurbsRenderer (GLUnurbsObj *nobj)void
gluDeleteQuadric
(GLUquadricObj state) void gluDeleteQuadric (GLUquadricObj *state)void
gluDisk
(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops) GLvoid gluDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)void
gluEndCurve
(GLUnurbsObj nobj) GLvoid gluEndCurve (GLUnurbsObj *nobj)void
gluEndSurface
(GLUnurbsObj nobj) GLvoid gluEndSurface (GLUnurbsObj *nobj)static String
gluErrorString
(int errorCode) const GLubyte* gluErrorString (GLenum errorCode)gluGetGL()
void
gluGetNurbsProperty
(GLUnurbsObj nobj, int property, float[] value) GLvoid gluGetNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat *value)void
gluLoadSamplingMatrices
(GLUnurbsObj nobj, float[] modelMatrix, float[] projMatrix, int[] viewport) GLvoid gluLoadSamplingMatrices (GLUnurbsObj *nobj, const GLfloat modelMatrix [16], const GLfloat projMatrix [16], const GLint viewport [4])void
gluLookAt
(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz) GLvoid gluLookAt (GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz)GLUnurbsObj *gluNewNurbsRenderer (GLvoid)GLUquadricObj* gluNewQuadric (GLvoid)void
gluNurbsCurve
(GLUnurbsObj nobj, int knot_count, float[] knot, int stride, float[][] ctlarray, int order, int type) GLvoid gluNurbsCurve (GLUnurbsObj *nobj, GLint knot_count, GLfloat *knot, GLint stride, GLfloat *ctlarray, GLint order, GLenum type)void
gluNurbsProperty
(GLUnurbsObj nobj, int property, float value) GLvoid gluNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat value)void
gluNurbsSurface
(GLUnurbsObj nobj, int sknot_count, float[] sknot, int tknot_count, float[] tknot, int s_stride, int t_stride, float[][][] ctlarray, int sorder, int torder, int type) GLvoid gluNurbsSurface (GLUnurbsObj *nobj, GLint sknot_count, GLfloat *sknot, GLint tknot_count, GLfloat *tknot, GLint s_stride, GLint t_stride, GLfloat *ctlarray, GLint sorder, GLint torder, GLenum type)void
gluOrtho2D
(double left, double right, double bottom, double top) GLvoid gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top)void
gluPartialDisk
(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops, double startAngle, double sweepAngle) GLvoid gluPartialDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)void
gluPerspective
(double fovy, double aspect, double zNear, double zFar) GLvoid gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar)void
gluPickMatrix
(double x, double y, double width, double height, int[] viewport) GLvoid gluPickMatrix (GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4])boolean
gluProject
(double objx, double objy, double objz, double[] model, double[] proj, int[] viewport, double[] winx, double[] winy, double[] winz) GLint gluProject (GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *winx, GLdouble *winy, GLdouble *winz)void
gluQuadricCallback
(GLUquadricObj qobj, int which, String fn) GLvoid gluQuadricCallback (GLUquadricObj *qobj, GLenum which, void (GLCALLBACK * fn) ())void
gluQuadricDrawStyle
(GLUquadricObj quadObject, int drawStyle) GLvoid gluQuadricDrawStyle (GLUquadricObj *quadObject, GLenum drawStyle)void
gluQuadricNormals
(GLUquadricObj quadObject, int normals) GLvoid gluQuadricNormals (GLUquadricObj *quadObject, GLenum normals)void
gluQuadricOrientation
(GLUquadricObj quadObject, int orientation) GLvoid gluQuadricOrientation (GLUquadricObj *quadObject, GLenum orientation)void
gluQuadricTexture
(GLUquadricObj quadObject, boolean textureCoords) GLvoid gluQuadricTexture (GLUquadricObj *quadObject, GLboolean textureCoords)void
gluSphere
(GLUquadricObj qobj, double radius, int slices, int stacks) GLvoid gluSphere (GLUquadricObj *qobj, GLdouble radius, GLint slices, GLint stacks)boolean
gluUnProject
(double winx, double winy, double winz, double[] model, double[] proj, int[] viewport, double[] objx, double[] objy, double[] objz) GLint gluUnProject (GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *objx, GLdouble *objy, GLdouble *objz)static void
print
(double[][] input) static void
print
(double[] input, int width) static void
static void
-
Field Details
-
GLU_TRUE
public static final boolean GLU_TRUEBoolean- See Also:
-
GLU_FALSE
public static final boolean GLU_FALSE- See Also:
-
GLU_NO_ERROR
public static final int GLU_NO_ERRORError codes:- See Also:
-
GLU_INVALID_ENUM
public static final int GLU_INVALID_ENUM- See Also:
-
GLU_INVALID_VALUE
public static final int GLU_INVALID_VALUE- See Also:
-
GLU_OUT_OF_MEMORY
public static final int GLU_OUT_OF_MEMORY- See Also:
-
GLU_INVALID_OPERATION
public static final int GLU_INVALID_OPERATION- See Also:
-
GLU_VERSION
public static final int GLU_VERSIONString names:- See Also:
-
GLU_EXTENSIONS
public static final int GLU_EXTENSIONS- See Also:
-
GLU_SMOOTH
public static final int GLU_SMOOTHTypes of normals:- See Also:
-
GLU_FLAT
public static final int GLU_FLAT- See Also:
-
GLU_NONE
public static final int GLU_NONE- See Also:
-
GLU_POINT
public static final int GLU_POINTDrawStyle types:- See Also:
-
GLU_LINE
public static final int GLU_LINE- See Also:
-
GLU_FILL
public static final int GLU_FILL- See Also:
-
GLU_SILHOUETTE
public static final int GLU_SILHOUETTE- See Also:
-
GLU_OUTSIDE
public static final int GLU_OUTSIDEOrientation types:- See Also:
-
GLU_INSIDE
public static final int GLU_INSIDE- See Also:
-
GLU_ERROR
public static final int GLU_ERROR- See Also:
-
GLU_AUTO_LOAD_MATRIX
public static final int GLU_AUTO_LOAD_MATRIXProperty types:- See Also:
-
GLU_CULLING
public static final int GLU_CULLING- See Also:
-
GLU_PARAMETRIC_TOLERANCE
public static final int GLU_PARAMETRIC_TOLERANCE- See Also:
-
GLU_SAMPLING_TOLERANCE
public static final int GLU_SAMPLING_TOLERANCE- See Also:
-
GLU_DISPLAY_MODE
public static final int GLU_DISPLAY_MODE- See Also:
-
GLU_SAMPLING_METHOD
public static final int GLU_SAMPLING_METHOD- See Also:
-
GLU_U_STEP
public static final int GLU_U_STEP- See Also:
-
GLU_V_STEP
public static final int GLU_V_STEP- See Also:
-
GLU_PATH_LENGTH
public static final int GLU_PATH_LENGTHSampling types:- See Also:
-
GLU_PARAMETRIC_ERROR
public static final int GLU_PARAMETRIC_ERROR- See Also:
-
GLU_DOMAIN_DISTANCE
public static final int GLU_DOMAIN_DISTANCE- See Also:
-
GLU_MAP1_TRIM_2
public static final int GLU_MAP1_TRIM_2Trim types:- See Also:
-
GLU_MAP1_TRIM_3
public static final int GLU_MAP1_TRIM_3- See Also:
-
GLU_OUTLINE_POLYGON
public static final int GLU_OUTLINE_POLYGONDisplay types:- See Also:
-
GLU_OUTLINE_PATCH
public static final int GLU_OUTLINE_PATCH- See Also:
-
GLU_NURBS_ERROR1
public static final int GLU_NURBS_ERROR1Error codes:- See Also:
-
GLU_NURBS_ERROR2
public static final int GLU_NURBS_ERROR2- See Also:
-
GLU_NURBS_ERROR3
public static final int GLU_NURBS_ERROR3- See Also:
-
GLU_NURBS_ERROR4
public static final int GLU_NURBS_ERROR4- See Also:
-
GLU_NURBS_ERROR5
public static final int GLU_NURBS_ERROR5- See Also:
-
GLU_NURBS_ERROR6
public static final int GLU_NURBS_ERROR6- See Also:
-
GLU_NURBS_ERROR7
public static final int GLU_NURBS_ERROR7- See Also:
-
GLU_NURBS_ERROR8
public static final int GLU_NURBS_ERROR8- See Also:
-
GLU_NURBS_ERROR9
public static final int GLU_NURBS_ERROR9- See Also:
-
GLU_NURBS_ERROR10
public static final int GLU_NURBS_ERROR10- See Also:
-
GLU_NURBS_ERROR11
public static final int GLU_NURBS_ERROR11- See Also:
-
GLU_NURBS_ERROR12
public static final int GLU_NURBS_ERROR12- See Also:
-
GLU_NURBS_ERROR13
public static final int GLU_NURBS_ERROR13- See Also:
-
GLU_NURBS_ERROR14
public static final int GLU_NURBS_ERROR14- See Also:
-
GLU_NURBS_ERROR15
public static final int GLU_NURBS_ERROR15- See Also:
-
GLU_NURBS_ERROR16
public static final int GLU_NURBS_ERROR16- See Also:
-
GLU_NURBS_ERROR17
public static final int GLU_NURBS_ERROR17- See Also:
-
GLU_NURBS_ERROR18
public static final int GLU_NURBS_ERROR18- See Also:
-
GLU_NURBS_ERROR19
public static final int GLU_NURBS_ERROR19- See Also:
-
GLU_NURBS_ERROR20
public static final int GLU_NURBS_ERROR20- See Also:
-
GLU_NURBS_ERROR21
public static final int GLU_NURBS_ERROR21- See Also:
-
GLU_NURBS_ERROR22
public static final int GLU_NURBS_ERROR22- See Also:
-
GLU_NURBS_ERROR23
public static final int GLU_NURBS_ERROR23- See Also:
-
GLU_NURBS_ERROR24
public static final int GLU_NURBS_ERROR24- See Also:
-
GLU_NURBS_ERROR25
public static final int GLU_NURBS_ERROR25- See Also:
-
GLU_NURBS_ERROR26
public static final int GLU_NURBS_ERROR26- See Also:
-
GLU_NURBS_ERROR27
public static final int GLU_NURBS_ERROR27- See Also:
-
GLU_NURBS_ERROR28
public static final int GLU_NURBS_ERROR28- See Also:
-
GLU_NURBS_ERROR29
public static final int GLU_NURBS_ERROR29- See Also:
-
GLU_NURBS_ERROR30
public static final int GLU_NURBS_ERROR30- See Also:
-
GLU_NURBS_ERROR31
public static final int GLU_NURBS_ERROR31- See Also:
-
GLU_NURBS_ERROR32
public static final int GLU_NURBS_ERROR32- See Also:
-
GLU_NURBS_ERROR33
public static final int GLU_NURBS_ERROR33- See Also:
-
GLU_NURBS_ERROR34
public static final int GLU_NURBS_ERROR34- See Also:
-
GLU_NURBS_ERROR35
public static final int GLU_NURBS_ERROR35- See Also:
-
GLU_NURBS_ERROR36
public static final int GLU_NURBS_ERROR36- See Also:
-
GLU_NURBS_ERROR37
public static final int GLU_NURBS_ERROR37- See Also:
-
-
Constructor Details
-
GLU
-
-
Method Details
-
print
public static void print(double[][] input) -
print
-
print
public static void print(double[] input, int width) -
print
-
gluGetGL
-
gluOrtho2D
public void gluOrtho2D(double left, double right, double bottom, double top) GLvoid gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top) -
gluPerspective
public void gluPerspective(double fovy, double aspect, double zNear, double zFar) GLvoid gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar) -
gluPickMatrix
public void gluPickMatrix(double x, double y, double width, double height, int[] viewport) GLvoid gluPickMatrix (GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4]) -
gluProject
public boolean gluProject(double objx, double objy, double objz, double[] model, double[] proj, int[] viewport, double[] winx, double[] winy, double[] winz) GLint gluProject (GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *winx, GLdouble *winy, GLdouble *winz) -
gluUnProject
public boolean gluUnProject(double winx, double winy, double winz, double[] model, double[] proj, int[] viewport, double[] objx, double[] objy, double[] objz) GLint gluUnProject (GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *objx, GLdouble *objy, GLdouble *objz) -
gluLookAt
public void gluLookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz) GLvoid gluLookAt (GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz) -
gluErrorString
const GLubyte* gluErrorString (GLenum errorCode) -
gluNewQuadric
GLUquadricObj* gluNewQuadric (GLvoid) -
gluDeleteQuadric
void gluDeleteQuadric (GLUquadricObj *state) -
gluQuadricDrawStyle
GLvoid gluQuadricDrawStyle (GLUquadricObj *quadObject, GLenum drawStyle) -
gluQuadricOrientation
GLvoid gluQuadricOrientation (GLUquadricObj *quadObject, GLenum orientation) -
gluQuadricCallback
GLvoid gluQuadricCallback (GLUquadricObj *qobj, GLenum which, void (GLCALLBACK * fn) ()) -
gluQuadricNormals
GLvoid gluQuadricNormals (GLUquadricObj *quadObject, GLenum normals) -
gluQuadricTexture
GLvoid gluQuadricTexture (GLUquadricObj *quadObject, GLboolean textureCoords) -
gluCylinder
public void gluCylinder(GLUquadricObj qobj, double baseRadius, double topRadius, double height, int slices, int stacks) GLvoid gluCylinder (GLUquadricObj *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks) -
gluSphere
GLvoid gluSphere (GLUquadricObj *qobj, GLdouble radius, GLint slices, GLint stacks) -
gluDisk
public void gluDisk(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops) GLvoid gluDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops) -
gluPartialDisk
public void gluPartialDisk(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops, double startAngle, double sweepAngle) GLvoid gluPartialDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle) -
gluNewNurbsRenderer
GLUnurbsObj *gluNewNurbsRenderer (GLvoid) -
gluDeleteNurbsRenderer
GLvoid gluDeleteNurbsRenderer (GLUnurbsObj *nobj) -
gluLoadSamplingMatrices
public void gluLoadSamplingMatrices(GLUnurbsObj nobj, float[] modelMatrix, float[] projMatrix, int[] viewport) GLvoid gluLoadSamplingMatrices (GLUnurbsObj *nobj, const GLfloat modelMatrix [16], const GLfloat projMatrix [16], const GLint viewport [4]) -
gluNurbsProperty
GLvoid gluNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat value) -
gluGetNurbsProperty
GLvoid gluGetNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat *value) -
gluBeginCurve
GLvoid gluBeginCurve (GLUnurbsObj *nobj) -
gluEndCurve
GLvoid gluEndCurve (GLUnurbsObj *nobj) -
gluNurbsCurve
public void gluNurbsCurve(GLUnurbsObj nobj, int knot_count, float[] knot, int stride, float[][] ctlarray, int order, int type) GLvoid gluNurbsCurve (GLUnurbsObj *nobj, GLint knot_count, GLfloat *knot, GLint stride, GLfloat *ctlarray, GLint order, GLenum type) -
gluBeginSurface
GLvoid gluBeginSurface (GLUnurbsObj *nobj) -
gluEndSurface
GLvoid gluEndSurface (GLUnurbsObj *nobj) -
gluNurbsSurface
public void gluNurbsSurface(GLUnurbsObj nobj, int sknot_count, float[] sknot, int tknot_count, float[] tknot, int s_stride, int t_stride, float[][][] ctlarray, int sorder, int torder, int type) GLvoid gluNurbsSurface (GLUnurbsObj *nobj, GLint sknot_count, GLfloat *sknot, GLint tknot_count, GLfloat *tknot, GLint s_stride, GLint t_stride, GLfloat *ctlarray, GLint sorder, GLint torder, GLenum type)
-