Package jgl.wt.awt
Class GLU
- java.lang.Object
-
- jgl.wt.awt.GLU
-
public class GLU extends Object
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
gluDeleteNurbsRenderer(GLUnurbsObj nobj)
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)GL
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()
GLUnurbsObj *gluNewNurbsRenderer (GLvoid)GLUquadricObj
gluNewQuadric()
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)
-
-
-
Field Detail
-
GLU_TRUE
public static final boolean GLU_TRUE
Boolean- See Also:
- Constant Field Values
-
GLU_FALSE
public static final boolean GLU_FALSE
- See Also:
- Constant Field Values
-
GLU_NO_ERROR
public static final int GLU_NO_ERROR
Error codes:- See Also:
- Constant Field Values
-
GLU_INVALID_ENUM
public static final int GLU_INVALID_ENUM
- See Also:
- Constant Field Values
-
GLU_INVALID_VALUE
public static final int GLU_INVALID_VALUE
- See Also:
- Constant Field Values
-
GLU_OUT_OF_MEMORY
public static final int GLU_OUT_OF_MEMORY
- See Also:
- Constant Field Values
-
GLU_INVALID_OPERATION
public static final int GLU_INVALID_OPERATION
- See Also:
- Constant Field Values
-
GLU_VERSION
public static final int GLU_VERSION
String names:- See Also:
- Constant Field Values
-
GLU_EXTENSIONS
public static final int GLU_EXTENSIONS
- See Also:
- Constant Field Values
-
GLU_SMOOTH
public static final int GLU_SMOOTH
Types of normals:- See Also:
- Constant Field Values
-
GLU_FLAT
public static final int GLU_FLAT
- See Also:
- Constant Field Values
-
GLU_NONE
public static final int GLU_NONE
- See Also:
- Constant Field Values
-
GLU_POINT
public static final int GLU_POINT
DrawStyle types:- See Also:
- Constant Field Values
-
GLU_LINE
public static final int GLU_LINE
- See Also:
- Constant Field Values
-
GLU_FILL
public static final int GLU_FILL
- See Also:
- Constant Field Values
-
GLU_SILHOUETTE
public static final int GLU_SILHOUETTE
- See Also:
- Constant Field Values
-
GLU_OUTSIDE
public static final int GLU_OUTSIDE
Orientation types:- See Also:
- Constant Field Values
-
GLU_INSIDE
public static final int GLU_INSIDE
- See Also:
- Constant Field Values
-
GLU_ERROR
public static final int GLU_ERROR
- See Also:
- Constant Field Values
-
GLU_AUTO_LOAD_MATRIX
public static final int GLU_AUTO_LOAD_MATRIX
Property types:- See Also:
- Constant Field Values
-
GLU_CULLING
public static final int GLU_CULLING
- See Also:
- Constant Field Values
-
GLU_PARAMETRIC_TOLERANCE
public static final int GLU_PARAMETRIC_TOLERANCE
- See Also:
- Constant Field Values
-
GLU_SAMPLING_TOLERANCE
public static final int GLU_SAMPLING_TOLERANCE
- See Also:
- Constant Field Values
-
GLU_DISPLAY_MODE
public static final int GLU_DISPLAY_MODE
- See Also:
- Constant Field Values
-
GLU_SAMPLING_METHOD
public static final int GLU_SAMPLING_METHOD
- See Also:
- Constant Field Values
-
GLU_U_STEP
public static final int GLU_U_STEP
- See Also:
- Constant Field Values
-
GLU_V_STEP
public static final int GLU_V_STEP
- See Also:
- Constant Field Values
-
GLU_PATH_LENGTH
public static final int GLU_PATH_LENGTH
Sampling types:- See Also:
- Constant Field Values
-
GLU_PARAMETRIC_ERROR
public static final int GLU_PARAMETRIC_ERROR
- See Also:
- Constant Field Values
-
GLU_DOMAIN_DISTANCE
public static final int GLU_DOMAIN_DISTANCE
- See Also:
- Constant Field Values
-
GLU_MAP1_TRIM_2
public static final int GLU_MAP1_TRIM_2
Trim types:- See Also:
- Constant Field Values
-
GLU_MAP1_TRIM_3
public static final int GLU_MAP1_TRIM_3
- See Also:
- Constant Field Values
-
GLU_OUTLINE_POLYGON
public static final int GLU_OUTLINE_POLYGON
Display types:- See Also:
- Constant Field Values
-
GLU_OUTLINE_PATCH
public static final int GLU_OUTLINE_PATCH
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR1
public static final int GLU_NURBS_ERROR1
Error codes:- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR2
public static final int GLU_NURBS_ERROR2
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR3
public static final int GLU_NURBS_ERROR3
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR4
public static final int GLU_NURBS_ERROR4
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR5
public static final int GLU_NURBS_ERROR5
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR6
public static final int GLU_NURBS_ERROR6
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR7
public static final int GLU_NURBS_ERROR7
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR8
public static final int GLU_NURBS_ERROR8
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR9
public static final int GLU_NURBS_ERROR9
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR10
public static final int GLU_NURBS_ERROR10
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR11
public static final int GLU_NURBS_ERROR11
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR12
public static final int GLU_NURBS_ERROR12
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR13
public static final int GLU_NURBS_ERROR13
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR14
public static final int GLU_NURBS_ERROR14
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR15
public static final int GLU_NURBS_ERROR15
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR16
public static final int GLU_NURBS_ERROR16
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR17
public static final int GLU_NURBS_ERROR17
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR18
public static final int GLU_NURBS_ERROR18
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR19
public static final int GLU_NURBS_ERROR19
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR20
public static final int GLU_NURBS_ERROR20
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR21
public static final int GLU_NURBS_ERROR21
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR22
public static final int GLU_NURBS_ERROR22
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR23
public static final int GLU_NURBS_ERROR23
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR24
public static final int GLU_NURBS_ERROR24
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR25
public static final int GLU_NURBS_ERROR25
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR26
public static final int GLU_NURBS_ERROR26
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR27
public static final int GLU_NURBS_ERROR27
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR28
public static final int GLU_NURBS_ERROR28
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR29
public static final int GLU_NURBS_ERROR29
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR30
public static final int GLU_NURBS_ERROR30
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR31
public static final int GLU_NURBS_ERROR31
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR32
public static final int GLU_NURBS_ERROR32
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR33
public static final int GLU_NURBS_ERROR33
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR34
public static final int GLU_NURBS_ERROR34
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR35
public static final int GLU_NURBS_ERROR35
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR36
public static final int GLU_NURBS_ERROR36
- See Also:
- Constant Field Values
-
GLU_NURBS_ERROR37
public static final int GLU_NURBS_ERROR37
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GLU
public GLU(GL myGL)
-
-
Method Detail
-
gluGetGL
public GL 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
public static String gluErrorString(int errorCode)
const GLubyte* gluErrorString (GLenum errorCode)
-
gluNewQuadric
public GLUquadricObj gluNewQuadric()
GLUquadricObj* gluNewQuadric (GLvoid)
-
gluDeleteQuadric
public void gluDeleteQuadric(GLUquadricObj state)
void gluDeleteQuadric (GLUquadricObj *state)
-
gluQuadricDrawStyle
public void gluQuadricDrawStyle(GLUquadricObj quadObject, int drawStyle)
GLvoid gluQuadricDrawStyle (GLUquadricObj *quadObject, GLenum drawStyle)
-
gluQuadricOrientation
public void gluQuadricOrientation(GLUquadricObj quadObject, int orientation)
GLvoid gluQuadricOrientation (GLUquadricObj *quadObject, GLenum orientation)
-
gluQuadricCallback
public void gluQuadricCallback(GLUquadricObj qobj, int which, String fn)
GLvoid gluQuadricCallback (GLUquadricObj *qobj, GLenum which, void (GLCALLBACK * fn) ())
-
gluQuadricNormals
public void gluQuadricNormals(GLUquadricObj quadObject, int normals)
GLvoid gluQuadricNormals (GLUquadricObj *quadObject, GLenum normals)
-
gluQuadricTexture
public void gluQuadricTexture(GLUquadricObj quadObject, boolean textureCoords)
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
public void gluSphere(GLUquadricObj qobj, double radius, int slices, int stacks)
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
public GLUnurbsObj gluNewNurbsRenderer()
GLUnurbsObj *gluNewNurbsRenderer (GLvoid)
-
gluDeleteNurbsRenderer
public void gluDeleteNurbsRenderer(GLUnurbsObj nobj)
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
public void gluNurbsProperty(GLUnurbsObj nobj, int property, float value)
GLvoid gluNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat value)
-
gluGetNurbsProperty
public void gluGetNurbsProperty(GLUnurbsObj nobj, int property, float[] value)
GLvoid gluGetNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat *value)
-
gluBeginCurve
public void gluBeginCurve(GLUnurbsObj nobj)
GLvoid gluBeginCurve (GLUnurbsObj *nobj)
-
gluEndCurve
public void gluEndCurve(GLUnurbsObj nobj)
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
public void gluBeginSurface(GLUnurbsObj nobj)
GLvoid gluBeginSurface (GLUnurbsObj *nobj)
-
gluEndSurface
public void gluEndSurface(GLUnurbsObj nobj)
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)
-
-