com.hermetica.magician
Interface GLU

All Known Implementing Classes:
CoreGLU, ErrorGLU, ProfileGLU, TemplateGLU, TraceGLU

public abstract interface GLU
extends GLUConstants

Encapsulation of the routines supplied by the GLU ( utility ) toolkit, including high-level view frustum operations and quadric manipulation

Version:
$Id: GLU.java.stub,v 1.2 1999/06/03 23:11:48 descarte Exp $
Author:
Alligator Descartes <descarte@hermetica.com>

Field Summary
static int SUMMARY
          Summary operating mode for any implementations of this interface
static int VERBOSE
          Verbose operating mode for any implementations of this interface
static java.lang.String VERSION
          Version information
 
Fields inherited from class com.hermetica.magician.GLUConstants
GLU_AUTO_LOAD_MATRIX, GLU_BEGIN, GLU_CCW, GLU_CULLING, GLU_CW, GLU_DISPLAY_MODE, GLU_DOMAIN_DISTANCE, GLU_EDGE_FLAG, GLU_END, GLU_ERROR, GLU_EXTENSIONS, GLU_EXTERIOR, GLU_FALSE, GLU_FILL, GLU_FLAT, GLU_INCOMPATIBLE_GL_VERSION, GLU_INSIDE, GLU_INTERIOR, GLU_INVALID_ENUM, GLU_INVALID_OPERATION, GLU_INVALID_VALUE, GLU_LINE, GLU_MAP1_TRIM_2, GLU_MAP1_TRIM_3, GLU_NONE, GLU_NURBS_BEGIN_DATA_EXT, GLU_NURBS_BEGIN_EXT, GLU_NURBS_COLOR_DATA_EXT, GLU_NURBS_COLOR_EXT, GLU_NURBS_END_DATA_EXT, GLU_NURBS_END_EXT, GLU_NURBS_ERROR1, GLU_NURBS_ERROR10, GLU_NURBS_ERROR11, GLU_NURBS_ERROR12, GLU_NURBS_ERROR13, GLU_NURBS_ERROR14, GLU_NURBS_ERROR15, GLU_NURBS_ERROR16, GLU_NURBS_ERROR17, GLU_NURBS_ERROR18, GLU_NURBS_ERROR19, GLU_NURBS_ERROR2, GLU_NURBS_ERROR20, GLU_NURBS_ERROR21, GLU_NURBS_ERROR22, GLU_NURBS_ERROR23, GLU_NURBS_ERROR24, GLU_NURBS_ERROR25, GLU_NURBS_ERROR26, GLU_NURBS_ERROR27, GLU_NURBS_ERROR28, GLU_NURBS_ERROR29, GLU_NURBS_ERROR3, GLU_NURBS_ERROR30, GLU_NURBS_ERROR31, GLU_NURBS_ERROR32, GLU_NURBS_ERROR33, GLU_NURBS_ERROR34, GLU_NURBS_ERROR35, GLU_NURBS_ERROR36, GLU_NURBS_ERROR37, GLU_NURBS_ERROR4, GLU_NURBS_ERROR5, GLU_NURBS_ERROR6, GLU_NURBS_ERROR7, GLU_NURBS_ERROR8, GLU_NURBS_ERROR9, GLU_NURBS_MODE_EXT, GLU_NURBS_NORMAL_DATA_EXT, GLU_NURBS_NORMAL_EXT, GLU_NURBS_RENDERER_EXT, GLU_NURBS_TESSELLATOR_EXT, GLU_NURBS_TEX_COORD_DATA_EXT, GLU_NURBS_TEX_COORD_EXT, GLU_NURBS_VERTEX_DATA_EXT, GLU_NURBS_VERTEX_EXT, GLU_OBJECT_PARAMETRIC_ERROR_EXT, GLU_OBJECT_PATH_LENGTH_EXT, GLU_OUT_OF_MEMORY, GLU_OUTLINE_PATCH, GLU_OUTLINE_POLYGON, GLU_OUTSIDE, GLU_PARAMETRIC_ERROR, GLU_PARAMETRIC_TOLERANCE, GLU_PATH_LENGTH, GLU_POINT, GLU_SAMPLING_METHOD, GLU_SAMPLING_TOLERANCE, GLU_SILHOUETTE, GLU_SMOOTH, GLU_TESS_BEGIN, GLU_TESS_BEGIN_DATA, GLU_TESS_BOUNDARY_ONLY, GLU_TESS_COMBINE, GLU_TESS_COMBINE_DATA, GLU_TESS_COORD_TOO_LARGE, GLU_TESS_EDGE_FLAG, GLU_TESS_EDGE_FLAG_DATA, GLU_TESS_END, GLU_TESS_END_DATA, GLU_TESS_ERROR, GLU_TESS_ERROR_DATA, GLU_TESS_ERROR1, GLU_TESS_ERROR2, GLU_TESS_ERROR3, GLU_TESS_ERROR4, GLU_TESS_ERROR5, GLU_TESS_ERROR6, GLU_TESS_ERROR7, GLU_TESS_ERROR8, GLU_TESS_MISSING_BEGIN_CONTOUR, GLU_TESS_MISSING_BEGIN_POLYGON, GLU_TESS_MISSING_END_CONTOUR, GLU_TESS_MISSING_END_POLYGON, GLU_TESS_NEED_COMBINE_CALLBACK, GLU_TESS_TOLERANCE, GLU_TESS_VERTEX, GLU_TESS_VERTEX_DATA, GLU_TESS_WINDING_ABS_GEQ_TWO, GLU_TESS_WINDING_NEGATIVE, GLU_TESS_WINDING_NONZERO, GLU_TESS_WINDING_ODD, GLU_TESS_WINDING_POSITIVE, GLU_TESS_WINDING_RULE, GLU_TRUE, GLU_U_STEP, GLU_UNKNOWN, GLU_V_STEP, GLU_VERSION, GLU_VERTEX
 
Method Summary
 void beginCurve(GLUNurbs nurb)
          Signifies the beginning of a NURBS curve
 void beginPolygon(GLUTesselator tesselator)
          Specifies the beginning of a polygon definition
 void beginSurface(GLUNurbs nurb)
          Signifies the beginning of a NURBS surface definition
 void beginTrim(GLUNurbs nurb)
          Signifies the beginning of a trim curve
 int build1DMipmaps(int target, int components, int width, int format, int type, byte[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int build1DMipmaps(int target, int components, int width, int format, int type, float[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int build1DMipmaps(int target, int components, int width, int format, int type, int[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int build1DMipmaps(int target, int components, int width, int format, int type, short[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, byte[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, byte[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, float[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, float[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, int[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, int[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, short[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int build2DMipmaps(int target, int components, int width, int height, int format, int type, short[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 void cylinder(GLUQuadric quadric, double baseRadius, double topRadius, double height, int slices, int stacks)
          Creates a cylinder via a Quadric object
 void deleteNurbsRenderer(GLUNurbs nurb)
          Destroys a NURBS object
 void deleteQuadric(GLUQuadric quadric)
          Destroys a quadric object
 void deleteTess(GLUTesselator tesselator)
          Destroys the given GLUTesselator object
 void disk(GLUQuadric quadric, double innerRadius, double outerRadius, int slices, int rings)
          Creates a disk via a Quadric object
 void endCurve(GLUNurbs nurb)
          Signifies the end of a NURBS curve definition
 void endPolygon(GLUTesselator tesselator)
          Specifies the end of a polygon definition
 void endSurface(GLUNurbs nurb)
          Signifies the end of a NURBS surface definition
 void endTrim(GLUNurbs nurb)
          Signifies the end of a trim curve definition
 java.lang.String errorString(int errorCode)
          Returns a descriptive, printable string pertaining to the supplied error code.
 int getMode()
          Returns the operating mode for this implementation of this interface
 float getNurbsProperty(GLUNurbs nurb, int property)
          Queries a NURBS object for the given property value
 GLU getParent()
          Returns the parent interface
 java.lang.String getString(int name)
          Returns information about the desired aspect of the OpenGL implementation.
 double getTessProperty(GLUTesselator tesselator, int property)
          Returns the current value of the given tesselation property for the given tesselation object
 void gluBeginCurve(GLUNurbs nurb)
          Signifies the beginning of a NURBS curve
 void gluBeginPolygon(GLUTesselator tesselator)
          Specifies the beginning of a polygon definition
 void gluBeginSurface(GLUNurbs nurb)
          Signifies the beginning of a NURBS surface definition
 void gluBeginTrim(GLUNurbs nurb)
          Signifies the beginning of a trim curve
 int gluBuild1DMipmaps(int target, int components, int width, int format, int type, byte[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int gluBuild1DMipmaps(int target, int components, int width, int format, int type, float[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int gluBuild1DMipmaps(int target, int components, int width, int format, int type, int[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int gluBuild1DMipmaps(int target, int components, int width, int format, int type, short[] data)
          Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, byte[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, byte[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, float[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, float[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, int[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, int[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, short[] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 int gluBuild2DMipmaps(int target, int components, int width, int height, int format, int type, short[][][] data)
          Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.
 void gluCylinder(GLUQuadric quadric, double baseRadius, double topRadius, double height, int slices, int stacks)
          Creates a cylinder via a Quadric object
 void gluDeleteNurbsRenderer(GLUNurbs nurb)
          Destroys a NURBS object
 void gluDeleteQuadric(GLUQuadric quadric)
          Destroys a quadric object
 void gluDeleteTess(GLUTesselator tesselator)
          Destroys the given GLUTesselator object
 void gluDisk(GLUQuadric quadric, double innerRadius, double outerRadius, int slices, int rings)
          Creates a disk via a Quadric object
 void gluEndCurve(GLUNurbs nurb)
          Signifies the end of a NURBS curve definition
 void gluEndPolygon(GLUTesselator tesselator)
          Specifies the end of a polygon definition
 void gluEndSurface(GLUNurbs nurb)
          Signifies the end of a NURBS surface definition
 void gluEndTrim(GLUNurbs nurb)
          Signifies the end of a trim curve definition
 java.lang.String gluErrorString(int errorCode)
          Returns a descriptive, printable string pertaining to the supplied error code.
 float gluGetNurbsProperty(GLUNurbs nurb, int property)
          Queries a NURBS object for the given property value
 java.lang.String gluGetString(int name)
          Returns information about the desired aspect of the OpenGL implementation.
 double gluGetTessProperty(GLUTesselator tesselator, int property)
          Returns the current value of the given tesselation property for the given tesselation object
 void gluLoadSamplingMatrices(GLUNurbs nurb, float[] modelMatrix, float[] projMatrix, int[] viewport)
          Loads sampling matrices for NURBS manipulation
 void gluLookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz)
          Defines a viewing matrix and multiples it to the right of the current matrix
 GLUNurbs gluNewNurbsRenderer()
          Create a new NURBS object
 GLUQuadric gluNewQuadric()
          Create a new quadric object
 GLUTesselator gluNewTess()
          Creates an new tesselation object via the GLUTesselator class
 void gluNextContour(GLUTesselator tesselator, int type)
          Specifies a hint to the tesselator as to how to optimize tesselation
 void gluNurbsCurve(GLUNurbs nurb, int uknot_count, float[] uknot, int ustride, float[][] ctlarray, int uorder, int type)
          Definition of a NURBS curve
 void gluNurbsProperty(GLUNurbs nurb, int property, float value)
          Sets a NURBS property
 void gluNurbsSurface(GLUNurbs nurb, int uknot_count, float[] uknot, int vknot_count, float[] vknot, int u_stride, int v_stride, float[][][] ctlarray, int uorder, int vorder, int type)
          Definition of a NURBS surface
 void gluOrtho2D(double left, double right, double bottom, double top)
          Creates a matrix for projecting two-dimensional coordinates onto the screen and multiples the current projection matrix by it
 void gluPartialDisk(GLUQuadric quadric, double innerRadius, double outerRadius, int slices, int rings, double startAngle, double sweepAngle)
          Creates a partial disk via a Quadric object
 void gluPerspective(double fovy, double aspect, double near, double far)
          Creates a matrix for a symmetric perspective-view frustum and multiples the current matrix by it
 void gluPickMatrix(double x, double y, double width, double height, int[] viewport)
          Creates a projection matrix that restricts drawing to a small region of the viewport and multiples that matrix onto the current matrix stack
 int gluProject(double objx, double objy, double objz, double[] modelMatrix, double[] projMatrix, int[] viewport, double[] win)
          Map the specified 3d coordinates in object space into window coordinates ( that's 2d for all you rocket scientists! ) using transformations defined by a modelview matrix, projection matrix and viewport
 void gluPwlCurve(GLUNurbs nurb, int count, float[][] array, int stride, int type)
          Definition of a piecewise linear curve
 void gluQuadricDrawStyle(GLUQuadric quadric, int drawStyle)
          Sets the rendering style for the given quadric object
 void gluQuadricNormals(GLUQuadric quadric, int normalStyle)
          Sets the rules for normal generation on a given quadric object
 void gluQuadricOrientation(GLUQuadric quadric, int normalOrientation)
          Sets the orientation of normals on this quadric
 void gluQuadricTexture(GLUQuadric quadric, boolean textureCoords)
          Sets the texture generation rule for the given quadric
 int gluScaleImage(int format, int widthin, int heightin, int typein, byte[] datain, int widthout, int heightout, int typeout, byte[] dataout)
          Scales an image by linear interpolation and box filtering.
 void gluSphere(GLUQuadric quadric, double radius, int slices, int stacks)
          Creates a sphere via a Quadric object
 void gluTessBeginContour(GLUTesselator tesselator)
          Begins the specification of a closed contour which is a portion of a polygon
 void gluTessBeginPolygon(GLUTesselator tesselator, float[] userData)
          Specifies the beginning of a polygon to be tesselated by the given tesselator object
 void gluTessEndContour(GLUTesselator tesselator)
          Ends the specification of a closed contour
 void gluTessEndPolygon(GLUTesselator tesselator)
          Specifies the end of a polygon description that is to be tesselated
 void gluTessNormal(GLUTesselator tesselator, double x, double y, double z)
          For the given tesselation object, define a normal vector which controls the winding direction of the generated polygons.
 void gluTessProperty(GLUTesselator tesselator, int property, double value)
          Sets the value of the given tesselation property for the given tesselation object
 void gluTessVertex(GLUTesselator tesselator, double[] coords, double[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void gluTessVertex(GLUTesselator tesselator, double[] coords, float[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void gluTessVertex(GLUTesselator tesselator, double[] coords, int[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void gluTessVertex(GLUTesselator tesselator, float[] coords, double[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void gluTessVertex(GLUTesselator tesselator, float[] coords, float[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void gluTessVertex(GLUTesselator tesselator, float[] coords, int[] vertexData)
          Specifies vertex data to be passed into the tesselator
 int gluUnProject(double winx, double winy, double winz, double[] modelMatrix, double[] projMatrix, int[] viewport, double[] win)
          Maps the specified window coordinates as best as possible into object-space coordinates.
 void loadSamplingMatrices(GLUNurbs nurb, float[] modelMatrix, float[] projMatrix, int[] viewport)
          Loads sampling matrices for NURBS manipulation
 void lookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz)
          Defines a viewing matrix and multiples it to the right of the current matrix
 GLUNurbs newNurbsRenderer()
          Create a new NURBS object
 GLUQuadric newQuadric()
          Create a new quadric object
 GLUTesselator newTess()
          Creates an new tesselation object via the GLUTesselator class
 void nextContour(GLUTesselator tesselator, int type)
          Specifies a hint to the tesselator as to how to optimize tesselation
 void nurbsCurve(GLUNurbs nurb, int uknot_count, float[] uknot, int ustride, float[][] ctlarray, int uorder, int type)
          Definition of a NURBS curve
 void nurbsProperty(GLUNurbs nurb, int property, float value)
          Sets a NURBS property
 void nurbsSurface(GLUNurbs nurb, int uknot_count, float[] uknot, int vknot_count, float[] vknot, int u_stride, int v_stride, float[][][] ctlarray, int uorder, int vorder, int type)
          Definition of a NURBS surface
 void ortho2D(double left, double right, double bottom, double top)
          Creates a matrix for projecting two-dimensional coordinates onto the screen and multiples the current projection matrix by it
 void partialDisk(GLUQuadric quadric, double innerRadius, double outerRadius, int slices, int rings, double startAngle, double sweepAngle)
          Creates a partial disk via a Quadric object
 void perspective(double fovy, double aspect, double near, double far)
          Creates a matrix for a symmetric perspective-view frustum and multiples the current matrix by it
 void pickMatrix(double x, double y, double width, double height, int[] viewport)
          Creates a projection matrix that restricts drawing to a small region of the viewport and multiples that matrix onto the current matrix stack
 int project(double objx, double objy, double objz, double[] modelMatrix, double[] projMatrix, int[] viewport, double[] win)
          Map the specified 3d coordinates in object space into window coordinates ( that's 2d for all you rocket scientists! ) using transformations defined by a modelview matrix, projection matrix and viewport
 void pwlCurve(GLUNurbs nurb, int count, float[][] array, int stride, int type)
          Definition of a piecewise linear curve
 void quadricDrawStyle(GLUQuadric quadric, int drawStyle)
          Sets the rendering style for the given quadric object
 void quadricNormals(GLUQuadric quadric, int normalStyle)
          Sets the rules for normal generation on a given quadric object
 void quadricOrientation(GLUQuadric quadric, int normalOrientation)
          Sets the orientation of normals on this quadric
 void quadricTexture(GLUQuadric quadric, boolean textureCoords)
          Sets the texture generation rule for the given quadric
 int scaleImage(int format, int widthin, int heightin, int typein, byte[] datain, int widthout, int heightout, int typeout, byte[] dataout)
          Scales an image by linear interpolation and box filtering.
 void setMode(int mode)
          Sets the operating mode for various implementations of this interface
 void setParent(GLU parent)
          Sets the parent interface
 void sphere(GLUQuadric quadric, double radius, int slices, int stacks)
          Creates a sphere via a Quadric object
 void tessBeginContour(GLUTesselator tesselator)
          Begins the specification of a closed contour which is a portion of a polygon
 void tessBeginPolygon(GLUTesselator tesselator, float[] userData)
          Specifies the beginning of a polygon to be tesselated by the given tesselator object
 void tessEndContour(GLUTesselator tesselator)
          Ends the specification of a closed contour
 void tessEndPolygon(GLUTesselator tesselator)
          Specifies the end of a polygon description that is to be tesselated
 void tessNormal(GLUTesselator tesselator, double x, double y, double z)
          For the given tesselation object, define a normal vector which controls the winding direction of the generated polygons.
 void tessProperty(GLUTesselator tesselator, int property, double value)
          Sets the value of the given tesselation property for the given tesselation object
 void tessVertex(GLUTesselator tesselator, double[] coords, double[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void tessVertex(GLUTesselator tesselator, double[] coords, float[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void tessVertex(GLUTesselator tesselator, double[] coords, int[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void tessVertex(GLUTesselator tesselator, float[] coords, double[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void tessVertex(GLUTesselator tesselator, float[] coords, float[] vertexData)
          Specifies vertex data to be passed into the tesselator
 void tessVertex(GLUTesselator tesselator, float[] coords, int[] vertexData)
          Specifies vertex data to be passed into the tesselator
 int unProject(double winx, double winy, double winz, double[] modelMatrix, double[] projMatrix, int[] viewport, double[] win)
          Maps the specified window coordinates as best as possible into object-space coordinates.
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version information

VERBOSE

public static final int VERBOSE
Verbose operating mode for any implementations of this interface

SUMMARY

public static final int SUMMARY
Summary operating mode for any implementations of this interface
Method Detail

setParent

public void setParent(GLU parent)
Sets the parent interface

Parameters:
parent - The parent interface

getParent

public GLU getParent()
Returns the parent interface

setMode

public void setMode(int mode)
Sets the operating mode for various implementations of this interface

Parameters:
mode - The new operating mode. Legal values are usually SUMMARY or VERBOSE

getMode

public int getMode()
Returns the operating mode for this implementation of this interface

gluOrtho2D

public void gluOrtho2D(double left,
                       double right,
                       double bottom,
                       double top)
                throws OpenGLException
Creates a matrix for projecting two-dimensional coordinates onto the screen and multiples the current projection matrix by it

Parameters:
left - The coordinates of the left clipping plane
right - The coordinates of the right clipping plane
bottom - The coordinates of the bottom clipping plane
top - The coordinates of the top clipping plane
Throws:
OpenGLException - General OpenGL error

ortho2D

public void ortho2D(double left,
                    double right,
                    double bottom,
                    double top)
             throws OpenGLException
Creates a matrix for projecting two-dimensional coordinates onto the screen and multiples the current projection matrix by it

Parameters:
left - The coordinates of the left clipping plane
right - The coordinates of the right clipping plane
bottom - The coordinates of the bottom clipping plane
top - The coordinates of the top clipping plane
Throws:
OpenGLException - General OpenGL error

gluPerspective

public void gluPerspective(double fovy,
                           double aspect,
                           double near,
                           double far)
                    throws OpenGLException
Creates a matrix for a symmetric perspective-view frustum and multiples the current matrix by it

Parameters:
fovy - Specifies the field of view angle, in degrees in the y-direction
aspect - Specifies the aspect ratio that determines the field of view in the x direction
near - Specifies the distance from the viewer of the near clipping plane
far - Specifies the distance from the viewer of the far clipping plane
Throws:
OpenGLException - General OpenGL error

perspective

public void perspective(double fovy,
                        double aspect,
                        double near,
                        double far)
                 throws OpenGLException
Creates a matrix for a symmetric perspective-view frustum and multiples the current matrix by it

Parameters:
fovy - Specifies the field of view angle, in degrees in the y-direction
aspect - Specifies the aspect ratio that determines the field of view in the x direction
near - Specifies the distance from the viewer of the near clipping plane
far - Specifies the distance from the viewer of the far clipping plane
Throws:
OpenGLException - General OpenGL error

gluLookAt

public void gluLookAt(double eyex,
                      double eyey,
                      double eyez,
                      double centerx,
                      double centery,
                      double centerz,
                      double upx,
                      double upy,
                      double upz)
               throws OpenGLException
Defines a viewing matrix and multiples it to the right of the current matrix

Parameters:
eyex - The x-coordinate of the position of the eye point
eyey - The y-coordinate of the position of the eye point
eyez - The z-coordinate of the position of the eye point
centerx - The x-coordinate of the position of the reference point
centery - The y-coordinate of the position of the reference point
centerz - The z-coordinate of the position of the reference point
upx - The x component of the `up' vector
upy - The y component of the `up' vector
upz - The z component of the `up' vector
Throws:
OpenGLException - General OpenGL error

lookAt

public void lookAt(double eyex,
                   double eyey,
                   double eyez,
                   double centerx,
                   double centery,
                   double centerz,
                   double upx,
                   double upy,
                   double upz)
            throws OpenGLException
Defines a viewing matrix and multiples it to the right of the current matrix

Parameters:
eyex - The x-coordinate of the position of the eye point
eyey - The y-coordinate of the position of the eye point
eyez - The z-coordinate of the position of the eye point
centerx - The x-coordinate of the position of the reference point
centery - The y-coordinate of the position of the reference point
centerz - The z-coordinate of the position of the reference point
upx - The x component of the `up' vector
upy - The y component of the `up' vector
upz - The z component of the `up' vector
Throws:
OpenGLException - General OpenGL error

gluProject

public int gluProject(double objx,
                      double objy,
                      double objz,
                      double[] modelMatrix,
                      double[] projMatrix,
                      int[] viewport,
                      double[] win)
               throws OpenGLException
Map the specified 3d coordinates in object space into window coordinates ( that's 2d for all you rocket scientists! ) using transformations defined by a modelview matrix, projection matrix and viewport

Parameters:
winx - The x-coordinate of the object position
winy - The y-coordinate of the object position
winz - The z-coordinate of the object position
modelMatrix - The current modelview matrix
projMatrix - The current projection matrix
viewport - The current viewport
win - The computed window coordinates
Throws:
OpenGLException - General OpenGL error
See Also:
gluUnProject(double, double, double, double[], double[], int[], double[])

project

public int project(double objx,
                   double objy,
                   double objz,
                   double[] modelMatrix,
                   double[] projMatrix,
                   int[] viewport,
                   double[] win)
            throws OpenGLException
Map the specified 3d coordinates in object space into window coordinates ( that's 2d for all you rocket scientists! ) using transformations defined by a modelview matrix, projection matrix and viewport

Parameters:
winx - The x-coordinate of the object position
winy - The y-coordinate of the object position
winz - The z-coordinate of the object position
modelMatrix - The current modelview matrix
projMatrix - The current projection matrix
viewport - The current viewport
win - The computed window coordinates
Throws:
OpenGLException - General OpenGL error
See Also:
gluUnProject(double, double, double, double[], double[], int[], double[])

gluUnProject

public int gluUnProject(double winx,
                        double winy,
                        double winz,
                        double[] modelMatrix,
                        double[] projMatrix,
                        int[] viewport,
                        double[] win)
                 throws OpenGLException
Maps the specified window coordinates as best as possible into object-space coordinates. To be used with care!

Parameters:
winx - The x-coordinate of the object position
winy - The y-coordinate of the object position
winz - The z-coordinate of the object position
modelMatrix - The current modelview matrix
projMatrix - The current projection matrix
viewport - The current viewport
win - The computed window coordinates
Throws:
OpenGLException - General OpenGL error
See Also:
gluProject(double, double, double, double[], double[], int[], double[])

unProject

public int unProject(double winx,
                     double winy,
                     double winz,
                     double[] modelMatrix,
                     double[] projMatrix,
                     int[] viewport,
                     double[] win)
              throws OpenGLException
Maps the specified window coordinates as best as possible into object-space coordinates. To be used with care!

Parameters:
winx - The x-coordinate of the object position
winy - The y-coordinate of the object position
winz - The z-coordinate of the object position
modelMatrix - The current modelview matrix
projMatrix - The current projection matrix
viewport - The current viewport
win - The computed window coordinates
Throws:
OpenGLException - General OpenGL error
See Also:
gluProject(double, double, double, double[], double[], int[], double[])

gluScaleImage

public int gluScaleImage(int format,
                         int widthin,
                         int heightin,
                         int typein,
                         byte[] datain,
                         int widthout,
                         int heightout,
                         int typeout,
                         byte[] dataout)
                  throws OpenGLException
Scales an image by linear interpolation and box filtering.

Parameters:
format - Specifies the format of the pixel data
widthin - Width of the source image to be scaled
heightin - Height of the source image to be scaled
typein - The data type for the source image
datain - The source pixel data
widthout - The width of the output image
heightout - The height of the output image
typeout - The data type of the output image
dataout - The scaled pixel data
Throws:
OpenGLException - General OpenGL error

scaleImage

public int scaleImage(int format,
                      int widthin,
                      int heightin,
                      int typein,
                      byte[] datain,
                      int widthout,
                      int heightout,
                      int typeout,
                      byte[] dataout)
               throws OpenGLException
Scales an image by linear interpolation and box filtering.

Parameters:
format - Specifies the format of the pixel data
widthin - Width of the source image to be scaled
heightin - Height of the source image to be scaled
typein - The data type for the source image
datain - The source pixel data
widthout - The width of the output image
heightout - The height of the output image
typeout - The data type of the output image
dataout - The scaled pixel data
Throws:
OpenGLException - General OpenGL error

gluPickMatrix

public void gluPickMatrix(double x,
                          double y,
                          double width,
                          double height,
                          int[] viewport)
                   throws OpenGLException
Creates a projection matrix that restricts drawing to a small region of the viewport and multiples that matrix onto the current matrix stack

Parameters:
x - The x-coordinate of the centre of the picking region
y - The y-coordinate of the centre of the picking region
width - The width of the picking region
height - The height of the picking region
viewport - The current viewport
Throws:
OpenGLException - General OpenGL error

pickMatrix

public void pickMatrix(double x,
                       double y,
                       double width,
                       double height,
                       int[] viewport)
                throws OpenGLException
Creates a projection matrix that restricts drawing to a small region of the viewport and multiples that matrix onto the current matrix stack

Parameters:
x - The x-coordinate of the centre of the picking region
y - The y-coordinate of the centre of the picking region
width - The width of the picking region
height - The height of the picking region
viewport - The current viewport
Throws:
OpenGLException - General OpenGL error

gluBuild1DMipmaps

public int gluBuild1DMipmaps(int target,
                             int components,
                             int width,
                             int format,
                             int type,
                             byte[] data)
                      throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

build1DMipmaps

public int build1DMipmaps(int target,
                          int components,
                          int width,
                          int format,
                          int type,
                          byte[] data)
                   throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

gluBuild1DMipmaps

public int gluBuild1DMipmaps(int target,
                             int components,
                             int width,
                             int format,
                             int type,
                             short[] data)
                      throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

build1DMipmaps

public int build1DMipmaps(int target,
                          int components,
                          int width,
                          int format,
                          int type,
                          short[] data)
                   throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

gluBuild1DMipmaps

public int gluBuild1DMipmaps(int target,
                             int components,
                             int width,
                             int format,
                             int type,
                             int[] data)
                      throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

build1DMipmaps

public int build1DMipmaps(int target,
                          int components,
                          int width,
                          int format,
                          int type,
                          int[] data)
                   throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

gluBuild1DMipmaps

public int gluBuild1DMipmaps(int target,
                             int components,
                             int width,
                             int format,
                             int type,
                             float[] data)
                      throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

build1DMipmaps

public int build1DMipmaps(int target,
                          int components,
                          int width,
                          int format,
                          int type,
                          float[] data)
                   throws OpenGLException
Constructs a series of 1-dimensional mipmaps and calls glTexImage1D() to load the images into texture memory.

Parameters:
target - The target texture. Must be GL_TEXTURE_1D
components - The number of colour components in the texture
width - The width of the texture image
format - The format of the pixel data
type - The data type for the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage1D(int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             byte[] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          byte[] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             byte[][][] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          byte[][][] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             short[] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          short[] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             short[][][] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          short[][][] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             int[] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          int[] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             int[][][] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          int[][][] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             float[] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          float[] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluBuild2DMipmaps

public int gluBuild2DMipmaps(int target,
                             int components,
                             int width,
                             int height,
                             int format,
                             int type,
                             float[][][] data)
                      throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

build2DMipmaps

public int build2DMipmaps(int target,
                          int components,
                          int width,
                          int height,
                          int format,
                          int type,
                          float[][][] data)
                   throws OpenGLException
Constructs a series of 2-dimensional mipmaps and call glTexImage2D() to load the images into texture memory.

Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_2D
components - Specifies the number of colour components
width - The width of the texture image
height - The height of the texture image
format - The format of the pixel data
type - The data type of the pixel data
data - The pixel data of the texture
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexImage2D(int, int, int, int, int, int, int, int, byte[])

gluErrorString

public java.lang.String gluErrorString(int errorCode)
                                throws OpenGLException
Returns a descriptive, printable string pertaining to the supplied error code.

Parameters:
errorCode - The error code you wish to describe
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glGetError()

errorString

public java.lang.String errorString(int errorCode)
                             throws OpenGLException
Returns a descriptive, printable string pertaining to the supplied error code.

Parameters:
errorCode - The error code you wish to describe
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glGetError()

gluGetString

public java.lang.String gluGetString(int name)
                              throws OpenGLException
Returns information about the desired aspect of the OpenGL implementation. This method is functionally identical to glGetString()

Parameters:
name - The symbolic constant of the feature you wish to query
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glGetString(int)

getString

public java.lang.String getString(int name)
                           throws OpenGLException
Returns information about the desired aspect of the OpenGL implementation. This method is functionally identical to glGetString()

Parameters:
name - The symbolic constant of the feature you wish to query
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glGetString(int)

gluNewNurbsRenderer

public GLUNurbs gluNewNurbsRenderer()
                             throws OpenGLException
Create a new NURBS object

Throws:
OpenGLException - General OpenGL error

newNurbsRenderer

public GLUNurbs newNurbsRenderer()
                          throws OpenGLException
Create a new NURBS object

Throws:
OpenGLException - General OpenGL error

gluDeleteNurbsRenderer

public void gluDeleteNurbsRenderer(GLUNurbs nurb)
                            throws OpenGLException
Destroys a NURBS object

Parameters:
nurb - The GLUNurbs object to destroy
Throws:
OpenGLException - General OpenGL error

deleteNurbsRenderer

public void deleteNurbsRenderer(GLUNurbs nurb)
                         throws OpenGLException
Destroys a NURBS object

Parameters:
nurb - The GLUNurbs object to destroy
Throws:
OpenGLException - General OpenGL error

gluNurbsProperty

public void gluNurbsProperty(GLUNurbs nurb,
                             int property,
                             float value)
                      throws OpenGLException
Sets a NURBS property

Parameters:
nurb - A GLUNurbs object
property - The NURBS property to set
value - The value to set the property to
Throws:
OpenGLException - General OpenGL error

nurbsProperty

public void nurbsProperty(GLUNurbs nurb,
                          int property,
                          float value)
                   throws OpenGLException
Sets a NURBS property

Parameters:
nurb - A GLUNurbs object
property - The NURBS property to set
value - The value to set the property to
Throws:
OpenGLException - General OpenGL error

gluGetNurbsProperty

public float gluGetNurbsProperty(GLUNurbs nurb,
                                 int property)
                          throws OpenGLException
Queries a NURBS object for the given property value

Parameters:
nurb - A GLUNurbs object
property - The property to query the value of
Throws:
OpenGLException - General OpenGL error

getNurbsProperty

public float getNurbsProperty(GLUNurbs nurb,
                              int property)
                       throws OpenGLException
Queries a NURBS object for the given property value

Parameters:
nurb - A GLUNurbs object
property - The property to query the value of
Throws:
OpenGLException - General OpenGL error

gluLoadSamplingMatrices

public void gluLoadSamplingMatrices(GLUNurbs nurb,
                                    float[] modelMatrix,
                                    float[] projMatrix,
                                    int[] viewport)
                             throws OpenGLException
Loads sampling matrices for NURBS manipulation

Parameters:
nurb - A GLUNurbs object
modelMatrix - A modelview matrix
projMatrix - A projection matrix
viewport - A viewport
Throws:
OpenGLException - General OpenGL error

loadSamplingMatrices

public void loadSamplingMatrices(GLUNurbs nurb,
                                 float[] modelMatrix,
                                 float[] projMatrix,
                                 int[] viewport)
                          throws OpenGLException
Loads sampling matrices for NURBS manipulation

Parameters:
nurb - A GLUNurbs object
modelMatrix - A modelview matrix
projMatrix - A projection matrix
viewport - A viewport
Throws:
OpenGLException - General OpenGL error

gluBeginSurface

public void gluBeginSurface(GLUNurbs nurb)
                     throws OpenGLException
Signifies the beginning of a NURBS surface definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

beginSurface

public void beginSurface(GLUNurbs nurb)
                  throws OpenGLException
Signifies the beginning of a NURBS surface definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluEndSurface

public void gluEndSurface(GLUNurbs nurb)
                   throws OpenGLException
Signifies the end of a NURBS surface definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

endSurface

public void endSurface(GLUNurbs nurb)
                throws OpenGLException
Signifies the end of a NURBS surface definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluNurbsSurface

public void gluNurbsSurface(GLUNurbs nurb,
                            int uknot_count,
                            float[] uknot,
                            int vknot_count,
                            float[] vknot,
                            int u_stride,
                            int v_stride,
                            float[][][] ctlarray,
                            int uorder,
                            int vorder,
                            int type)
                     throws OpenGLException
Definition of a NURBS surface

Parameters:
nurb - A GLUNurbs object
uknot_count - Specifies the number of knots in the parametric u direction
uknot - The knot data
vknot_count - Specifies the number of knots in the parametric v direction
vknot - The knot data
u_stride - Specifies the offset between successive control points in the parametric u direction
v_stride - Specifies the offset between successive control points in the parametric v direction
ctlarray - An array of control points
uorder - Specifies the order of the NURBS surface in the parametric u direction
vorder - Specifies the order of the NURBS surface in the parametric v direction
type - Specifies the type of the surface
Throws:
OpenGLException - General OpenGL error

nurbsSurface

public void nurbsSurface(GLUNurbs nurb,
                         int uknot_count,
                         float[] uknot,
                         int vknot_count,
                         float[] vknot,
                         int u_stride,
                         int v_stride,
                         float[][][] ctlarray,
                         int uorder,
                         int vorder,
                         int type)
                  throws OpenGLException
Definition of a NURBS surface

Parameters:
nurb - A GLUNurbs object
uknot_count - Specifies the number of knots in the parametric u direction
uknot - The knot data
vknot_count - Specifies the number of knots in the parametric v direction
vknot - The knot data
u_stride - Specifies the offset between successive control points in the parametric u direction
v_stride - Specifies the offset between successive control points in the parametric v direction
ctlarray - An array of control points
uorder - Specifies the order of the NURBS surface in the parametric u direction
vorder - Specifies the order of the NURBS surface in the parametric v direction
type - Specifies the type of the surface
Throws:
OpenGLException - General OpenGL error

gluBeginCurve

public void gluBeginCurve(GLUNurbs nurb)
                   throws OpenGLException
Signifies the beginning of a NURBS curve

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

beginCurve

public void beginCurve(GLUNurbs nurb)
                throws OpenGLException
Signifies the beginning of a NURBS curve

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluEndCurve

public void gluEndCurve(GLUNurbs nurb)
                 throws OpenGLException
Signifies the end of a NURBS curve definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

endCurve

public void endCurve(GLUNurbs nurb)
              throws OpenGLException
Signifies the end of a NURBS curve definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluNurbsCurve

public void gluNurbsCurve(GLUNurbs nurb,
                          int uknot_count,
                          float[] uknot,
                          int ustride,
                          float[][] ctlarray,
                          int uorder,
                          int type)
                   throws OpenGLException
Definition of a NURBS curve

Parameters:
nurb - A GLUNurbs object
uknot_count - The number of knots in the curve
uknot - The knot data
ustride - Offset between successive control points
ctlarray - The control points for the curve
uorder - The order of the NURBS curve
type - Specifies the type of the curve
Throws:
OpenGLException - General OpenGL error

nurbsCurve

public void nurbsCurve(GLUNurbs nurb,
                       int uknot_count,
                       float[] uknot,
                       int ustride,
                       float[][] ctlarray,
                       int uorder,
                       int type)
                throws OpenGLException
Definition of a NURBS curve

Parameters:
nurb - A GLUNurbs object
uknot_count - The number of knots in the curve
uknot - The knot data
ustride - Offset between successive control points
ctlarray - The control points for the curve
uorder - The order of the NURBS curve
type - Specifies the type of the curve
Throws:
OpenGLException - General OpenGL error

gluBeginTrim

public void gluBeginTrim(GLUNurbs nurb)
                  throws OpenGLException
Signifies the beginning of a trim curve

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

beginTrim

public void beginTrim(GLUNurbs nurb)
               throws OpenGLException
Signifies the beginning of a trim curve

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluEndTrim

public void gluEndTrim(GLUNurbs nurb)
                throws OpenGLException
Signifies the end of a trim curve definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

endTrim

public void endTrim(GLUNurbs nurb)
             throws OpenGLException
Signifies the end of a trim curve definition

Parameters:
nurb - A GLUNurbs object
Throws:
OpenGLException - General OpenGL error

gluPwlCurve

public void gluPwlCurve(GLUNurbs nurb,
                        int count,
                        float[][] array,
                        int stride,
                        int type)
                 throws OpenGLException
Definition of a piecewise linear curve

Parameters:
nurb - A GLUNurbs object
count - The number of points on the curve
array - Specifies an array containing the curve point
stride - Offset between each control point
type - Specifies the type of curve
Throws:
OpenGLException - General OpenGL error

pwlCurve

public void pwlCurve(GLUNurbs nurb,
                     int count,
                     float[][] array,
                     int stride,
                     int type)
              throws OpenGLException
Definition of a piecewise linear curve

Parameters:
nurb - A GLUNurbs object
count - The number of points on the curve
array - Specifies an array containing the curve point
stride - Offset between each control point
type - Specifies the type of curve
Throws:
OpenGLException - General OpenGL error

gluNewQuadric

public GLUQuadric gluNewQuadric()
                         throws OpenGLException
Create a new quadric object

Throws:
OpenGLException - General OpenGL error

newQuadric

public GLUQuadric newQuadric()
                      throws OpenGLException
Create a new quadric object

Throws:
OpenGLException - General OpenGL error

gluDeleteQuadric

public void gluDeleteQuadric(GLUQuadric quadric)
                      throws OpenGLException
Destroys a quadric object

Parameters:
quadric - A GLUQuadric object
Throws:
OpenGLException - General OpenGL error

deleteQuadric

public void deleteQuadric(GLUQuadric quadric)
                   throws OpenGLException
Destroys a quadric object

Parameters:
quadric - A GLUQuadric object
Throws:
OpenGLException - General OpenGL error

gluQuadricDrawStyle

public void gluQuadricDrawStyle(GLUQuadric quadric,
                                int drawStyle)
                         throws OpenGLException
Sets the rendering style for the given quadric object

Parameters:
quadric - A GLUQuadric object
drawStyle - Specifies the desired draw style
Throws:
OpenGLException - General OpenGL error

quadricDrawStyle

public void quadricDrawStyle(GLUQuadric quadric,
                             int drawStyle)
                      throws OpenGLException
Sets the rendering style for the given quadric object

Parameters:
quadric - A GLUQuadric object
drawStyle - Specifies the desired draw style
Throws:
OpenGLException - General OpenGL error

gluQuadricNormals

public void gluQuadricNormals(GLUQuadric quadric,
                              int normalStyle)
                       throws OpenGLException
Sets the rules for normal generation on a given quadric object

Parameters:
quadric - A GLUQuadric object
normalStyle - Specifies the desired type of normal
Throws:
OpenGLException - General OpenGL error

quadricNormals

public void quadricNormals(GLUQuadric quadric,
                           int normalStyle)
                    throws OpenGLException
Sets the rules for normal generation on a given quadric object

Parameters:
quadric - A GLUQuadric object
normalStyle - Specifies the desired type of normal
Throws:
OpenGLException - General OpenGL error

gluQuadricOrientation

public void gluQuadricOrientation(GLUQuadric quadric,
                                  int normalOrientation)
                           throws OpenGLException
Sets the orientation of normals on this quadric

Parameters:
quadric - A GLUQuadric object
normalOrientation - Specifies the desired normal orientation
Throws:
OpenGLException - General OpenGL error

quadricOrientation

public void quadricOrientation(GLUQuadric quadric,
                               int normalOrientation)
                        throws OpenGLException
Sets the orientation of normals on this quadric

Parameters:
quadric - A GLUQuadric object
normalOrientation - Specifies the desired normal orientation
Throws:
OpenGLException - General OpenGL error

gluQuadricTexture

public void gluQuadricTexture(GLUQuadric quadric,
                              boolean textureCoords)
                       throws OpenGLException
Sets the texture generation rule for the given quadric

Parameters:
quadric - A GLUQuadric object
textureCoords - Specifies a flag indicating whether or not texture coordinates should be generated
Throws:
OpenGLException - General OpenGL error

quadricTexture

public void quadricTexture(GLUQuadric quadric,
                           boolean textureCoords)
                    throws OpenGLException
Sets the texture generation rule for the given quadric

Parameters:
quadric - A GLUQuadric object
textureCoords - Specifies a flag indicating whether or not texture coordinates should be generated
Throws:
OpenGLException - General OpenGL error

gluSphere

public void gluSphere(GLUQuadric quadric,
                      double radius,
                      int slices,
                      int stacks)
               throws OpenGLException
Creates a sphere via a Quadric object

Parameters:
quadric - A GLUQuadric object
radius - The radius of the sphere
slices - The number of vertical subdivisions of the sphere
stacks - The number of horizontal subdivisions of the sphere
Throws:
OpenGLException - General OpenGL error

sphere

public void sphere(GLUQuadric quadric,
                   double radius,
                   int slices,
                   int stacks)
            throws OpenGLException
Creates a sphere via a Quadric object

Parameters:
quadric - A GLUQuadric object
radius - The radius of the sphere
slices - The number of vertical subdivisions of the sphere
stacks - The number of horizontal subdivisions of the sphere
Throws:
OpenGLException - General OpenGL error

gluCylinder

public void gluCylinder(GLUQuadric quadric,
                        double baseRadius,
                        double topRadius,
                        double height,
                        int slices,
                        int stacks)
                 throws OpenGLException
Creates a cylinder via a Quadric object

Parameters:
quadric - A GLUQuadric object
baseRadius - The radius of the base of the cylinder
topRadius - The radius of the top of the cylinder
height - The height of the cylinder
slices - The number of vertical subdivisions of the cylinder
stacks - The number of horizontal subdivisions of the cylinder
Throws:
OpenGLException - General OpenGL error

cylinder

public void cylinder(GLUQuadric quadric,
                     double baseRadius,
                     double topRadius,
                     double height,
                     int slices,
                     int stacks)
              throws OpenGLException
Creates a cylinder via a Quadric object

Parameters:
quadric - A GLUQuadric object
baseRadius - The radius of the base of the cylinder
topRadius - The radius of the top of the cylinder
height - The height of the cylinder
slices - The number of vertical subdivisions of the cylinder
stacks - The number of horizontal subdivisions of the cylinder
Throws:
OpenGLException - General OpenGL error

gluDisk

public void gluDisk(GLUQuadric quadric,
                    double innerRadius,
                    double outerRadius,
                    int slices,
                    int rings)
             throws OpenGLException
Creates a disk via a Quadric object

Parameters:
quadric - A GLUQuadric object
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
Throws:
OpenGLException - General OpenGL error

disk

public void disk(GLUQuadric quadric,
                 double innerRadius,
                 double outerRadius,
                 int slices,
                 int rings)
          throws OpenGLException
Creates a disk via a Quadric object

Parameters:
quadric - A GLUQuadric object
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
Throws:
OpenGLException - General OpenGL error

gluPartialDisk

public void gluPartialDisk(GLUQuadric quadric,
                           double innerRadius,
                           double outerRadius,
                           int slices,
                           int rings,
                           double startAngle,
                           double sweepAngle)
                    throws OpenGLException
Creates a partial disk via a Quadric object

Parameters:
quadric - A GLUQuadric object
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
startAngle - The angle to start forming the disk from
sweepAngle - The number of degrees to sweep the disk through
Throws:
OpenGLException - General OpenGL error

partialDisk

public void partialDisk(GLUQuadric quadric,
                        double innerRadius,
                        double outerRadius,
                        int slices,
                        int rings,
                        double startAngle,
                        double sweepAngle)
                 throws OpenGLException
Creates a partial disk via a Quadric object

Parameters:
quadric - A GLUQuadric object
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
startAngle - The angle to start forming the disk from
sweepAngle - The number of degrees to sweep the disk through
Throws:
OpenGLException - General OpenGL error

gluNewTess

public GLUTesselator gluNewTess()
Creates an new tesselation object via the GLUTesselator class

newTess

public GLUTesselator newTess()
Creates an new tesselation object via the GLUTesselator class

gluDeleteTess

public void gluDeleteTess(GLUTesselator tesselator)
Destroys the given GLUTesselator object

Parameters:
tesselator - The tesselator object to destroy

deleteTess

public void deleteTess(GLUTesselator tesselator)
Destroys the given GLUTesselator object

Parameters:
tesselator - The tesselator object to destroy

gluTessProperty

public void gluTessProperty(GLUTesselator tesselator,
                            int property,
                            double value)
Sets the value of the given tesselation property for the given tesselation object

Parameters:
tesselator - A GLUTesselator object
property - The tesselation property to set
value - The new value to set the property to

tessProperty

public void tessProperty(GLUTesselator tesselator,
                         int property,
                         double value)
Sets the value of the given tesselation property for the given tesselation object

Parameters:
tesselator - A GLUTesselator object
property - The tesselation property to set
value - The new value to set the property to

gluGetTessProperty

public double gluGetTessProperty(GLUTesselator tesselator,
                                 int property)
Returns the current value of the given tesselation property for the given tesselation object

Parameters:
tesselator - A GLUTesselator object
property - The property to return the value for

getTessProperty

public double getTessProperty(GLUTesselator tesselator,
                              int property)
Returns the current value of the given tesselation property for the given tesselation object

Parameters:
tesselator - A GLUTesselator object
property - The property to return the value for

gluTessNormal

public void gluTessNormal(GLUTesselator tesselator,
                          double x,
                          double y,
                          double z)
For the given tesselation object, define a normal vector which controls the winding direction of the generated polygons.

Parameters:
tesselator - The tesselation object
x - The x-value of the normal
y - The y-value of the normal
z - The z-value of the normal

tessNormal

public void tessNormal(GLUTesselator tesselator,
                       double x,
                       double y,
                       double z)
For the given tesselation object, define a normal vector which controls the winding direction of the generated polygons.

Parameters:
tesselator - The tesselation object
x - The x-value of the normal
y - The y-value of the normal
z - The z-value of the normal

gluTessBeginPolygon

public void gluTessBeginPolygon(GLUTesselator tesselator,
                                float[] userData)
Specifies the beginning of a polygon to be tesselated by the given tesselator object

Parameters:
tesselator - The tesselator object
userData - The user data to feed to the tesselator

tessBeginPolygon

public void tessBeginPolygon(GLUTesselator tesselator,
                             float[] userData)
Specifies the beginning of a polygon to be tesselated by the given tesselator object

Parameters:
tesselator - The tesselator object
userData - The user data to feed to the tesselator

gluTessEndPolygon

public void gluTessEndPolygon(GLUTesselator tesselator)
Specifies the end of a polygon description that is to be tesselated

Parameters:
tesselator - The tesselator object

tessEndPolygon

public void tessEndPolygon(GLUTesselator tesselator)
Specifies the end of a polygon description that is to be tesselated

Parameters:
tesselator - The tesselator object

gluTessBeginContour

public void gluTessBeginContour(GLUTesselator tesselator)
Begins the specification of a closed contour which is a portion of a polygon


tessBeginContour

public void tessBeginContour(GLUTesselator tesselator)
Begins the specification of a closed contour which is a portion of a polygon


gluTessEndContour

public void gluTessEndContour(GLUTesselator tesselator)
Ends the specification of a closed contour

tessEndContour

public void tessEndContour(GLUTesselator tesselator)
Ends the specification of a closed contour

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          double[] coords,
                          float[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       double[] coords,
                       float[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          double[] coords,
                          int[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       double[] coords,
                       int[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          double[] coords,
                          double[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       double[] coords,
                       double[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          float[] coords,
                          float[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       float[] coords,
                       float[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          float[] coords,
                          int[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       float[] coords,
                       int[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluTessVertex

public void gluTessVertex(GLUTesselator tesselator,
                          float[] coords,
                          double[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

tessVertex

public void tessVertex(GLUTesselator tesselator,
                       float[] coords,
                       double[] vertexData)
Specifies vertex data to be passed into the tesselator

Parameters:
tesselator - The tesselator object
coords - The three-dimensional coordinates of the vertex
vertexData - The vertex data to pass into the tesselator callback

gluBeginPolygon

public void gluBeginPolygon(GLUTesselator tesselator)
Specifies the beginning of a polygon definition

beginPolygon

public void beginPolygon(GLUTesselator tesselator)
Specifies the beginning of a polygon definition

gluEndPolygon

public void gluEndPolygon(GLUTesselator tesselator)
Specifies the end of a polygon definition

endPolygon

public void endPolygon(GLUTesselator tesselator)
Specifies the end of a polygon definition

gluNextContour

public void gluNextContour(GLUTesselator tesselator,
                           int type)
Specifies a hint to the tesselator as to how to optimize tesselation

Parameters:
tesselator - The tesselator object
type - Tesselation hint

nextContour

public void nextContour(GLUTesselator tesselator,
                        int type)
Specifies a hint to the tesselator as to how to optimize tesselation

Parameters:
tesselator - The tesselator object
type - Tesselation hint