Top Fields Constructors Methods
com.jogamp.opengl.glu.gl2

public Class GLUgl2

extends GLU
Class Inheritance
Imports
jogamp.opengl.glu.nurbs.*, java.security.*, com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver, jogamp.opengl.glu.gl2.nurbs.*, jogamp.opengl.glu.mipmap.Mipmap, com.jogamp.opengl.GL2, com.jogamp.opengl.*, jogamp.opengl.gl2.ProjectDouble, com.jogamp.opengl.glu.*, com.jogamp.opengl.util.glsl.ShaderState, jogamp.opengl.*, .ProjectFloat, jogamp.opengl.glu.*, jogamp.opengl.glu.tessellator.GLUtessellatorImpl, com.jogamp.common.util.ReflectionUtil, com.jogamp.gluegen.runtime.*, com.jogamp.common.os.*, com.jogamp.common.nio.*, java.nio.*

Field Summary

Modifier and TypeField and Description
private static GLUgl2ProcAddressTable
private final ProjectDouble
private static boolean
Inherited from com.jogamp.opengl.glu.GLU:
availableGLUquadricImplavailableGLUtessellatorImplcheckedGLUquadricImplcheckedGLUtessellatorImplextensionStringGLU_BEGINGLU_CCWGLU_CWGLU_EDGE_FLAGGLU_ENDGLU_ERRORGLU_EXTENSIONSGLU_EXTERIORGLU_FALSEGLU_FILLGLU_FLATGLU_INSIDEGLU_INTERIORGLU_INVALID_ENUMGLU_INVALID_OPERATIONGLU_INVALID_VALUEGLU_LINEGLU_NONEGLU_OUT_OF_MEMORYGLU_OUTSIDEGLU_POINTGLU_SILHOUETTEGLU_SMOOTHGLU_TESS_AVOID_DEGENERATE_TRIANGLESGLU_TESS_BEGINGLU_TESS_BEGIN_DATAGLU_TESS_BOUNDARY_ONLYGLU_TESS_COMBINEGLU_TESS_COMBINE_DATAGLU_TESS_COORD_TOO_LARGEGLU_TESS_EDGE_FLAGGLU_TESS_EDGE_FLAG_DATAGLU_TESS_ENDGLU_TESS_END_DATAGLU_TESS_ERRORGLU_TESS_ERROR1GLU_TESS_ERROR2GLU_TESS_ERROR3GLU_TESS_ERROR4GLU_TESS_ERROR5GLU_TESS_ERROR6GLU_TESS_ERROR7GLU_TESS_ERROR8GLU_TESS_ERROR_DATAGLU_TESS_MAX_COORDGLU_TESS_MISSING_BEGIN_CONTOURGLU_TESS_MISSING_BEGIN_POLYGONGLU_TESS_MISSING_END_CONTOURGLU_TESS_MISSING_END_POLYGONGLU_TESS_NEED_COMBINE_CALLBACKGLU_TESS_TOLERANCEGLU_TESS_VERTEXGLU_TESS_VERTEX_DATAGLU_TESS_WINDING_ABS_GEQ_TWOGLU_TESS_WINDING_NEGATIVEGLU_TESS_WINDING_NONZEROGLU_TESS_WINDING_ODDGLU_TESS_WINDING_POSITIVEGLU_TESS_WINDING_RULEGLU_TRUEGLU_UNKNOWNGLU_VERSIONGLU_VERTEXsyncObjectversionString

Constructor Summary

AccessConstructor and Description
public
GLUgl2()

Instantiates a new OpenGL Utility Library object.

Method Summary

Modifier and TypeMethod and Description
private final ByteBuffer
private native int
dispatch_gluBuild1DMipmapLevelsC1(int target, int internalFormat, int width, int format, int type, int level, int base, int max, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild1DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluBuild1DMipmapsC1(int target, int internalFormat, int width, int format, int type, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild1DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluBuild2DMipmapLevelsC1(int target, int internalFormat, int width, int height, int format, int type, int level, int base, int max, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild2DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluBuild2DMipmapsC1(int target, int internalFormat, int width, int height, int format, int type, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild2DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluBuild3DMipmapLevelsC1(int target, int internalFormat, int width, int height, int depth, int format, int type, int level, int base, int max, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild3DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluBuild3DMipmapsC1(int target, int internalFormat, int width, int height, int depth, int format, int type, Object
a direct or array-backed java.nio.Buffer
data
,
int data_byte_offset, boolean data_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluBuild3DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private native int
dispatch_gluScaleImageC1(int format, int wIn, int hIn, int typeIn, Object
a direct or array-backed java.nio.Buffer
dataIn
,
int dataIn_byte_offset, boolean dataIn_is_direct, int wOut, int hOut, int typeOut, Object
a direct or array-backed java.nio.Buffer
dataOut
,
int dataOut_byte_offset, boolean dataOut_is_direct, long procAddress)

Entry point to C language function: GLint {@native gluScaleImage}(GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void * dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid * dataOut) Part of GLU_VERSION_1_X

public static final GL2
private static final GLUgl2ProcAddressTable
public final void
gluBeginCurve(GLUnurbs
GLUnurbs object to specify curve to
r
)

Begins a curve definition.

public final void
gluBeginSurface(GLUnurbs
GLUnurbs object to specify surface to
r
)

Begins a surface definition.

public final int
gluBuild1DMipmapLevels(int target, int internalFormat, int width, int format, int type, int level, int base, int max, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild1DMipmapLevels.

Interface to C language function: GLint gluBuild1DMipmapLevels(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data);
private int
gluBuild1DMipmapLevelsC(int target, int internalFormat, int width, int format, int type, int level, int base, int max, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild1DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild1DMipmapLevelsJava(int target, int internalFormat, int width, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)

public final int
gluBuild1DMipmaps(int target, int internalFormat, int width, int format, int type, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild1DMipmaps.

Interface to C language function: GLint gluBuild1DMipmaps(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void * data);
private int
gluBuild1DMipmapsC(int target, int internalFormat, int width, int format, int type, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild1DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild1DMipmapsJava(int target, int internalFormat, int width, int format, int type, Buffer data)

public final int
gluBuild2DMipmapLevels(int target, int internalFormat, int width, int height, int format, int type, int level, int base, int max, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild2DMipmapLevels.

Interface to C language function: GLint gluBuild2DMipmapLevels(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data);
private int
gluBuild2DMipmapLevelsC(int target, int internalFormat, int width, int height, int format, int type, int level, int base, int max, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild2DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild2DMipmapLevelsJava(int target, int internalFormat, int width, int height, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)

public final int
gluBuild2DMipmaps(int target, int internalFormat, int width, int height, int format, int type, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild2DMipmaps.

Interface to C language function: GLint gluBuild2DMipmaps(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * data);
private int
gluBuild2DMipmapsC(int target, int internalFormat, int width, int height, int format, int type, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild2DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild2DMipmapsJava(int target, int internalFormat, int width, int height, int format, int type, Buffer data)

public final int
gluBuild3DMipmapLevels(int target, int internalFormat, int width, int height, int depth, int format, int type, int level, int base, int max, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild3DMipmapLevels.

Interface to C language function: GLint gluBuild3DMipmapLevels(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data);
private int
gluBuild3DMipmapLevelsC(int target, int internalFormat, int width, int height, int depth, int format, int type, int level, int base, int max, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild3DMipmapLevels}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLint level, GLint base, GLint max, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild3DMipmapLevelsJava(int target, int internalFormat, int width, int height, int depth, int format, int type, int userLevel, int baseLevel, int maxLevel, Buffer data)

public final int
gluBuild3DMipmaps(int target, int internalFormat, int width, int height, int depth, int format, int type, Buffer data)

Overrides com.jogamp.opengl.glu.GLU.gluBuild3DMipmaps.

Interface to C language function: GLint gluBuild3DMipmaps(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data);
private int
gluBuild3DMipmapsC(int target, int internalFormat, int width, int height, int depth, int format, int type, Buffer
a direct or array-backed java.nio.Buffer
data
)

Entry point to C language function: GLint {@native gluBuild3DMipmaps}(GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * data) Part of GLU_VERSION_1_X

private final int
gluBuild3DMipmapsJava(int target, int internalFormat, int width, int height, int depth, int format, int type, Buffer data)

public final void
gluEndCurve(GLUnurbs
GLUnurbs object holding the curve
r
)

Ends a curve definition.

public final void
gluEndSurface(GLUnurbs
GLUnurbs object holding surface
r
)

Ends a surface.

public final void
gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)

Overrides com.jogamp.opengl.glu.GLU.gluLookAt.

public final void
gluLookAt(double eyeX, double eyeY, double eyeZ, double centerX, double centerY, double centerZ, double upX, double upY, double upZ)

Overrides com.jogamp.opengl.glu.GLU.gluLookAt.

public final GLUnurbs

Returns:

GLUnurbs object
gluNewNurbsRenderer
()

Creates a new GLUnurbs object.

public final void
gluNurbsCurve(GLUnurbs
GLUnurbs object holding the curve
r
,
int
number of knots
nknots
,
float[]
knot vector
knot
,
int
number of control point coordinates
stride
,
float[]
control points
ctlarray
,
int
order of the curve
order
,
int
curve type
type
)

Make a NURBS curve.

public final void
gluNurbsProperty(GLUnurbs
GLUnurbs object holding NURBS to which a property should be set
r
,
int
property id
property
,
float
property value
value
)

Sets a property on a NURBS object.

public final void
gluNurbsSurface(GLUnurbs
GLUnurbs object holding the surface
r
,
int
number of knots in s direction
sknot_count
,
float[]
knots in s direction
sknot
,
int
number of knots in t direction
tknot_count
,
float[]
knots in t direction
tknot
,
int
number of control points coordinates in s direction
s_stride
,
int
number of control points coordinates in t direction
t_stride
,
float[]
control points
ctlarray
,
int
order of surface in s direction
sorder
,
int
order of surface in t direction
torder
,
int
surface type
type
)

Makes a NURBS surface.

public final void
gluOrtho2D(float left, float right, float bottom, float top)

Overrides com.jogamp.opengl.glu.GLU.gluOrtho2D.

public final void
gluOrtho2D(double left, double right, double bottom, double top)

Overrides com.jogamp.opengl.glu.GLU.gluOrtho2D.

public final void
gluPerspective(float fovy, float aspect, float zNear, float zFar)

Overrides com.jogamp.opengl.glu.GLU.gluPerspective.

public final void
gluPerspective(double fovy, double aspect, double zNear, double zFar)

Overrides com.jogamp.opengl.glu.GLU.gluPerspective.

public final void
gluPickMatrix(double x, double y, double delX, double delY, int[] viewport, int viewport_offset)

Overrides com.jogamp.opengl.glu.GLU.gluPickMatrix.

public final void
gluPickMatrix(double x, double y, double delX, double delY, IntBuffer viewport)

Overrides com.jogamp.opengl.glu.GLU.gluPickMatrix.

public final 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)

Overrides com.jogamp.opengl.glu.GLU.gluProject.

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.

public final boolean
gluProject(double objX, double objY, double objZ, DoubleBuffer model, DoubleBuffer proj, IntBuffer view, DoubleBuffer 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.

public final int
gluScaleImage(int format, int wIn, int hIn, int typeIn, Buffer dataIn, int wOut, int hOut, int typeOut, Buffer dataOut)

Overrides com.jogamp.opengl.glu.GLU.gluScaleImage.

Interface to C language function: GLint gluScaleImage(GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void * dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid * dataOut);
private int
gluScaleImageC(int format, int wIn, int hIn, int typeIn, Buffer
a direct or array-backed java.nio.Buffer
dataIn
,
int wOut, int hOut, int typeOut, Buffer
a direct or array-backed java.nio.Buffer
dataOut
)

Entry point to C language function: GLint {@native gluScaleImage}(GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void * dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid * dataOut) Part of GLU_VERSION_1_X

private final int
gluScaleImageJava(int format, int widthin, int heightin, int typein, Buffer datain, int widthout, int heightout, int typeout, Buffer dataout)

public final 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)

Overrides com.jogamp.opengl.glu.GLU.gluUnProject.

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.

public final boolean
gluUnProject(double winX, double winY, double winZ, DoubleBuffer model, DoubleBuffer proj, IntBuffer view, DoubleBuffer 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.

public final 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)

Overrides com.jogamp.opengl.glu.GLU.gluUnProject4.

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.

public final boolean
gluUnProject4(double winX, double winY, double winZ, double clipW, DoubleBuffer model, DoubleBuffer proj, IntBuffer view, double nearVal, double farVal, DoubleBuffer 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.

public final boolean
isFunctionAvailable(String
the name of the OpenGL function (e.g., use "gluNurbsCallbackDataEXT" to check if the gluNurbsCallbackDataEXT(GLUnurbs, GLvoid) extension is available).
gluFunctionName
)

Overrides com.jogamp.opengl.glu.GLU.isFunctionAvailable.

Returns true if the specified GLU core- or extension-function can be successfully used through this GLU instance.
Inherited from com.jogamp.opengl.glu.GLU:
createGLUcreateGLUgetCurrentGLgluBeginPolygongluCheckExtensiongluCylindergluDeleteQuadricgluDeleteTessgluDiskgluEndPolygongluErrorStringgluGetStringgluGetTessPropertygluNewQuadricgluNewQuadricgluNewQuadricgluNewTessgluNextContourgluPartialDiskgluPickMatrixgluPickMatrixgluProjectgluProjectgluQuadricDrawStylegluQuadricNormalsgluQuadricOrientationgluQuadricTexturegluSpheregluTessBeginContourgluTessBeginPolygongluTessCallbackgluTessEndContourgluTessEndPolygongluTessNormalgluTessPropertygluTessVertexgluUnProjectgluUnProjectgluUnProject4gluUnProject4validateGLUquadricImplvalidateGLUtessellatorImpl