Notes
from the Reference Implementation for this class: Thanks to the contributions of many individuals, this class is a pure Java port of SGI's original C sources. All of the projection, mipmap, scaling, and tessellation routines that are exposed are compatible with the GLU 1.3 specification. The GLU NURBS routines are not currently exposed.
| Modifier and Type | Field and Description |
|---|---|
| protected static boolean | |
| protected static boolean | |
| protected static boolean | |
| protected static boolean | |
| public static final String | |
| private static final Class | |
| private static final Class | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final double | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final ProjectFloat | |
| protected static volatile Object | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final GLU | createGLU()
Instantiates a GLU implementation object in respect to the given GL profile of this thread current GL. |
| public static final GLU | |
| public static final GL | |
| public static final void | gluBeginPolygon(GLUtessellator
Specifies the tessellation object (created with
tessellator)gluNewTess).gluBeginPolygon and |
| public int | gluBuild1DMipmapLevels(int target, int internalFormat, int width, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)
Optional, throws GLException if not available in profile |
| public int | gluBuild1DMipmaps(int target, int internalFormat, int width, int format, int type, Buffer data)
Optional, throws GLException if not available in profile |
| public int | gluBuild2DMipmapLevels(int target, int internalFormat, int width, int height, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)
Optional, throws GLException if not available in profile |
| public int | gluBuild2DMipmaps(int target, int internalFormat, int width, int height, int format, int type, Buffer data)
Optional, throws GLException if not available in profile |
| public int | gluBuild3DMipmapLevels(int target, int internalFormat, int width, int height, int depth, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)
Optional, throws GLException if not available in profile |
| public int | gluBuild3DMipmaps(int target, int internalFormat, int width, int height, int depth, int format, int type, Buffer data)
Optional, throws GLException if not available in profile |
| public final boolean | |
| public final void | gluCylinder(GLUquadric quad, double base, double top, double height, int slices, int stacks)
Option (throws GLException if not available in profile). |
| public final void | |
| public static final void | gluDeleteTess(GLUtessellator
Specifies the tessellation object to destroy. tessellator)gluDeleteTess destroys the indicated tessellation object (which was
created with |
| public final void | gluDisk(GLUquadric quad, double inner, double outer, int slices, int loops)
Option (throws GLException if not available in profile). |
| public static final void | gluEndPolygon(GLUtessellator
Specifies the tessellation object (created with
tessellator)gluNewTess).gluEndPolygon and |
| public final String | |
| public final String | |
| public static final void | gluGetTessProperty(GLUtessellator
Specifies the tessellation object (created with
tessellator, int gluNewTess).Specifies the property whose value is to be fetched. Valid values
are GLU_TESS_WINDING_RULE, GLU_TESS_BOUNDARY_ONLY,
and GLU_TESS_TOLERANCES. which, double[] Specifices an array into which the value of the named property is
written. value, int value_offset)gluGetTessProperty retrieves properties stored in a tessellation object. |
| public void | gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
|
| public void | gluLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)
|
| public final GLUquadric | |
| public final GLUquadric | |
| public final GLUquadric | |
| private final GLUquadric | |
| public static final GLUtessellator | Returns: A new tessellation object.gluNewTess creates and returns a new tessellation object. |
| public static final void | gluNextContour(GLUtessellator
Specifies the tessellation object (created with
tessellator, int gluNewTess).The type of the contour being defined. type)gluNextContour is used to describe polygons with multiple contours. |
| public void | |
| public void | |
| public final void | gluPartialDisk(GLUquadric quad, double inner, double outer, int slices, int loops, double start, double sweep)
Option (throws GLException if not available in profile). |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean | gluProject(float objX, float objY, float objZ, float[] model, int model_offset, float[] proj, int proj_offset, int[] view, int view_offset, float[] winPos, int winPos_offset)
Interface to C language function: Accepts the outgoing window coordinates as a single array. |
| public boolean | gluProject(float objX, float objY, float objZ, FloatBuffer model, FloatBuffer proj, IntBuffer view, FloatBuffer winPos)
Interface to C language function: Accepts the outgoing window coordinates as a single buffer. |
| public boolean | gluProject(double objX, double objY, double objZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, double[] winPos, int winPos_offset)
Interface to C language function: Accepts the outgoing window coordinates as a single array. |
| public final void | gluQuadricDrawStyle(GLUquadric quad, int draw)
Option (throws GLException if not available in profile). |
| public final void | gluQuadricNormals(GLUquadric quad, int normal)
Option (throws GLException if not available in profile). |
| public final void | gluQuadricOrientation(GLUquadric quad, int orientation)
Option (throws GLException if not available in profile). |
| public final void | gluQuadricTexture(GLUquadric quad, boolean texture)
Option (throws GLException if not available in profile). |
| public int | gluScaleImage(int format, int widthin, int heightin, int typein, Buffer datain, int widthout, int heightout, int typeout, Buffer dataout)
Optional, throws GLException if not available in profile |
| public final void | gluSphere(GLUquadric quad, double radius, int slices, int stacks)
Option (throws GLException if not available in profile). |
| public static final void | gluTessBeginContour(GLUtessellator
Specifies the tessellation object (created with
tessellator)gluNewTess).gluTessBeginContour and
|
| public static final void | gluTessBeginPolygon(GLUtessellator
Specifies the tessellation object (created with
tessellator, Object gluNewTess).Specifies a reference to user polygon data. data)gluTessBeginPolygon and
|
| public static final void | gluTessCallback(GLUtessellator
Specifies the tessellation object (created with
tessellator, int gluNewTess).Specifies the callback being defined. The following values are
valid: GLU_TESS_BEGIN, GLU_TESS_BEGIN_DATA,
GLU_TESS_EDGE_FLAG, GLU_TESS_EDGE_FLAG_DATA,
GLU_TESS_VERTEX, GLU_TESS_VERTEX_DATA,
GLU_TESS_END, GLU_TESS_END_DATA,
GLU_TESS_COMBINE, GLU_TESS_COMBINE_DATA,
GLU_TESS_ERROR, and GLU_TESS_ERROR_DATA. which, GLUtessellatorCallback Specifies the callback object to be called. aCallback)gluTessCallback is used to indicate a callback to be used by a tessellation object. |
| public static final void | gluTessEndContour(GLUtessellator
Specifies the tessellation object (created with
tessellator)gluNewTess).gluTessEndContour and
|
| public static final void | gluTessEndPolygon(GLUtessellator
Specifies the tessellation object (created with
tessellator)gluNewTess).gluTessEndPolygon and
|
| public static final void | gluTessNormal(GLUtessellator
Specifies the tessellation object (created by
tessellator, double gluNewTess).Specifies the first component of the normal. x, double Specifies the second component of the normal. y, double Specifies the third component of the normal. z)gluTessNormal describes a normal for a polygon that the program is defining. |
| public static final void | gluTessProperty(GLUtessellator
Specifies the tessellation object created with
tessellator, int gluNewTessSpecifies the property to be set. Valid values are
GLU_TESS_WINDING_RULE, GLU_TESS_BOUNDARDY_ONLY,
GLU_TESS_TOLERANCE. which, double Specifices the value of the indicated property. value)gluTessProperty is used to control properites stored in a tessellation object. |
| public static final void | gluTessVertex(GLUtessellator
Specifies the tessellation object (created with
tessellator, double[] gluNewTess).Specifies the coordinates of the vertex. coords, int coords_offset, Object Specifies an opaque reference passed back to the program with the
vertex callback (as specified by
data)gluTessCallback).gluTessVertex describes a vertex on a polygon that the program defines. |
| public boolean | gluUnProject(float winX, float winY, float winZ, float[] model, int model_offset, float[] proj, int proj_offset, int[] view, int view_offset, float[] objPos, int objPos_offset)
Interface to C language function: Accepts the outgoing object coordinates (a 3-vector) as a single array. |
| public boolean | gluUnProject(float winX, float winY, float winZ, FloatBuffer model, FloatBuffer proj, IntBuffer view, FloatBuffer objPos)
Interface to C language function: Accepts the outgoing object coordinates (a 3-vector) as a single buffer. |
| public boolean | gluUnProject(double winX, double winY, double winZ, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, double[] objPos, int objPos_offset)
Interface to C language function: Accepts the outgoing object coordinates (a 3-vector) as a single array. |
| public boolean | gluUnProject4(float winX, float winY, float winZ, float clipW, float[] model, int model_offset, float[] proj, int proj_offset, int[] view, int view_offset, float nearVal, float farVal, float[] objPos, int objPos_offset)
Interface to C language function: Accepts the outgoing object coordinates (a 4-vector) as a single array. |
| public boolean | gluUnProject4(float winX, float winY, float winZ, float clipW, FloatBuffer model, FloatBuffer proj, IntBuffer view, float nearVal, float farVal, FloatBuffer objPos)
Interface to C language function: Accepts the outgoing object coordinates (a 4-vector) as a single buffer. |
| public boolean | gluUnProject4(double winX, double winY, double winZ, double clipW, double[] model, int model_offset, double[] proj, int proj_offset, int[] view, int view_offset, double nearVal, double farVal, double[] objPos, int objPos_offset)
Interface to C language function: Accepts the outgoing object coordinates (a 4-vector) as a single array. |
| public boolean | isFunctionAvailable(String
the name of the OpenGL function (e.g., use
"gluNurbsCallbackDataEXT" to check if the gluFunctionName)
gluNurbsCallbackDataEXT(GLUnurbs, GLvoid) extension is available).Returns true if the specified GLU core- or extension-function can be successfully used through this GLU instance. |
| protected static final void | |
| protected static final void |