|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Provides access to the OpenGL Utility Library (GLU). More...
Public Member Functions | |
| boolean | isFunctionAvailable (String gluFunctionName) |
| Returns true if the specified GLU core- or extension-function can be successfully used through this GLU instance. More... | |
| GLU () | |
| final String | gluErrorString (int errorCode) |
| final boolean | gluCheckExtension (java.lang.String extName, java.lang.String extString) |
| final String | gluGetString (int name) |
| final void | gluCylinder (GLUquadric quad, double base, double top, double height, int slices, int stacks) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluDeleteQuadric (GLUquadric quad) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluDisk (GLUquadric quad, double inner, double outer, int slices, int loops) |
| Option (throws GLException if not available in profile). More... | |
| final GLUquadric | gluNewQuadric () |
| Option (throws GLException if not available in profile). More... | |
| final GLUquadric | gluNewQuadric (boolean useGLSL, ShaderState st) |
| final GLUquadric | gluNewQuadric (boolean useGLSL, int shaderProgram) |
| 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). More... | |
| final void | gluQuadricDrawStyle (GLUquadric quad, int draw) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluQuadricNormals (GLUquadric quad, int normal) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluQuadricOrientation (GLUquadric quad, int orientation) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluQuadricTexture (GLUquadric quad, boolean texture) |
| Option (throws GLException if not available in profile). More... | |
| final void | gluSphere (GLUquadric quad, double radius, int slices, int stacks) |
| Option (throws GLException if not available in profile). More... | |
| void | gluOrtho2D (float left, float right, float bottom, float top) |
| void | gluPerspective (float fovy, float aspect, float zNear, float zFar) |
| void | gluLookAt (float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) |
| 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: GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * winX, GLdouble * winY, GLdouble * winZ); More... | |
| boolean | gluProject (float objX, float objY, float objZ, java.nio.FloatBuffer model, java.nio.FloatBuffer proj, java.nio.IntBuffer view, java.nio.FloatBuffer winPos) |
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); More... | |
| 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: GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * objX, GLdouble * objY, GLdouble * objZ); More... | |
| boolean | gluUnProject (float winX, float winY, float winZ, java.nio.FloatBuffer model, java.nio.FloatBuffer proj, java.nio.IntBuffer view, java.nio.FloatBuffer objPos) |
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); More... | |
| 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: 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); More... | |
| boolean | gluUnProject4 (float winX, float winY, float winZ, float clipW, java.nio.FloatBuffer model, java.nio.FloatBuffer proj, java.nio.IntBuffer view, float nearVal, float farVal, java.nio.FloatBuffer 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); More... | |
| void | gluPickMatrix (float x, float y, float delX, float delY, int[] viewport, int viewport_offset) |
| void | gluPickMatrix (float x, float y, float delX, float delY, java.nio.IntBuffer viewport) |
| void | gluOrtho2D (double left, double right, double bottom, double top) |
| void | gluPerspective (double fovy, double aspect, double zNear, double zFar) |
| void | gluLookAt (double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ) |
| 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: GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * winX, GLdouble * winY, GLdouble * winZ); More... | |
| 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: GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * objX, GLdouble * objY, GLdouble * objZ); More... | |
| 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: 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); More... | |
| void | gluPickMatrix (double x, double y, double delX, double delY, int[] viewport, int viewport_offset) |
| void | gluPickMatrix (double x, double y, double delX, double delY, IntBuffer viewport) |
| int | gluScaleImage (int format, int widthin, int heightin, int typein, java.nio.Buffer datain, int widthout, int heightout, int typeout, java.nio.Buffer dataout) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild1DMipmapLevels (int target, int internalFormat, int width, int format, int type, int userLevel, int baseLevel, int maxLevel, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild1DMipmaps (int target, int internalFormat, int width, int format, int type, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild2DMipmapLevels (int target, int internalFormat, int width, int height, int format, int type, int userLevel, int baseLevel, int maxLevel, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild2DMipmaps (int target, int internalFormat, int width, int height, int format, int type, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild3DMipmapLevels (int target, int internalFormat, int width, int height, int depth, int format, int type, int userLevel, int baseLevel, int maxLevel, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
| int | gluBuild3DMipmaps (int target, int internalFormat, int width, int height, int depth, int format, int type, java.nio.Buffer data) |
| Optional, throws GLException if not available in profile. More... | |
Static Public Member Functions | |
| static final GLU | createGLU () throws GLException |
| Instantiates a GLU implementation object in respect to the given GL profile of this thread current GL. More... | |
| static final GLU | createGLU (GL gl) throws GLException |
| Instantiates a GLU implementation object in respect to the given GL profile of the given GL. More... | |
| static final GL | getCurrentGL () throws GLException |
| static final GLUtessellator | gluNewTess () |
| static final void | gluDeleteTess (GLUtessellator tessellator) |
| static final void | gluTessProperty (GLUtessellator tessellator, int which, double value) |
| static final void | gluGetTessProperty (GLUtessellator tessellator, int which, double[] value, int value_offset) |
| static final void | gluTessNormal (GLUtessellator tessellator, double x, double y, double z) |
| static final void | gluTessCallback (GLUtessellator tessellator, int which, GLUtessellatorCallback aCallback) |
| static final void | gluTessVertex (GLUtessellator tessellator, double[] coords, int coords_offset, Object data) |
| static final void | gluTessBeginPolygon (GLUtessellator tessellator, Object data) |
| static final void | gluTessBeginContour (GLUtessellator tessellator) |
| static final void | gluTessEndContour (GLUtessellator tessellator) |
| static final void | gluTessEndPolygon (GLUtessellator tessellator) |
| static final void | gluBeginPolygon (GLUtessellator tessellator) |
| static final void | gluNextContour (GLUtessellator tessellator, int type) |
| static final void | gluEndPolygon (GLUtessellator tessellator) |
Static Public Attributes | |
| static final int | GLU_FALSE = 0 |
| static final int | GLU_TRUE = 1 |
| static final int | GLU_VERSION = 100800 |
| static final int | GLU_EXTENSIONS = 100801 |
| static final String | versionString = "1.3" |
| static final String | extensionString |
| static final int | GLU_INVALID_ENUM = 100900 |
| static final int | GLU_INVALID_VALUE = 100901 |
| static final int | GLU_OUT_OF_MEMORY = 100902 |
| static final int | GLU_INVALID_OPERATION = 100904 |
| static final int | GLU_POINT = 100010 |
| static final int | GLU_LINE = 100011 |
| static final int | GLU_FILL = 100012 |
| static final int | GLU_SILHOUETTE = 100013 |
| static final int | GLU_SMOOTH = 100000 |
| static final int | GLU_FLAT = 100001 |
| static final int | GLU_NONE = 100002 |
| static final int | GLU_OUTSIDE = 100020 |
| static final int | GLU_INSIDE = 100021 |
| static final int | GLU_ERROR = 100103 |
| static final int | GLU_TESS_BEGIN = 100100 |
| static final int | GLU_BEGIN = 100100 |
| static final int | GLU_TESS_VERTEX = 100101 |
| static final int | GLU_VERTEX = 100101 |
| static final int | GLU_TESS_END = 100102 |
| static final int | GLU_END = 100102 |
| static final int | GLU_TESS_ERROR = 100103 |
| static final int | GLU_TESS_EDGE_FLAG = 100104 |
| static final int | GLU_EDGE_FLAG = 100104 |
| static final int | GLU_TESS_COMBINE = 100105 |
| static final int | GLU_TESS_BEGIN_DATA = 100106 |
| static final int | GLU_TESS_VERTEX_DATA = 100107 |
| static final int | GLU_TESS_END_DATA = 100108 |
| static final int | GLU_TESS_ERROR_DATA = 100109 |
| static final int | GLU_TESS_EDGE_FLAG_DATA = 100110 |
| static final int | GLU_TESS_COMBINE_DATA = 100111 |
| static final int | GLU_CW = 100120 |
| static final int | GLU_CCW = 100121 |
| static final int | GLU_INTERIOR = 100122 |
| static final int | GLU_EXTERIOR = 100123 |
| static final int | GLU_UNKNOWN = 100124 |
| static final int | GLU_TESS_WINDING_RULE = 100140 |
| static final int | GLU_TESS_BOUNDARY_ONLY = 100141 |
| static final int | GLU_TESS_TOLERANCE = 100142 |
| static final int | GLU_TESS_AVOID_DEGENERATE_TRIANGLES = 100149 |
| static final int | GLU_TESS_ERROR1 = 100151 |
| static final int | GLU_TESS_ERROR2 = 100152 |
| static final int | GLU_TESS_ERROR3 = 100153 |
| static final int | GLU_TESS_ERROR4 = 100154 |
| static final int | GLU_TESS_ERROR5 = 100155 |
| static final int | GLU_TESS_ERROR6 = 100156 |
| static final int | GLU_TESS_ERROR7 = 100157 |
| static final int | GLU_TESS_ERROR8 = 100158 |
| static final int | GLU_TESS_MISSING_BEGIN_POLYGON = 100151 |
| static final int | GLU_TESS_MISSING_BEGIN_CONTOUR = 100152 |
| static final int | GLU_TESS_MISSING_END_POLYGON = 100153 |
| static final int | GLU_TESS_MISSING_END_CONTOUR = 100154 |
| static final int | GLU_TESS_COORD_TOO_LARGE = 100155 |
| static final int | GLU_TESS_NEED_COMBINE_CALLBACK = 100156 |
| static final int | GLU_TESS_WINDING_ODD = 100130 |
| static final int | GLU_TESS_WINDING_NONZERO = 100131 |
| static final int | GLU_TESS_WINDING_POSITIVE = 100132 |
| static final int | GLU_TESS_WINDING_NEGATIVE = 100133 |
| static final int | GLU_TESS_WINDING_ABS_GEQ_TWO = 100134 |
| static final double | GLU_TESS_MAX_COORD = 1.0e150 |
Static Protected Member Functions | |
| static final void | validateGLUtessellatorImpl () |
| static final void | validateGLUquadricImpl () |
| Optional, throws GLException if not available in profile. More... | |
Static Protected Attributes | |
| static boolean | availableGLUtessellatorImpl = false |
| static boolean | checkedGLUtessellatorImpl = false |
| static boolean | availableGLUquadricImpl = false |
| static boolean | checkedGLUquadricImpl = false |
| static volatile Object | syncObject = new Object() |
Provides access to the OpenGL Utility Library (GLU).
This library provides standard methods for setting up view volumes, building mipmaps and performing other common operations. The GLU NURBS routines are not currently exposed.
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.
|
static |
|
static |
|
static |
|
static |
| int com.jogamp.opengl.glu.GLU.gluBuild1DMipmapLevels | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | format, | ||
| int | type, | ||
| int | userLevel, | ||
| int | baseLevel, | ||
| int | maxLevel, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
| int com.jogamp.opengl.glu.GLU.gluBuild1DMipmaps | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | format, | ||
| int | type, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
| int com.jogamp.opengl.glu.GLU.gluBuild2DMipmapLevels | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | height, | ||
| int | format, | ||
| int | type, | ||
| int | userLevel, | ||
| int | baseLevel, | ||
| int | maxLevel, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
| int com.jogamp.opengl.glu.GLU.gluBuild2DMipmaps | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | height, | ||
| int | format, | ||
| int | type, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
Definition at line 1525 of file GLU.java.
| int com.jogamp.opengl.glu.GLU.gluBuild3DMipmapLevels | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | height, | ||
| int | depth, | ||
| int | format, | ||
| int | type, | ||
| int | userLevel, | ||
| int | baseLevel, | ||
| int | maxLevel, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
| int com.jogamp.opengl.glu.GLU.gluBuild3DMipmaps | ( | int | target, |
| int | internalFormat, | ||
| int | width, | ||
| int | height, | ||
| int | depth, | ||
| int | format, | ||
| int | type, | ||
| java.nio.Buffer | data | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2, and com.jogamp.opengl.glu.gl2es1.GLUgl2es1.
| final boolean com.jogamp.opengl.glu.GLU.gluCheckExtension | ( | java.lang.String | extName, |
| java.lang.String | extString | ||
| ) |
| final void com.jogamp.opengl.glu.GLU.gluCylinder | ( | GLUquadric | quad, |
| double | base, | ||
| double | top, | ||
| double | height, | ||
| int | slices, | ||
| int | stacks | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluCylinder(GLUquadric * quad, GLdouble base, GLdouble top, GLdouble height, GLint slices, GLint stacks);
Definition at line 1278 of file GLU.java.
| final void com.jogamp.opengl.glu.GLU.gluDeleteQuadric | ( | GLUquadric | quad | ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluDeleteQuadric(GLUquadric * quad);
Definition at line 1284 of file GLU.java.
|
static |
| final void com.jogamp.opengl.glu.GLU.gluDisk | ( | GLUquadric | quad, |
| double | inner, | ||
| double | outer, | ||
| int | slices, | ||
| int | loops | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluDisk(GLUquadric * quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops);
Definition at line 1289 of file GLU.java.
|
static |
| final String com.jogamp.opengl.glu.GLU.gluErrorString | ( | int | errorCode | ) |
| final String com.jogamp.opengl.glu.GLU.gluGetString | ( | int | name | ) |
|
static |
| void com.jogamp.opengl.glu.GLU.gluLookAt | ( | double | eyeX, |
| double | eyeY, | ||
| double | eyeZ, | ||
| double | centerX, | ||
| double | centerY, | ||
| double | centerZ, | ||
| double | upX, | ||
| double | upY, | ||
| double | upZ | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1428 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluLookAt | ( | float | eyeX, |
| float | eyeY, | ||
| float | eyeZ, | ||
| float | centerX, | ||
| float | centerY, | ||
| float | centerZ, | ||
| float | upX, | ||
| float | upY, | ||
| float | upZ | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1366 of file GLU.java.
| final GLUquadric com.jogamp.opengl.glu.GLU.gluNewQuadric | ( | ) |
Option (throws GLException if not available in profile).
Interface to C language function:
GLUquadric * gluNewQuadric(void);
Definition at line 1295 of file GLU.java.
| final GLUquadric com.jogamp.opengl.glu.GLU.gluNewQuadric | ( | boolean | useGLSL, |
| int | shaderProgram | ||
| ) |
| final GLUquadric com.jogamp.opengl.glu.GLU.gluNewQuadric | ( | boolean | useGLSL, |
| ShaderState | st | ||
| ) |
|
static |
|
static |
| void com.jogamp.opengl.glu.GLU.gluOrtho2D | ( | double | left, |
| double | right, | ||
| double | bottom, | ||
| double | top | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1420 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluOrtho2D | ( | float | left, |
| float | right, | ||
| float | bottom, | ||
| float | top | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1358 of file GLU.java.
| final void com.jogamp.opengl.glu.GLU.gluPartialDisk | ( | GLUquadric | quad, |
| double | inner, | ||
| double | outer, | ||
| int | slices, | ||
| int | loops, | ||
| double | start, | ||
| double | sweep | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluPartialDisk(GLUquadric * quad, GLdouble inner, GLdouble outer, GLint slices, GLint loops, GLdouble start, GLdouble sweep);
Definition at line 1317 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluPerspective | ( | double | fovy, |
| double | aspect, | ||
| double | zNear, | ||
| double | zFar | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1424 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluPerspective | ( | float | fovy, |
| float | aspect, | ||
| float | zNear, | ||
| float | zFar | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1362 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluPickMatrix | ( | double | x, |
| double | y, | ||
| double | delX, | ||
| double | delY, | ||
| int[] | viewport, | ||
| int | viewport_offset | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1480 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluPickMatrix | ( | double | x, |
| double | y, | ||
| double | delX, | ||
| double | delY, | ||
| IntBuffer | viewport | ||
| ) |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
Definition at line 1484 of file GLU.java.
| void com.jogamp.opengl.glu.GLU.gluPickMatrix | ( | float | x, |
| float | y, | ||
| float | delX, | ||
| float | delY, | ||
| int[] | viewport, | ||
| int | viewport_offset | ||
| ) |
| void com.jogamp.opengl.glu.GLU.gluPickMatrix | ( | float | x, |
| float | y, | ||
| float | delX, | ||
| float | delY, | ||
| java.nio.IntBuffer | viewport | ||
| ) |
| boolean com.jogamp.opengl.glu.GLU.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:
GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * winX, GLdouble * winY, GLdouble * winZ);
Accepts the outgoing window coordinates as a single array.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
| boolean com.jogamp.opengl.glu.GLU.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:
GLint gluProject(GLdouble objX, GLdouble objY, GLdouble objZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * winX, GLdouble * winY, GLdouble * winZ);
Accepts the outgoing window coordinates as a single array.
Definition at line 1373 of file GLU.java.
| boolean com.jogamp.opengl.glu.GLU.gluProject | ( | float | objX, |
| float | objY, | ||
| float | objZ, | ||
| java.nio.FloatBuffer | model, | ||
| java.nio.FloatBuffer | proj, | ||
| java.nio.IntBuffer | view, | ||
| java.nio.FloatBuffer | winPos | ||
| ) |
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);
Accepts the outgoing window coordinates as a single buffer.
| final void com.jogamp.opengl.glu.GLU.gluQuadricDrawStyle | ( | GLUquadric | quad, |
| int | draw | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluQuadricDrawStyle(GLUquadric * quad, GLenum draw);
Definition at line 1323 of file GLU.java.
| final void com.jogamp.opengl.glu.GLU.gluQuadricNormals | ( | GLUquadric | quad, |
| int | normal | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluQuadricNormals(GLUquadric * quad, GLenum normal);
Definition at line 1329 of file GLU.java.
| final void com.jogamp.opengl.glu.GLU.gluQuadricOrientation | ( | GLUquadric | quad, |
| int | orientation | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluQuadricOrientation(GLUquadric * quad, GLenum orientation);
Definition at line 1335 of file GLU.java.
| final void com.jogamp.opengl.glu.GLU.gluQuadricTexture | ( | GLUquadric | quad, |
| boolean | texture | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluQuadricTexture(GLUquadric * quad, GLboolean texture);
Definition at line 1341 of file GLU.java.
| int com.jogamp.opengl.glu.GLU.gluScaleImage | ( | int | format, |
| int | widthin, | ||
| int | heightin, | ||
| int | typein, | ||
| java.nio.Buffer | datain, | ||
| int | widthout, | ||
| int | heightout, | ||
| int | typeout, | ||
| java.nio.Buffer | dataout | ||
| ) |
Optional, throws GLException if not available in profile.
Reimplemented in com.jogamp.opengl.glu.gl2es1.GLUgl2es1, and com.jogamp.opengl.glu.gl2.GLUgl2.
| final void com.jogamp.opengl.glu.GLU.gluSphere | ( | GLUquadric | quad, |
| double | radius, | ||
| int | slices, | ||
| int | stacks | ||
| ) |
Option (throws GLException if not available in profile).
Interface to C language function:
void gluSphere(GLUquadric * quad, GLdouble radius, GLint slices, GLint stacks);
Definition at line 1347 of file GLU.java.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| boolean com.jogamp.opengl.glu.GLU.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:
GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * objX, GLdouble * objY, GLdouble * objZ);
Accepts the outgoing object coordinates (a 3-vector) as a single array.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
| boolean com.jogamp.opengl.glu.GLU.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:
GLint gluUnProject(GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble * model, const GLdouble * proj, const GLint * view, GLdouble * objX, GLdouble * objY, GLdouble * objZ);
Accepts the outgoing object coordinates (a 3-vector) as a single array.
Definition at line 1387 of file GLU.java.
| boolean com.jogamp.opengl.glu.GLU.gluUnProject | ( | float | winX, |
| float | winY, | ||
| float | winZ, | ||
| java.nio.FloatBuffer | model, | ||
| java.nio.FloatBuffer | proj, | ||
| java.nio.IntBuffer | view, | ||
| java.nio.FloatBuffer | objPos | ||
| ) |
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);
Accepts the outgoing object coordinates (a 3-vector) as a single buffer.
| boolean com.jogamp.opengl.glu.GLU.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:
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);
Accepts the outgoing object coordinates (a 4-vector) as a single array.
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
| boolean com.jogamp.opengl.glu.GLU.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:
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);
Accepts the outgoing object coordinates (a 4-vector) as a single array.
| boolean com.jogamp.opengl.glu.GLU.gluUnProject4 | ( | float | winX, |
| float | winY, | ||
| float | winZ, | ||
| float | clipW, | ||
| java.nio.FloatBuffer | model, | ||
| java.nio.FloatBuffer | proj, | ||
| java.nio.IntBuffer | view, | ||
| float | nearVal, | ||
| float | farVal, | ||
| java.nio.FloatBuffer | 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);
Accepts the outgoing object coordinates (a 4-vector) as a single buffer.
| boolean com.jogamp.opengl.glu.GLU.isFunctionAvailable | ( | String | gluFunctionName | ) |
Returns true if the specified GLU core- or extension-function can be successfully used through this GLU instance.
By "successfully" we mean that the function is both callable on the machine running the program and available on the current display.
A GLU function is callable if it is a GLU core- or extension-function that is supported by the underlying GLU implementation. The function is available if the OpenGL implementation on the display meets the requirements of the GLU function being called (because GLU functions utilize OpenGL functions).
Whether or not a GLU function is callable is determined as follows:
If the function is a GLU core function (i.e., not an extension), gluGetString(GLU_VERSION) is used to determine the version number of the underlying GLU implementation on the host. then the function name is cross-referenced with that specification to see if it is part of that version's specification.
gluGetString(GLU_EXTENSIONS) to see if the function is one of the extensions that is supported by the underlying GLU implementation. Whether or not a GLU function is available is determined as follows:
If the function is a GLU core function then the function is first cross-referenced with the GLU specifications to find the minimum GLU version required to call that GLU function. Then the following table is consulted to determine the minimum GL version required for that version of GLU:
Finally, glGetString(GL_VERSION) is used to determine the highest OpenGL version that both host and display support, and from that it is possible to determine if the GL facilities required by the GLU function are available on the display.
gluGetString(GLU_EXTENSIONS) to see if the function is one of the extensions that is supported by the underlying GLU implementation. NOTE:The availability of a function may change at runtime in response to changes in the display environment. For example, when a window is dragged from one display to another on a multi-display system, or when the properties of the display device are modified (e.g., changing the color depth of the display). Any application that is concerned with handling these situations correctly should confirm availability after a display change before calling a questionable OpenGL function. To detect a change in the display device, please see GLEventListener#displayChanged(GLAutoDrawable,boolean,boolean).
| gluFunctionName | the name of the OpenGL function (e.g., use "gluNurbsCallbackDataEXT" to check if the gluNurbsCallbackDataEXT(GLUnurbs, GLvoid) extension is available). |
Reimplemented in com.jogamp.opengl.glu.gl2.GLUgl2.
|
staticprotected |
Optional, throws GLException if not available in profile.
Definition at line 1262 of file GLU.java.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprotected |
|
static |