com.hermetica.magician
Class ProfileGL

java.lang.Object
  |
  +--com.hermetica.magician.ProfileGL

public class ProfileGL
extends java.lang.Object
implements GL

Encapsulation of the OpenGL state machine with runtime method profiling. This class contains the standard OpenGL functions and additional polymorphic methods designed to make programming slightly easier.

Version:
$Id: ProfileGL.java.stub,v 1.11 1999/07/21 11:03:34 descarte Exp descarte $
Author:
Alligator Descartes <descarte@hermetica.com>

Field Summary
static java.lang.String VERSION
          Version information
 
Constructor Summary
ProfileGL()
          Constructor
ProfileGL(GL parent)
          Constructs a new ProfileGL pipeline with the given pipeline as a parent in the execution stack.
 
Method Summary
 void accum(int op, float value)
          Operate on the accumulation buffer
 void alphaFunc(int func, float value)
          Specify the alpha test function
 boolean areTexturesResident(int n, int[] textures, boolean[] residence)
          Determine if textures are loaded in texture memory
 void arrayElement(int ith)
          Specify the array elements used to render a vertex
 void begin(int mode)
          Delimit the vertices of a primitive of a group of like primitives
 void bindTexture(int target, int textureName)
          Creates and uses texture objects.
 void bitmap(int width, int height, float xbo, float ybo, float xbi, float ybi, byte[] bitmap)
          Draw a bitmap
 void blendFunc(int sfactor, int dfactor)
          Specify pixel arithmetic
 void calculateStatistics(int methodIndex, long delta)
          This method calculates statistics depending on the start and stop times and the method involved.
 void callList(int list)
          Executes a display list
 void clear(int mask)
          Clear buffers to preset values
 void clearAccum(float red, float green, float blue, float alpha)
          Specify clear values for the accumulation buffer
 void clearColor(float red, float green, float blue, float alpha)
          Specify clear values for colour buffers
 void clearDepth(double depth)
          Specify the clear value for the depth buffer
 void clearIndex(float index)
          Specify the clear value for the colour index buffers
 void clearStencil(int s)
          Specify the clear value for the stencil buffer
 void clipPlane(int plane, double[] equation)
          Specify a plane against which all geometry is clipped
 void color(byte[] ary)
          Polymorphic method for glColor3bv and glColor4bv
 void color(byte r, byte g, byte b)
          Polymorphic method for glColor3b
 void color(byte r, byte g, byte b, byte a)
          Polymorphic method for glColor4b
 void color(double[] ary)
          Polymorphic method for glColor3dv and glColor4dv
 void color(double r, double g, double b)
          Polymorphic method for glColor3d
 void color(double r, double g, double b, double a)
          Polymorphic method for glColor4d
 void color(float[] ary)
          Polymorphic method for glColor3fv and glColour4fv
 void color(float r, float g, float b)
          Polymorphic method for glColor3f
 void color(float r, float g, float b, float a)
          Polymorphic method for glColor4f
 void color(int[] ary)
          Polymorphic method for glColor3iv and glColor4iv
 void color(int r, int g, int b)
          Polymorphic method for glColor3i
 void color(int r, int g, int b, int a)
          Polymorphic method for glColor4i
 void color(short[] ary)
          Polymorphic method for glColor3sv and glColor4sv
 void color(short r, short g, short b)
          Polymorphic method for glColor3s
 void color(short r, short g, short b, short a)
          Polymorphic method for glColor4s
 void colorMask(boolean red, boolean green, boolean blue, boolean alpha)
          Enable and disable writing of frame buffer colour components
 void colorMask(byte red, byte green, byte blue, byte alpha)
          Enable and disable writing of frame buffer colour components
 void colorMask(int red, int green, int blue, int alpha)
          Enable and disable writing of frame buffer colour components
 void colorMaterial(int face, int mode)
          Cause a material colour to track the current colour
 void copyPixels(int x, int y, int width, int height, int buffer)
          Copy pixels in the frame buffer
 void copyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int height)
          Creates a one-dimensional texture using framebuffer data to define the texels
 void copyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)
          Creates a two-dimensional texture using framebuffer data to define the texels
 void copyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width)
          Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing one-dimensional texture image
 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
          Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing two-dimensional texture image
 void copyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
          Copies a 3D texture sub-image
 void cullFace(int mode)
          Specify whether front- or back-facing facets can be culled
 void deleteLists(int list, int range)
          Delete a contiguous group of display lists
 void deleteTextures(int n, int[] textureNames)
          Deletes the given texture objects completely.
 void depthFunc(int func)
          Specify the value used for depth buffer comparisons
 void depthMask(boolean flag)
          Enable or disable writing into the depth buffer
 void depthMask(byte flag)
          Enable or disable writing into the depth buffer
 void depthMask(int flag)
          Enable or disable writing into the depth buffer
 void depthRange(double nearValue, double farValue)
          Specify the mapping z values from normalized device coordinates to window coordinates
 void disable(int cap)
          Turns off the given capability in the OpenGL pipeline
 void disableClientState(int array)
          Disable client-side capabiltity
 void displayStatistics()
          This method dumps the total statistics of all invoked OpenGL methods out to allow developers to profile their applications.
 void drawArrays(int mode, int first, int count)
          Render primitives from array data
 void drawBuffer(int mode)
          Specify which colour buffers are to be drawn into
 void drawRangeElements(int mode, int start, int end, int count, int type, byte[] indices)
          Draw a range of array elements
 void drawRangeElements(int mode, int start, int end, int count, int type, int[] indices)
          Draw a range of array elements
 void drawRangeElements(int mode, int start, int end, int count, int type, short[] indices)
          Draw a range of array elements
 void edgeFlag(boolean flag)
          Flag edges as either boundary or nonboundary
 void edgeFlag(boolean[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void edgeFlag(byte flag)
          Flag edges as either boundary or nonboundary
 void edgeFlag(byte[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void edgeFlag(int flag)
          Flag edges as either boundary or nonboundary
 void edgeFlag(int[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void edgeFlagPointer(int stride, boolean[] pointer)
          Define an array of edge flags
 void enable(int cap)
          Enable or disable GL capabilities
 void enableClientState(int array)
          Enable client-side capabiltity
 void end()
          Marks the end of a vertex-data list
 void endList()
          Terminates the specification of a display list
 void evalMesh(int mode, int p1, int p2)
          Compute a one-dimensional grid of points
 void evalMesh(int mode, int i1, int i2, int j1, int j2)
          Compute a two-dimensional grid of points
 void evalPoint(int i)
          Generate and evaluate a single point in a mesh
 void evalPoint(int i, int j)
          Generate and evaluate a single point in a mesh
 void feedbackBuffer(int size, int type, float[] buffer)
          Controls feedback mode
 void finish()
          Block until all GL execution is complete
 void flush()
          Force execution of GL commands in finite time
 void fog(int pname, float param)
          Specify fog parameters
 void fog(int pname, float[] params)
          Specify fog parameters
 void fog(int pname, int param)
          Specify fog parameters
 void fog(int pname, int[] params)
          Specify fog parameters
 void frontFace(int mode)
          Define front- and back-facing polygons
 void frustum(double left, double right, double bottom, double top, double nearValue, double farValue)
          Multiply the current matrix by a perspective matrix
 int genLists(int range)
          Generate a contiguous set of empty display lists
 void genTextures(int n, int[] textureNames)
          Returns the desired quantity of current unused names for texture objects that can be used with glBindTexture.
 void getBoolean(int pname, boolean[] params)
          Return the value or values of a specified parameter
 void getClipPlane(int plane, double[] equation)
          Return the co-efficients of the specified clipping plane
 void getDouble(int pname, double[] params)
          Return the value or values of a specified parameter
 int getError()
          Return error information
 void getFloat(int pname, float[] params)
          Return the value or values of a specified parameter
 void getInteger(int pname, int[] params)
          Return the value or values of a specified parameter
 void getLight(int light, int pname, float[] params)
          Return light source parameter values
 void getLight(int light, int pname, int[] params)
          Return light source parameter values
 void getMap(int target, int query, double[] v)
          Return evaluator parameters
 void getMap(int target, int query, float[] v)
          Return evaluator parameters
 void getMap(int target, int query, int[] v)
          Return evaluator parameters
 void getMaterial(int face, int pname, float[] params)
          Return material parameters
 void getMaterial(int face, int pname, int[] params)
          Return material parameters
 int getMode()
          Returns the current operating mode of any implementations of this interface.
 GL getParent()
          Returns the parent interface.
 void getPixelMap(int map, float[] values)
          Return the specified pixel map
 void getPixelMap(int map, int[] values)
          Return the specified pixel map
 void getPixelMap(int map, short[] values)
          Return the specified pixel map
 void getPolygonStipple(byte[] mask)
          Return the polygon stipple pattern
 java.lang.String getString(int name)
          Polymorphic definition of glGetString
 void getTexEnv(int target, int pname, float[] params)
          Return texture environment parameters
 void getTexEnv(int target, int pname, int[] params)
          Return texture environment parameters
 void getTexGen(int coord, int pname, double[] params)
          Return texture coordinate generation parameters
 void getTexGen(int coord, int pname, float[] params)
          Return texture coordinate generation parameters
 void getTexGen(int coord, int pname, int[] params)
          Return texture coordinate generation parameters
 void getTexLevelParameter(int target, int level, int pname, float[] params)
          Return texture parameter values for a specific level of detail
 void getTexLevelParameter(int target, int level, int pname, int[] params)
          Return texture parameter values for a specific level of detail
 void getTexParameter(int target, int pname, float[] params)
          Return texture parameter values
 void getTexParameter(int target, int pname, int[] params)
          Return texture parameter values
 void glAccum(int op, float value)
          Operate on the accumulation buffer
 void glAlphaFunc(int func, float value)
          Specify the alpha test function
 boolean glAreTexturesResident(int n, int[] textures, boolean[] residence)
          Determine if textures are loaded in texture memory
 void glArrayElement(int ith)
          Specify the array elements used to render a vertex
 void glBegin(int mode)
          Delimit the vertices of a primitive of a group of like primitives
 void glBindTexture(int target, int textureName)
          Creates and uses texture objects.
 void glBitmap(int width, int height, float xbo, float ybo, float xbi, float ybi, byte[] bitmap)
          Draw a bitmap
 void glBlendFunc(int sfactor, int dfactor)
          Specify pixel arithmetic
 void glCallList(int list)
          Executes a display list
 void glCallLists(int n, int type, byte[] lists)
          Execute a list of display lists
 void glCallLists(int n, int type, int[] lists)
          Execute a list of display lists
 void glCallLists(int n, int type, short[] lists)
          Execute a list of display lists
 void glClear(int mask)
          Clear buffers to preset values
 void glClearAccum(float red, float green, float blue, float alpha)
          Specify clear values for the accumulation buffer
 void glClearColor(float red, float green, float blue, float alpha)
          Specify clear values for colour buffers
 void glClearDepth(double depth)
          Specify the clear value for the depth buffer
 void glClearIndex(float index)
          Specify the clear value for the colour index buffers
 void glClearStencil(int s)
          Specify the clear value for the stencil buffer
 void glClipPlane(int plane, double[] equation)
          Specify a plane against which all geometry is clipped
 void glColor3b(byte r, byte g, byte b)
          Sets the current colour
 void glColor3bv(byte[] v)
          Sets the current colour
 void glColor3d(double r, double g, double b)
          Sets the current colour
 void glColor3dv(double[] v)
          Sets the current colour
 void glColor3f(float r, float g, float b)
          Sets the current colour
 void glColor3fv(float[] v)
          Sets the current colour
 void glColor3i(int r, int g, int b)
          Sets the current colour
 void glColor3iv(int[] v)
          Sets the current colour
 void glColor3s(short r, short g, short b)
          Sets the current colour
 void glColor3sv(short[] v)
          Sets the current colour
 void glColor3ub(byte r, byte g, byte b)
          Sets the current colour
 void glColor3ubv(byte[] v)
          Sets the current colour
 void glColor3ui(int r, int g, int b)
          Sets the current colour
 void glColor3uiv(int[] v)
          Sets the current colour
 void glColor3us(short r, short g, short b)
          Sets the current colour
 void glColor3usv(short[] v)
          Sets the current colour
 void glColor4b(byte r, byte g, byte b, byte a)
          Sets the current colour
 void glColor4bv(byte[] v)
          Sets the current colour
 void glColor4d(double r, double g, double b, double a)
          Sets the current colour
 void glColor4dv(double[] v)
          Sets the current colour
 void glColor4f(float r, float g, float b, float a)
          Sets the current colour
 void glColor4fv(float[] v)
          Sets the current colour
 void glColor4i(int r, int g, int b, int a)
          Sets the current colour
 void glColor4iv(int[] v)
          Sets the current colour
 void glColor4s(short r, short g, short b, short a)
          Sets the current colour
 void glColor4sv(short[] v)
          Sets the current colour
 void glColor4ub(byte r, byte g, byte b, byte a)
          Sets the current colour
 void glColor4ubv(byte[] v)
          Sets the current colour
 void glColor4ui(int r, int g, int b, int a)
          Sets the current colour
 void glColor4uiv(int[] v)
          Sets the current colour
 void glColor4us(short r, short g, short b, short a)
          Sets the current colour
 void glColor4usv(short[] v)
          Sets the current colour
 void glColorMask(boolean red, boolean green, boolean blue, boolean alpha)
          Enable and disable writing of frame buffer colour components
 void glColorMask(byte red, byte green, byte blue, byte alpha)
          Enable and disable writing of frame buffer colour components
 void glColorMask(int red, int green, int blue, int alpha)
          Enable and disable writing of frame buffer colour components
 void glColorMaterial(int face, int mode)
          Cause a material colour to track the current colour
 void glColorPointer(int size, int type, int stride, byte[] ptr)
          Define an array of colours
 void glColorPointer(int size, int type, int stride, double[] ptr)
          Define an array of colours
 void glColorPointer(int size, int type, int stride, float[] ptr)
          Define an array of colours
 void glColorPointer(int size, int type, int stride, int[] ptr)
          Define an array of colours
 void glColorPointer(int size, int type, int stride, short[] ptr)
          Define an array of colours
 void glCopyPixels(int x, int y, int width, int height, int buffer)
          Copy pixels in the frame buffer
 void glCopyTexImage1D(int target, int level, int internalFormat, int x, int y, int width, int height)
          Creates a one-dimensional texture using framebuffer data to define the texels
 void glCopyTexImage2D(int target, int level, int internalFormat, int x, int y, int width, int height, int border)
          Creates a two-dimensional texture using framebuffer data to define the texels
 void glCopyTexSubImage1D(int target, int level, int xoffset, int x, int y, int width)
          Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing one-dimensional texture image
 void glCopyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height)
          Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing two-dimensional texture image
 void glCopyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height)
          Copies a 3D texture sub-image
 void glCullFace(int mode)
          Specify whether front- or back-facing facets can be culled
 void glDeleteLists(int list, int range)
          Delete a contiguous group of display lists
 void glDeleteTextures(int n, int[] textureNames)
          Deletes the given texture objects completely.
 void glDepthFunc(int func)
          Specify the value used for depth buffer comparisons
 void glDepthMask(boolean flag)
          Enable or disable writing into the depth buffer
 void glDepthMask(byte flag)
          Enable or disable writing into the depth buffer
 void glDepthMask(int flag)
          Enable or disable writing into the depth buffer
 void glDepthRange(double nearValue, double farValue)
          Specify the mapping z values from normalized device coordinates to window coordinates
 void glDisable(int cap)
          Turns off the given capability in the OpenGL pipeline
 void glDisableClientState(int array)
          Disable client-side capabiltity
 void glDrawArrays(int mode, int first, int count)
          Render primitives from array data
 void glDrawBuffer(int mode)
          Specify which colour buffers are to be drawn into
 void glDrawElements(int mode, int count, int type, byte[] indices)
          Render primitives from array data
 void glDrawElements(int mode, int count, int type, byte[] indices, int offset)
          Render primitives from array data
 void glDrawElements(int mode, int count, int type, int[] indices)
          Render primitives from array data
 void glDrawElements(int mode, int count, int type, int[] indices, int offset)
          Render primitives from array data
 void glDrawElements(int mode, int count, int type, short[] indices)
          Render primitives from array data
 void glDrawElements(int mode, int count, int type, short[] indices, int offset)
          Render primitives from array data
 void glDrawPixels(int width, int height, int format, int type, byte[] pixels)
          Write a block of pixels to the frame buffer
 void glDrawPixels(int width, int height, int format, int type, float[] pixels)
          Write a block of pixels to the frame buffer
 void glDrawPixels(int width, int height, int format, int type, int[] pixels)
          Write a block of pixels to the frame buffer
 void glDrawPixels(int width, int height, int format, int type, short[] pixels)
          Write a block of pixels to the frame buffer
 void glDrawRangeElements(int mode, int start, int end, int count, int type, byte[] indices)
          Draw a range of array elements
 void glDrawRangeElements(int mode, int start, int end, int count, int type, int[] indices)
          Draw a range of array elements
 void glDrawRangeElements(int mode, int start, int end, int count, int type, short[] indices)
          Draw a range of array elements
 void glEdgeFlag(boolean flag)
          Flag edges as either boundary or nonboundary
 void glEdgeFlag(byte flag)
          Flag edges as either boundary or nonboundary
 void glEdgeFlag(int flag)
          Flag edges as either boundary or nonboundary
 void glEdgeFlagPointer(int stride, boolean[] pointer)
          Define an array of edge flags
 void glEdgeFlagv(boolean[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void glEdgeFlagv(byte[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void glEdgeFlagv(int[] flag)
          Flag edges as either boundary or nonboundary using an array of values
 void glEnable(int cap)
          Enable or disable GL capabilities
 void glEnableClientState(int array)
          Enable client-side capabiltity
 void glEnd()
          Marks the end of a vertex-data list
 void glEndList()
          Terminates the specification of a display list
 void glEvalCoord1d(double u)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord1dv(double[] u)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord1f(float u)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord1fv(float[] u)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord2d(double u, double v)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord2dv(double[] values)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord2f(float u, float v)
          Evaluate enabled one- and two-dimensional maps
 void glEvalCoord2fv(float[] values)
          Evaluate enabled one- and two-dimensional maps
 void glEvalMesh1(int mode, int p1, int p2)
          Compute a one-dimensional grid of points
 void glEvalMesh2(int mode, int i1, int i2, int j1, int j2)
          Compute a two-dimensional grid of points
 void glEvalPoint1(int i)
          Generate and evaluate a single point in a mesh
 void glEvalPoint2(int i, int j)
          Generate and evaluate a single point in a mesh
 void glFeedbackBuffer(int size, int type, float[] buffer)
          Controls feedback mode
 void glFinish()
          Block until all GL execution is complete
 void glFlush()
          Force execution of GL commands in finite time
 void glFogf(int pname, float param)
          Specify fog parameters
 void glFogfv(int pname, float[] params)
          Specify fog parameters
 void glFogi(int pname, int param)
          Specify fog parameters
 void glFogiv(int pname, int[] params)
          Specify fog parameters
 void glFrontFace(int mode)
          Define front- and back-facing polygons
 void glFrustum(double left, double right, double bottom, double top, double nearValue, double farValue)
          Multiply the current matrix by a perspective matrix
 int glGenLists(int range)
          Generate a contiguous set of empty display lists
 void glGenTextures(int n, int[] textureNames)
          Returns the desired quantity of current unused names for texture objects that can be used with glBindTexture.
 void glGetBooleanv(int pname, boolean[] params)
          Return the value or values of a specified parameter
 void glGetClipPlane(int plane, double[] equation)
          Return the co-efficients of the specified clipping plane
 void glGetDoublev(int pname, double[] params)
          Return the value or values of a specified parameter
 int glGetError()
          Return error information
 void glGetFloatv(int pname, float[] params)
          Return the value or values of a specified parameter
 void glGetIntegerv(int pname, int[] params)
          Return the value or values of a specified parameter
 void glGetLightfv(int light, int pname, float[] params)
          Return light source parameter values
 void glGetLightiv(int light, int pname, int[] params)
          Return light source parameter values
 void glGetMapdv(int target, int query, double[] v)
          Return evaluator parameters
 void glGetMapfv(int target, int query, float[] v)
          Return evaluator parameters
 void glGetMapiv(int target, int query, int[] v)
          Return evaluator parameters
 void glGetMaterialfv(int face, int pname, float[] params)
          Return material parameters
 void glGetMaterialiv(int face, int pname, int[] params)
          Return material parameters
 void glGetPixelMapfv(int map, float[] values)
          Return the specified pixel map
 void glGetPixelMapuiv(int map, int[] values)
          Return the specified pixel map
 void glGetPixelMapusv(int map, short[] values)
          Return the specified pixel map
 void glGetPolygonStipple(byte[] mask)
          Return the polygon stipple pattern
 java.lang.String glGetString(int name)
          Returns a string describing the current GL connection
 void glGetTexEnvfv(int target, int pname, float[] params)
          Return texture environment parameters
 void glGetTexEnviv(int target, int pname, int[] params)
          Return texture environment parameters
 void glGetTexGendv(int coord, int pname, double[] params)
          Return texture coordinate generation parameters
 void glGetTexGenfv(int coord, int pname, float[] params)
          Return texture coordinate generation parameters
 void glGetTexGeniv(int coord, int pname, int[] params)
          Return texture coordinate generation parameters
 void glGetTexImage(int target, int level, int format, int type, byte[] pixels)
          Return a texture image
 void glGetTexImage(int target, int level, int format, int type, float[] pixels)
          Return a texture image
 void glGetTexImage(int target, int level, int format, int type, int[] pixels)
          Return a texture image
 void glGetTexImage(int target, int level, int format, int type, short[] pixels)
          Return a texture image
 void glGetTexLevelParameterfv(int target, int level, int pname, float[] params)
          Return texture parameter values for a specific level of detail
 void glGetTexLevelParameteriv(int target, int level, int pname, int[] params)
          Return texture parameter values for a specific level of detail
 void glGetTexParameterfv(int target, int pname, float[] params)
          Return texture parameter values
 void glGetTexParameteriv(int target, int pname, int[] params)
          Return texture parameter values
 void glHint(int target, int mode)
          Specify implementation-specific hints
 void glIndexd(double c)
          Set the current colour index
 void glIndexdv(double[] c)
          Set the current colour index
 void glIndexf(float c)
          Set the current colour index
 void glIndexfv(float[] c)
          Set the current colour index
 void glIndexi(int c)
          Set the current colour index
 void glIndexiv(int[] c)
          Set the current colour index
 void glIndexMask(int mask)
          Control the writing of individual bits in the colour index buffers
 void glIndexPointer(int type, int stride, byte[] ptr)
          Defines an array of colour indices
 void glIndexPointer(int type, int stride, double[] ptr)
          Defines an array of colour indices
 void glIndexPointer(int type, int stride, float[] ptr)
          Defines an array of colour indices
 void glIndexPointer(int type, int stride, int[] ptr)
          Defines an array of colour indices
 void glIndexPointer(int type, int stride, short[] ptr)
          Defines an array of colour indices
 void glIndexs(short c)
          Set the current colour index
 void glIndexsv(short[] c)
          Set the current colour index
 void glIndexub(byte c)
          Set the current colour index
 void glIndexubv(byte[] c)
          Set the current colour index
 void glInitNames()
          Initialize the name stack
 void glInterleavedArrays(int format, int stride, float[] pointer)
          Initializes vertex, colour and normal arrays for complex interleaving
 boolean glIsEnabled(int cap)
          Test whether or not a capability is enabled
 boolean glIsList(int list)
          Determine if a name corresponds to a display list
 boolean glIsTexture(int texture)
          Determine if a name corresponds to a texture
 void glLightf(int light, int pname, float param)
          Set light source parameters
 void glLightfv(int light, int pname, float[] param)
          Set the lighting model parameters
 void glLighti(int light, int pname, int param)
          Set light source parameters
 void glLightiv(int light, int pname, int[] param)
          Set the lighting model parameters
 void glLightModelf(int pname, float param)
          Set the lighting model parameters
 void glLightModelfv(int pname, float[] params)
          Set the lighting model parameters
 void glLightModeli(int pname, int param)
          Set the lighting model parameters
 void glLightModeliv(int pname, int[] params)
          Set the lighting model parameters
 void glLineStipple(int factor, short pattern)
          Specify the line stipple pattern
 void glLineWidth(float width)
          Specify the width of rasterized lines
 void glListBase(int base)
          Set the display list base for glCallLists
 void glLoadIdentity()
          Replace the current matrix with the identity matrix
 void glLoadMatrixd(double[] m)
          Replace the current matrix with an arbitrary matrix
 void glLoadMatrixf(float[] m)
          Replace the current matrix with an arbitrary matrix
 void glLoadName(int name)
          Load a name onto the name stack
 void glLogicOp(int opcode)
          Specify a logical pixel operations for colour index rendering
 void glMap1d(int target, double u1, double u2, int stride, int order, double[][] points)
          Define a one-dimensional evaluator
 void glMap1f(int target, float u1, float u2, int stride, int order, float[][] points)
          Define a one-dimensional evaluator
 void glMap2d(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, double[][][] points)
          Define a two-dimensional evaluator
 void glMap2f(int target, float u1, float u2, int ustride, int uorder, float v1, float v2, int vstride, int vorder, float[][][] points)
          Define a two-dimensional evaluator
 void glMapGrid1d(int un, double u1, double u2)
          Define a one-dimensional mesh
 void glMapGrid1f(int un, float u1, float u2)
          Define a one-dimensional mesh
 void glMapGrid2d(int un, double u1, double u2, int vn, double v1, double v2)
          Define a two-dimensional mesh
 void glMapGrid2f(int un, float u1, float u2, int vn, float v1, float v2)
          Define a two-dimensional mesh
 void glMaterialf(int face, int pname, float param)
          Specify material parameters for the lighting model
 void glMaterialfv(int face, int pname, float[] params)
          Specify material parameters for the lighting model
 void glMateriali(int face, int pname, int param)
          Specify material parameters for the lighting model
 void glMaterialiv(int face, int pname, int[] params)
          Specify material parameters for the lighting model
 void glMatrixMode(int mode)
          Specify which matrix is the current matrix
 void glMultMatrixd(double[] m)
          Multiply the current matrix by an arbitrary matrix
 void glMultMatrixd(double[][] m)
          Multiply the current matrix by an arbitrary matrix
 void glMultMatrixf(float[] m)
          Multiply the current matrix by an arbitrary matrix
 void glMultMatrixf(float[][] m)
          Multiply the current matrix by an arbitrary matrix
 void glNewList(int list, int mode)
          Create or replace a display list
 void glNormal3b(byte nx, byte ny, byte nz)
          Set the current normal vector
 void glNormal3bv(byte[] v)
          Set the current normal vector
 void glNormal3d(double nx, double ny, double nz)
          Set the current normal vector
 void glNormal3dv(double[] v)
          Set the current normal vector
 void glNormal3f(float nx, float ny, float nz)
          Set the current normal vector
 void glNormal3fv(float[] v)
          Set the current normal vector
 void glNormal3i(int nx, int ny, int nz)
          Set the current normal vector
 void glNormal3iv(int[] v)
          Set the current normal vector
 void glNormal3s(short nx, short ny, short nz)
          Set the current normal vector
 void glNormal3sv(short[] v)
          Set the current normal vector
 void glNormalPointer(int type, int stride, byte[] ptr)
          Defines an array of normals
 void glNormalPointer(int type, int stride, double[] ptr)
          Defines an array of normals
 void glNormalPointer(int type, int stride, float[] ptr)
          Defines an array of normals
 void glNormalPointer(int type, int stride, int[] ptr)
          Defines an array of normals
 void glNormalPointer(int type, int stride, short[] ptr)
          Defines an array of normals
 void glOrtho(double left, double right, double bottom, double top, double nearValue, double farValue)
          Multiply the current matrix by an orthographic matrix
 void glPassThrough(float token)
          Place a marker in the feedback buffer
 void glPixelMapfv(int map, int mapsize, float[] values)
          Set up pixel transfer maps
 void glPixelMapuiv(int map, int mapsize, int[] values)
          Set up pixel transfer maps
 void glPixelMapusv(int map, int mapsize, short[] values)
          Set up pixel transfer maps
 void glPixelStoref(int pname, float param)
          Set pixel storage maps
 void glPixelStorei(int pname, int param)
          Set pixel storage maps
 void glPixelTransferf(int pname, float param)
          Set pixel transfer modes
 void glPixelTransferi(int pname, int param)
          Set pixel transfer modes
 void glPixelZoom(float xfactor, float yfactor)
          Specify the pixel zoom factors
 void glPointSize(float size)
          Specify the diameter of rasterized points
 void glPolygonMode(int face, int mode)
          Select a polygon rasterization mode
 void glPolygonOffset(float factor, float units)
          When enabled, the depth value of each fragment is added to a calculated offset value.
 void glPolygonStipple(byte[] mask)
          Set the polygon stippling pattern
 void glPopAttrib()
          Pushes the given attribute onto the attribute stack
 void glPopClientAttrib()
          This pushes the given attribute onto the client attribute stack
 void glPopMatrix()
          Pop the current matrix stack
 void glPopName()
          Pop the name stack
 void glPrioritizeTextures(int n, int[] textures, float[] priorities)
          Assigns priorities to texture objects in a given texture array.
 void glPushAttrib(int mask)
          Push the attribute stack
 void glPushClientAttrib(int mask)
          This pushes the desired attributes onto the client attribute stack
 void glPushMatrix()
          Push the current matrix stack
 void glPushName(int name)
          Push the name stack
 void glRasterPos2d(double x, double y)
          Specify the raster position for pixel
 void glRasterPos2dv(double[] coords)
          Specify the raster position for pixel
 void glRasterPos2f(float x, float y)
          Specify the raster position for pixel
 void glRasterPos2fv(float[] coords)
          Specify the raster position for pixel
 void glRasterPos2i(int x, int y)
          Specify the raster position for pixel
 void glRasterPos2iv(int[] coords)
          Specify the raster position for pixel
 void glRasterPos2s(short x, short y)
          Specify the raster position for pixel
 void glRasterPos2sv(short[] coords)
          Specify the raster position for pixel
 void glRasterPos3d(double x, double y, double z)
          Specify the raster position for pixel
 void glRasterPos3dv(double[] coords)
          Specify the raster position for pixel
 void glRasterPos3f(float x, float y, float z)
          Specify the raster position for pixel
 void glRasterPos3fv(float[] coords)
          Specify the raster position for pixel
 void glRasterPos3i(int x, int y, int z)
          Specify the raster position for pixel
 void glRasterPos3iv(int[] coords)
          Specify the raster position for pixel
 void glRasterPos3s(short x, short y, short z)
          Specify the raster position for pixel
 void glRasterPos3sv(short[] coords)
          Specify the raster position for pixel
 void glRasterPos4d(double x, double y, double z, double w)
          Specify the raster position for pixel
 void glRasterPos4dv(double[] coords)
          Specify the raster position for pixel
 void glRasterPos4f(float x, float y, float z, float w)
          Specify the raster position for pixel
 void glRasterPos4fv(float[] coords)
          Specify the raster position for pixel
 void glRasterPos4i(int x, int y, int z, int w)
          Specify the raster position for pixel
 void glRasterPos4iv(int[] coords)
          Specify the raster position for pixel
 void glRasterPos4s(short x, short y, short z, short w)
          Specify the raster position for pixel
 void glRasterPos4sv(short[] coords)
          Specify the raster position for pixel
 void glReadBuffer(int mode)
          Select a colour buffer source for pixels
 void glReadPixels(int x, int y, int width, int height, int format, int type, byte[] pixels)
          Read a block of pixels from the frame buffer
 void glReadPixels(int x, int y, int width, int height, int format, int type, float[] pixels)
          Read a block of pixels from the frame buffer
 void glReadPixels(int x, int y, int width, int height, int format, int type, int[] pixels)
          Read a block of pixels from the frame buffer
 void glReadPixels(int x, int y, int width, int height, int format, int type, short[] pixels)
          Read a block of pixels from the frame buffer
 void glRectd(double x1, double y1, double x2, double y2)
          Draw a rectangle
 void glRectdv(double[] v1, double[] v2)
          Draw a rectangle
 void glRectf(float x1, float y1, float x2, float y2)
          Draw a rectangle
 void glRectfv(float[] v1, float[] v2)
          Draw a rectangle
 void glRecti(int x1, int y1, int x2, int y2)
          Draw a rectangle
 void glRectiv(int[] v1, int[] v2)
          Draw a rectangle
 void glRects(short x1, short y1, short x2, short y2)
          Draw a rectangle
 void glRectsv(short[] v1, short[] v2)
          Draw a rectangle
 int glRenderMode(int mode)
          Set rasterization mode
 void glRotated(double angle, double x, double y, double z)
          Multiply the current matrix by a rotation matrix
 void glRotatef(float angle, float x, float y, float z)
          Multiply the current matrix by a rotation matrix
 void glScaled(double x, double y, double z)
          Multiply the current matrix by a general scaling matrix
 void glScalef(float x, float y, float z)
          Multiply the current matrix by a general scaling matrix
 void glScissor(int x, int y, int width, int height)
          Define the scissor box
 void glSelectBuffer(int size, int[] buffer)
          Establish a buffer for selection mode values.
 void glShadeModel(int mode)
          Select flat or smooth shading
 void glStencilFunc(int func, int ref, int mask)
          Set function and reference value for stencil testing
 void glStencilMask(int mask)
          Control the writing of individual bits in the stencil planes
 void glStencilOp(int fail, int zfail, int zpass)
          Set stencil test actions
 void glTexCoord1d(double s)
          Set the current texture coordinates
 void glTexCoord1dv(double[] v)
          Set the current texture coordinates
 void glTexCoord1f(float s)
          Set the current texture coordinates
 void glTexCoord1fv(float[] v)
          Set the current texture coordinates
 void glTexCoord1i(int s)
          Set the current texture coordinates
 void glTexCoord1iv(int[] v)
          Set the current texture coordinates
 void glTexCoord1s(short s)
          Set the current texture coordinates
 void glTexCoord1sv(short[] v)
          Set the current texture coordinates
 void glTexCoord2d(double s, double t)
          Set the current texture coordinates
 void glTexCoord2dv(double[] v)
          Set the current texture coordinates
 void glTexCoord2f(float s, float t)
          Set the current texture coordinates
 void glTexCoord2fv(float[] v)
          Set the current texture coordinates
 void glTexCoord2i(int s, int t)
          Set the current texture coordinates
 void glTexCoord2iv(int[] v)
          Set the current texture coordinates
 void glTexCoord2s(short s, short t)
          Set the current texture coordinates
 void glTexCoord2sv(short[] v)
          Set the current texture coordinates
 void glTexCoord3d(double s, double t, double r)
          Set the current texture coordinates
 void glTexCoord3dv(double[] v)
          Set the current texture coordinates
 void glTexCoord3f(float s, float t, float r)
          Set the current texture coordinates
 void glTexCoord3fv(float[] v)
          Set the current texture coordinates
 void glTexCoord3i(int s, int t, int r)
          Set the current texture coordinates
 void glTexCoord3iv(int[] v)
          Set the current texture coordinates
 void glTexCoord3s(short s, short t, short r)
          Set the current texture coordinates
 void glTexCoord3sv(short[] v)
          Set the current texture coordinates
 void glTexCoord4d(double s, double t, double r, double q)
          Set the current texture coordinates
 void glTexCoord4dv(double[] v)
          Set the current texture coordinates
 void glTexCoord4f(float s, float t, float r, float q)
          Set the current texture coordinates
 void glTexCoord4fv(float[] v)
          Set the current texture coordinates
 void glTexCoord4i(int s, int t, int r, int q)
          Set the current texture coordinates
 void glTexCoord4iv(int[] v)
          Set the current texture coordinates
 void glTexCoord4s(short s, short t, short r, short q)
          Set the current texture coordinates
 void glTexCoord4sv(short[] v)
          Set the current texture coordinates
 void glTexCoordPointer(int size, int type, int stride, double[] ptr)
          Defines an array of texture coordinates
 void glTexCoordPointer(int size, int type, int stride, float[] ptr)
          Defines an array of texture coordinates
 void glTexCoordPointer(int size, int type, int stride, int[] ptr)
          Defines an array of texture coordinates
 void glTexCoordPointer(int size, int type, int stride, short[] ptr)
          Defines an array of texture coordinates
 void glTexEnvf(int target, int pname, float param)
          Set texture environment parameters
 void glTexEnvfv(int target, int pname, float[] param)
          Set texture environment parameters
 void glTexEnvi(int target, int pname, int param)
          Set texture environment parameters
 void glTexEnviv(int target, int pname, int[] param)
          Set texture environment parameters
 void glTexGend(int coord, int pname, double param)
          Control the generation of texture coordinates
 void glTexGendv(int coord, int pname, double[] param)
          Control the generation of texture coordinates
 void glTexGenf(int coord, int pname, float param)
          Control the generation of texture coordinates
 void glTexGenfv(int coord, int pname, float[] param)
          Control the generation of texture coordinates
 void glTexGeni(int coord, int pname, int param)
          Control the generation of texture coordinates
 void glTexGeniv(int coord, int pname, int[] param)
          Control the generation of texture coordinates
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, byte[] pixels)
          Specifies a one-dimensional texture map
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, byte[][] pixels)
          Specifies a one-dimensional texture map using slightly more sensible array definitions.
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, float[] pixels)
          Specifies a one-dimensional texture map
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, float[][] pixels)
          Specifies a one-dimensional texture map using slightly more sensible array definitions.
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, int[] pixels)
          Specifies a one-dimensional texture map
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, int[][] pixels)
          Specifies a one-dimensional texture map using slightly more sensible array definitions.
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, short[] pixels)
          Specifies a one-dimensional texture map
 void glTexImage1D(int target, int level, int components, int width, int border, int format, int type, short[][] pixels)
          Specifies a one-dimensional texture map using slightly more sensible array definitions.
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, byte[] pixels)
          Specifies a two-dimensional texture map
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, byte[][][] pixels)
          Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, float[] pixels)
          Specifies a two-dimensional texture map
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, float[][][] pixels)
          Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, int[] pixels)
          Specifies a two-dimensional texture map
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, int[][][] pixels)
          Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, short[] pixels)
          Specifies a two-dimensional texture map
 void glTexImage2D(int target, int level, int components, int width, int height, int border, int format, int type, short[][][] pixels)
          Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, byte[] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, byte[][][][] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float[] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float[][][][] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int[] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int[][][][] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short[] pixels)
          Specifies a 3D texture image
 void glTexImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short[][][][] pixels)
          Specifies a 3D texture image
 void glTexParameterf(int target, int pname, float param)
          Set texture parameters
 void glTexParameterfv(int target, int pname, float[] param)
          Set texture parameters
 void glTexParameteri(int target, int pname, int param)
          Set texture parameters
 void glTexParameteriv(int target, int pname, int[] param)
          Set texture parameters
 void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, byte[] pixels)
          Specifies a one-dimensional texture sub-image
 void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels)
          Specifies a one-dimensional texture sub-image
 void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels)
          Specifies a one-dimensional texture sub-image
 void glTexSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels)
          Specifies a one-dimensional texture sub-image
 void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, byte[] pixels)
          Specifies a two-dimensional texture sub-image
 void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels)
          Specifies a two-dimensional texture sub-image
 void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels)
          Specifies a two-dimensional texture sub-image
 void glTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels)
          Specifies a two-dimensional texture sub-image
 void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, byte[] pixels)
          Specifies a three-dimensional texture sub-image
 void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels)
          Specifies a three-dimensional texture sub-image
 void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels)
          Specifies a three-dimensional texture sub-image
 void glTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels)
          Specifies a three-dimensional texture sub-image
 void glTranslated(double x, double y, double z)
          Multiply the current matrix by a translation matrix
 void glTranslatef(float x, float y, float z)
          Multiply the current matrix by a translation matrix
 void glVertex2d(double x, double y)
          Specify a vertex
 void glVertex2dv(double[] v)
          Specify a vertex
 void glVertex2f(float x, float y)
          Specify a vertex
 void glVertex2fv(float[] v)
          Specify a vertex
 void glVertex2i(int x, int y)
          Specify a vertex
 void glVertex2iv(int[] v)
          Specify a vertex
 void glVertex2s(short x, short y)
          Specify a vertex
 void glVertex2sv(short[] v)
          Specify a vertex
 void glVertex3d(double x, double y, double z)
          Specify a vertex
 void glVertex3dv(double[] v)
          Specify a vertex
 void glVertex3f(float x, float y, float z)
          Specify a vertex
 void glVertex3fv(float[] v)
          Specify a vertex
 void glVertex3i(int x, int y, int z)
          Specify a vertex
 void glVertex3iv(int[] v)
          Specify a vertex
 void glVertex3s(short x, short y, short z)
          Specify a vertex
 void glVertex3sv(short[] z)
          Specify a vertex
 void glVertex4d(double x, double y, double z, double w)
          Specify a vertex
 void glVertex4dv(double[] v)
          Specify a vertex
 void glVertex4f(float x, float y, float z, float w)
          Specify a vertex
 void glVertex4fv(float[] v)
          Specify a vertex
 void glVertex4i(int x, int y, int z, int w)
          Specify a vertex
 void glVertex4iv(int[] v)
          Specify a vertex
 void glVertex4s(short x, short y, short z, short w)
          Specify a vertex
 void glVertex4sv(short[] v)
          Specify a vertex
 void glVertexPointer(int size, int type, int stride, double[] ptr)
          Define an array of vertex data
 void glVertexPointer(int size, int type, int stride, float[] ptr)
          Define an array of vertex data
 void glVertexPointer(int size, int type, int stride, int[] ptr)
          Define an array of vertex data
 void glVertexPointer(int size, int type, int stride, short[] ptr)
          Define an array of vertex data
 void glViewport(GLDrawable component, int x, int y, int width, int height)
          Set the viewport
 void hint(int target, int mode)
          Specify implementation-specific hints
 void index(byte c)
          Set the current colour index
 void index(byte[] c)
          Set the current colour index
 void index(double c)
          Set the current colour index
 void index(double[] c)
          Set the current colour index
 void index(float c)
          Set the current colour index
 void index(float[] c)
          Set the current colour index
 void index(int c)
          Set the current colour index
 void index(int[] c)
          Set the current colour index
 void index(short c)
          Set the current colour index
 void index(short[] c)
          Set the current colour index
 void indexMask(int mask)
          Control the writing of individual bits in the colour index buffers
 void initNames()
          Initialize the name stack
 boolean isEnabled(int cap)
          Test whether or not a capability is enabled
 boolean isList(int list)
          Determine if a name corresponds to a display list
 boolean isTexture(int texture)
          Determine if a name corresponds to a texture
 void light(int light, int pname, float param)
          Set light source parameters
 void light(int light, int pname, float[] param)
          Set the lighting model parameters
 void light(int light, int pname, int param)
          Set light source parameters
 void light(int light, int pname, int[] param)
          Set the lighting model parameters
 void lightModel(int pname, float param)
          Set the lighting model parameters
 void lightModel(int pname, float[] params)
          Set the lighting model parameters
 void lightModel(int pname, int param)
          Set the lighting model parameters
 void lightModel(int pname, int[] params)
          Set the lighting model parameters
 void lineStipple(int factor, short pattern)
          Specify the line stipple pattern
 void lineWidth(float width)
          Specify the width of rasterized lines
 void listBase(int base)
          Set the display list base for glCallLists
 void loadIdentity()
          Replace the current matrix with the identity matrix
 void loadMatrix(double[] m)
          Replace the current matrix with an arbitrary matrix
 void loadMatrix(float[] m)
          Replace the current matrix with an arbitrary matrix
 void loadName(int name)
          Load a name onto the name stack
 void logicOp(int opcode)
          Specify a logical pixel operations for colour index rendering
 void mapGrid(int un, double u1, double u2)
          Define a one-dimensional mesh
 void mapGrid(int un, double u1, double u2, int vn, double v1, double v2)
          Define a two-dimensional mesh
 void mapGrid(int un, float u1, float u2)
          Define a one-dimensional mesh
 void mapGrid(int un, float u1, float u2, int vn, float v1, float v2)
          Define a two-dimensional mesh
 void material(int face, int pname, float param)
          Specify material parameters for the lighting model
 void material(int face, int pname, float[] params)
          Specify material parameters for the lighting model
 void material(int face, int pname, int param)
          Specify material parameters for the lighting model
 void material(int face, int pname, int[] params)
          Specify material parameters for the lighting model
 void matrixMode(int mode)
          Specify which matrix is the current matrix
 void multMatrix(double[] m)
          Multiply the current matrix by an arbitrary matrix
 void multMatrix(double[][] m)
          Multiply the current matrix by an arbitrary matrix
 void multMatrix(float[] m)
          Multiply the current matrix by an arbitrary matrix
 void multMatrix(float[][] m)
          Multiply the current matrix by an arbitrary matrix
 void newList(int list, int mode)
          Create or replace a display list
 void normal(byte[] v)
          Set the current normal vector
 void normal(byte nx, byte ny, byte nz)
          Set the current normal vector
 void normal(double[] v)
          Set the current normal vector
 void normal(double nx, double ny, double nz)
          Set the current normal vector
 void normal(float[] v)
          Set the current normal vector
 void normal(float nx, float ny, float nz)
          Set the current normal vector
 void normal(int[] v)
          Set the current normal vector
 void normal(int nx, int ny, int nz)
          Set the current normal vector
 void normal(short[] v)
          Set the current normal vector
 void normal(short nx, short ny, short nz)
          Set the current normal vector
 void ortho(double left, double right, double bottom, double top, double nearValue, double farValue)
          Multiply the current matrix by an orthographic matrix
 void passThrough(float token)
          Place a marker in the feedback buffer
 void pixelMap(int map, int mapsize, float[] values)
          Set up pixel transfer maps
 void pixelMap(int map, int mapsize, int[] values)
          Set up pixel transfer maps
 void pixelMap(int map, int mapsize, short[] values)
          Set up pixel transfer maps
 void pixelStore(int pname, float param)
          Set pixel storage maps
 void pixelStore(int pname, int param)
          Set pixel storage maps
 void pixelTransfer(int pname, float param)
          Set pixel transfer modes
 void pixelTransfer(int pname, int param)
          Set pixel transfer modes
 void pixelZoom(float xfactor, float yfactor)
          Specify the pixel zoom factors
 void pointSize(float size)
          Specify the diameter of rasterized points
 void polygonMode(int face, int mode)
          Select a polygon rasterization mode
 void polygonOffset(float factor, float units)
          When enabled, the depth value of each fragment is added to a calculated offset value.
 void polygonStipple(byte[] mask)
          Set the polygon stippling pattern
 void popAttrib()
          Pushes the given attribute onto the attribute stack
 void popClientAttrib()
          This pushes the given attribute onto the client attribute stack
 void popMatrix()
          Pop the current matrix stack
 void popName()
          Pop the name stack
 void prioritizeTextures(int n, int[] textures, float[] priorities)
          Assigns priorities to texture objects in a given texture array.
 void pushAttrib(int mask)
          Push the attribute stack
 void pushClientAttrib(int mask)
          This pushes the desired attributes onto the client attribute stack
 void pushMatrix()
          Push the current matrix stack
 void pushName(int name)
          Push the name stack
 void rasterPos(double[] ary)
          Polymorphic definition for glRasterPos[234]dv
 void rasterPos(double x, double y)
          Polymorphic definition for glRasterPos2d
 void rasterPos(double x, double y, double z)
          Polymorphic definition for glRasterPos3d
 void rasterPos(double x, double y, double z, double w)
          Polymorphic definition for glRasterPos4d
 void rasterPos(float[] ary)
          Polymorphic definition for glRasterPos[234]fv
 void rasterPos(float x, float y)
          Polymorphic definition for glRasterPos2f
 void rasterPos(float x, float y, float z)
          Polymorphic definition for glRasterPos3f
 void rasterPos(float x, float y, float z, float w)
          Polymorphic definition for glRasterPos4f
 void rasterPos(int[] ary)
          Polymorphic definition for glRasterPos[234]iv
 void rasterPos(int x, int y)
          Polymorphic definition for glRasterPos2i
 void rasterPos(int x, int y, int z)
          Polymorphic definition for glRasterPos3i
 void rasterPos(int x, int y, int z, int w)
          Polymorphic definition for glRasterPos4i
 void rasterPos(short[] ary)
          Polymorphic definition for glRasterPos[234]sv
 void rasterPos(short x, short y)
          Polymorphic definition for glRasterPos2s
 void rasterPos(short x, short y, short z)
          Polymorphic definition for glRasterPos3s
 void rasterPos(short x, short y, short z, short w)
          Polymorphic definition for glRasterPos4s
 void readBuffer(int mode)
          Select a colour buffer source for pixels
 void rect(double[] v1, double[] v2)
          Draw a rectangle
 void rect(double x1, double y1, double x2, double y2)
          Draw a rectangle
 void rect(float[] v1, float[] v2)
          Draw a rectangle
 void rect(float x1, float y1, float x2, float y2)
          Draw a rectangle
 void rect(int[] v1, int[] v2)
          Draw a rectangle
 void rect(int x1, int y1, int x2, int y2)
          Draw a rectangle
 void rect(short[] v1, short[] v2)
          Draw a rectangle
 void rect(short x1, short y1, short x2, short y2)
          Draw a rectangle
 int renderMode(int mode)
          Set rasterization mode
 void rotate(double angle, double x, double y, double z)
          Multiply the current matrix by a rotation matrix
 void rotate(float angle, float x, float y, float z)
          Multiply the current matrix by a rotation matrix
 void scale(double x, double y, double z)
          Multiply the current matrix by a general scaling matrix
 void scale(float x, float y, float z)
          Multiply the current matrix by a general scaling matrix
 void scissor(int x, int y, int width, int height)
          Define the scissor box
 void selectBuffer(int size, int[] buffer)
          Establish a buffer for selection mode values.
 void setMode(int mode)
          Signifies the operating mode of any implementations of this interface, ie, summary or verbose
 void setParent(GL parent)
          Sets the parent interface.
 void shadeModel(int mode)
          Select flat or smooth shading
 void stencilFunc(int func, int ref, int mask)
          Set function and reference value for stencil testing
 void stencilMask(int mask)
          Control the writing of individual bits in the stencil planes
 void stencilOp(int fail, int zfail, int zpass)
          Set stencil test actions
 void texCoord(double s)
          Polymorphic method for glTexCoord1d
 void texCoord(double[] ary)
          Polymorphic method for glTexCoord[1234]dv
 void texCoord(double s, double t)
          Polymorphic method for glTexCoord2d
 void texCoord(double s, double t, double r)
          Polymorphic method for glTexCoord3d
 void texCoord(double s, double t, double r, double q)
          Polymorphic method for glTexCoord4d
 void texCoord(float s)
          Polymorphic method for glTexCoord1f
 void texCoord(float[] ary)
          Polymorphic method for glTexCoord[1234]fv
 void texCoord(float s, float t)
          Polymorphic method for glTexCoord2f
 void texCoord(float s, float t, float r)
          Polymorphic method for glTexCoord3f
 void texCoord(float s, float t, float r, float q)
          Polymorphic method for glTexCoord4f
 void texCoord(int s)
          Polymorphic method for glTexCoord1i
 void texCoord(int[] ary)
          Polymorphic method for glTexCoord[1234]iv
 void texCoord(int s, int t)
          Polymorphic method for glTexCoord2i
 void texCoord(int s, int t, int r)
          Polymorphic method for glTexCoord3i
 void texCoord(int s, int t, int r, int q)
          Polymorphic method for glTexCoord4i
 void texCoord(short s)
          Polymorphic method for glTexCoord1s
 void texCoord(short[] ary)
          Polymorphic method for glTexCoord[1234]sv
 void texCoord(short s, short t)
          Polymorphic method for glTexCoord2s
 void texCoord(short s, short t, short r)
          Polymorphic method for glTexCoord3s
 void texCoord(short s, short t, short r, short q)
          Polymorphic method for glTexCoord4s
 void texEnv(int target, int pname, float param)
          Set texture environment parameters
 void texEnv(int target, int pname, float[] param)
          Set texture environment parameters
 void texEnv(int target, int pname, int param)
          Set texture environment parameters
 void texEnv(int target, int pname, int[] param)
          Set texture environment parameters
 void texGen(int coord, int pname, double param)
          Control the generation of texture coordinates
 void texGen(int coord, int pname, double[] param)
          Control the generation of texture coordinates
 void texGen(int coord, int pname, float param)
          Control the generation of texture coordinates
 void texGen(int coord, int pname, float[] param)
          Control the generation of texture coordinates
 void texGen(int coord, int pname, int param)
          Control the generation of texture coordinates
 void texGen(int coord, int pname, int[] param)
          Control the generation of texture coordinates
 void texImage1D(int target, int level, int components, int width, int border, int format, int type, byte[] pixels)
          Specifies a one-dimensional texture map
 void texImage1D(int target, int level, int components, int width, int border, int format, int type, float[] pixels)
          Specifies a one-dimensional texture map
 void texImage1D(int target, int level, int components, int width, int border, int format, int type, int[] pixels)
          Specifies a one-dimensional texture map
 void texImage1D(int target, int level, int components, int width, int border, int format, int type, short[] pixels)
          Specifies a one-dimensional texture map
 void texImage2D(int target, int level, int components, int width, int height, int border, int format, int type, byte[] pixels)
          Specifies a two-dimensional texture map
 void texImage2D(int target, int level, int components, int width, int height, int border, int format, int type, float[] pixels)
          Specifies a two-dimensional texture map
 void texImage2D(int target, int level, int components, int width, int height, int border, int format, int type, int[] pixels)
          Specifies a two-dimensional texture map
 void texImage2D(int target, int level, int components, int width, int height, int border, int format, int type, short[] pixels)
          Specifies a two-dimensional texture map
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, byte[] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, byte[][][][] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float[] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, float[][][][] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int[] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, int[][][][] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short[] pixels)
          Specifies a 3D texture image
 void texImage3D(int target, int level, int internalFormat, int width, int height, int depth, int border, int format, int type, short[][][][] pixels)
          Specifies a 3D texture image
 void texParameter(int target, int pname, float param)
          Set texture parameters
 void texParameter(int target, int pname, float[] param)
          Set texture parameters
 void texParameter(int target, int pname, int param)
          Set texture parameters
 void texParameter(int target, int pname, int[] param)
          Set texture parameters
 void texSubImage1D(int target, int level, int xoffset, int width, int format, int type, byte[] pixels)
          Specifies a one-dimensional texture sub-image
 void texSubImage1D(int target, int level, int xoffset, int width, int format, int type, float[] pixels)
          Specifies a one-dimensional texture sub-image
 void texSubImage1D(int target, int level, int xoffset, int width, int format, int type, int[] pixels)
          Specifies a one-dimensional texture sub-image
 void texSubImage1D(int target, int level, int xoffset, int width, int format, int type, short[] pixels)
          Specifies a one-dimensional texture sub-image
 void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, byte[] pixels)
          Specifies a two-dimensional texture sub-image
 void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, float[] pixels)
          Specifies a two-dimensional texture sub-image
 void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, int[] pixels)
          Specifies a two-dimensional texture sub-image
 void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, short[] pixels)
          Specifies a two-dimensional texture sub-image
 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, byte[] pixels)
          Specifies a three-dimensional texture sub-image
 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, float[] pixels)
          Specifies a three-dimensional texture sub-image
 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, int[] pixels)
          Specifies a three-dimensional texture sub-image
 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, short[] pixels)
          Specifies a three-dimensional texture sub-image
 void translate(double x, double y, double z)
          Multiply the current matrix by a translation matrix
 void translate(float x, float y, float z)
          Multiply the current matrix by a translation matrix
 void vertex(double[] ary)
          Specify a vertex using an array of doubles
 void vertex(double x, double y)
          Polymorphic method for glVertex2d
 void vertex(double x, double y, double z)
          Polymorphic method for glVertex3d
 void vertex(double x, double y, double z, double w)
          Polymorphic method for glVertex4d
 void vertex(float[] ary)
          Specify a vertex using an array of floats
 void vertex(float x, float y)
          Polymorphic method for glVertex2f
 void vertex(float x, float y, float z)
          Polymorphic method for glVertex3f
 void vertex(float x, float y, float z, float w)
          Polymorphic method for glVertex4f
 void vertex(int[] ary)
          Specify a vertex using an array of ints
 void vertex(int x, int y)
          Polymorphic method for glVertex2i
 void vertex(int x, int y, int z)
          Polymorphic method for glVertex3i
 void vertex(int x, int y, int z, int w)
          Polymorphic method for glVertex4i
 void vertex(short[] ary)
          Specify a vertex using an array of shorts
 void vertex(short x, short y)
          Polymorphic method for glVertex2s
 void vertex(short x, short y, short z)
          Polymorphic method for glVertex3s
 void vertex(short x, short y, short z, short w)
          Polymorphic method for glVertex4s
 void viewport(GLDrawable component, int x, int y, int width, int height)
          Set the viewport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version information
Constructor Detail

ProfileGL

public ProfileGL()
Constructor

ProfileGL

public ProfileGL(GL parent)
Constructs a new ProfileGL pipeline with the given pipeline as a parent in the execution stack.

Parameters:
parent - The parent pipeline object
Method Detail

setParent

public void setParent(GL parent)
Sets the parent interface. This must be an instance of the GL class

Specified by:
setParent in interface GL
Parameters:
parent - The parent interface

getParent

public GL getParent()
Returns the parent interface.
Specified by:
getParent in interface GL

setMode

public void setMode(int mode)
Signifies the operating mode of any implementations of this interface, ie, summary or verbose

Specified by:
setMode in interface GL
Parameters:
mode - The operating mode

getMode

public int getMode()
Returns the current operating mode of any implementations of this interface.

Specified by:
getMode in interface GL

calculateStatistics

public void calculateStatistics(int methodIndex,
                                long delta)
This method calculates statistics depending on the start and stop times and the method involved.

Parameters:
methodName - The name of the method. This corresponds to an integer that is used as an array lookup for performing per method execution profiling
startTime - The time the method execution started at
stopTime - The time the method execution stopped

displayStatistics

public void displayStatistics()
This method dumps the total statistics of all invoked OpenGL methods out to allow developers to profile their applications.

glCallLists

public final void glCallLists(int n,
                              int type,
                              byte[] lists)
                       throws OpenGLException
Execute a list of display lists

Specified by:
glCallLists in interface GL
Parameters:
n - Specifies the number of display lists to be executed
type - Specifies the type of values in `lists'. This is actually enforced by the type of the `lists' parameter itself.
lists - Specifies an array containing the name offsets in the display list
Throws:
OpenGLException - General OpenGL error

glCallLists

public final void glCallLists(int n,
                              int type,
                              short[] lists)
                       throws OpenGLException
Execute a list of display lists

Specified by:
glCallLists in interface GL
Parameters:
n - Specifies the number of display lists to be executed
type - Specifies the type of values in `lists'. Since the byte array may contain GL_*BYTE values and GL_[234]_BYTES values, typing is not enforced via the byte array
lists - Specifies an array containing the name offsets in the display list
Throws:
OpenGLException - General OpenGL error

glCallLists

public final void glCallLists(int n,
                              int type,
                              int[] lists)
                       throws OpenGLException
Execute a list of display lists

Specified by:
glCallLists in interface GL
Parameters:
n - Specifies the number of display lists to be executed
type - Specifies the type of values in `lists'. This is actually enforced by the type of the `lists' parameter itself.
lists - Specifies an array containing the name offsets in the display list
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 byte[] indices)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 short[] indices)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 int[] indices)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 byte[] indices,
                                 int offset)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 short[] indices,
                                 int offset)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawElements

public final void glDrawElements(int mode,
                                 int count,
                                 int type,
                                 int[] indices,
                                 int offset)
                          throws OpenGLException
Render primitives from array data

Specified by:
glDrawElements in interface GL
Parameters:
mode - Specifies what kind of primitives to render
count - Specifies the number of elements to be rendered
type - Specifies the type of the values in `indices'. This is actually enforced through the type of the `indices' parameter
indices - Specifies the indices to operate on
Throws:
OpenGLException - General OpenGL error

glDrawPixels

public final void glDrawPixels(int width,
                               int height,
                               int format,
                               int type,
                               byte[] pixels)
                        throws OpenGLException
Write a block of pixels to the frame buffer

Specified by:
glDrawPixels in interface GL
Parameters:
width - Specifies the width of the pixel rectangle
height - Specifies the height of the pixel rectangle
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is enforced by the type of the `pixels' argument
pixels - The pixel data
Throws:
OpenGLException - General OpenGL error

glDrawPixels

public final void glDrawPixels(int width,
                               int height,
                               int format,
                               int type,
                               short[] pixels)
                        throws OpenGLException
Write a block of pixels to the frame buffer

Specified by:
glDrawPixels in interface GL
Parameters:
width - Specifies the width of the pixel rectangle
height - Specifies the height of the pixel rectangle
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is enforced by the type of the `pixels' argument
pixels - The pixel data
Throws:
OpenGLException - General OpenGL error

glDrawPixels

public final void glDrawPixels(int width,
                               int height,
                               int format,
                               int type,
                               int[] pixels)
                        throws OpenGLException
Write a block of pixels to the frame buffer

Specified by:
glDrawPixels in interface GL
Parameters:
width - Specifies the width of the pixel rectangle
height - Specifies the height of the pixel rectangle
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is enforced by the type of the `pixels' argument
pixels - The pixel data
Throws:
OpenGLException - General OpenGL error

glDrawPixels

public final void glDrawPixels(int width,
                               int height,
                               int format,
                               int type,
                               float[] pixels)
                        throws OpenGLException
Write a block of pixels to the frame buffer

Specified by:
glDrawPixels in interface GL
Parameters:
width - Specifies the width of the pixel rectangle
height - Specifies the height of the pixel rectangle
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is enforced by the type of the `pixels' argument
pixels - The pixel data
Throws:
OpenGLException - General OpenGL error

glGetTexImage

public final void glGetTexImage(int target,
                                int level,
                                int format,
                                int type,
                                byte[] pixels)
                         throws OpenGLException
Return a texture image

Specified by:
glGetTexImage in interface GL
Parameters:
target - Specifies which texture is to be obtained. GL_TEXTURE_1D and GL_TEXTURE_2D are accepted
level - Specifies the mipmap level-of-detail number
format - Specifies a pixel format for the returned data
type - Specifies a pixel type for the returned data
pixels - This parameter will contain the returned texture data
Throws:
OpenGLException - General OpenGL error

glGetTexImage

public final void glGetTexImage(int target,
                                int level,
                                int format,
                                int type,
                                short[] pixels)
                         throws OpenGLException
Return a texture image

Specified by:
glGetTexImage in interface GL
Parameters:
target - Specifies which texture is to be obtained. GL_TEXTURE_1D and GL_TEXTURE_2D are accepted
level - Specifies the mipmap level-of-detail number
format - Specifies a pixel format for the returned data
type - Specifies a pixel type for the returned data
pixels - This parameter will contain the returned texture data
Throws:
OpenGLException - General OpenGL error

glGetTexImage

public final void glGetTexImage(int target,
                                int level,
                                int format,
                                int type,
                                int[] pixels)
                         throws OpenGLException
Return a texture image

Specified by:
glGetTexImage in interface GL
Parameters:
target - Specifies which texture is to be obtained. GL_TEXTURE_1D and GL_TEXTURE_2D are accepted
level - Specifies the mipmap level-of-detail number
format - Specifies a pixel format for the returned data
type - Specifies a pixel type for the returned data
pixels - This parameter will contain the returned texture data
Throws:
OpenGLException - General OpenGL error

glGetTexImage

public final void glGetTexImage(int target,
                                int level,
                                int format,
                                int type,
                                float[] pixels)
                         throws OpenGLException
Return a texture image

Specified by:
glGetTexImage in interface GL
Parameters:
target - Specifies which texture is to be obtained. GL_TEXTURE_1D and GL_TEXTURE_2D are accepted
level - Specifies the mipmap level-of-detail number
format - Specifies a pixel format for the returned data
type - Specifies a pixel type for the returned data
pixels - This parameter will contain the returned texture data
Throws:
OpenGLException - General OpenGL error

glReadPixels

public final void glReadPixels(int x,
                               int y,
                               int width,
                               int height,
                               int format,
                               int type,
                               byte[] pixels)
                        throws OpenGLException
Read a block of pixels from the frame buffer

Specified by:
glReadPixels in interface GL
Parameters:
x - Specify the x window coordinate of the first pixel to be read
y - Specify the y window coordinate of the first pixel to be read
width - The width of the pixel rectangle to read
height - The height of the pixel rectangle to read
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
Throws:
OpenGLException - General OpenGL error

glReadPixels

public final void glReadPixels(int x,
                               int y,
                               int width,
                               int height,
                               int format,
                               int type,
                               short[] pixels)
                        throws OpenGLException
Read a block of pixels from the frame buffer

Specified by:
glReadPixels in interface GL
Parameters:
x - Specify the x window coordinate of the first pixel to be read
y - Specify the y window coordinate of the first pixel to be read
width - The width of the pixel rectangle to read
height - The height of the pixel rectangle to read
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
Throws:
OpenGLException - General OpenGL error

glReadPixels

public final void glReadPixels(int x,
                               int y,
                               int width,
                               int height,
                               int format,
                               int type,
                               int[] pixels)
                        throws OpenGLException
Read a block of pixels from the frame buffer

Specified by:
glReadPixels in interface GL
Parameters:
x - Specify the x window coordinate of the first pixel to be read
y - Specify the y window coordinate of the first pixel to be read
width - The width of the pixel rectangle to read
height - The height of the pixel rectangle to read
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
Throws:
OpenGLException - General OpenGL error

glReadPixels

public final void glReadPixels(int x,
                               int y,
                               int width,
                               int height,
                               int format,
                               int type,
                               float[] pixels)
                        throws OpenGLException
Read a block of pixels from the frame buffer

Specified by:
glReadPixels in interface GL
Parameters:
x - Specify the x window coordinate of the first pixel to be read
y - Specify the y window coordinate of the first pixel to be read
width - The width of the pixel rectangle to read
height - The height of the pixel rectangle to read
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               byte[] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               byte[][] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map using slightly more sensible array definitions. You can now specify the array as [width of texture][number of components] which Magician will internally decode and dispatch for you.

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage1D

public final void texImage1D(int target,
                             int level,
                             int components,
                             int width,
                             int border,
                             int format,
                             int type,
                             byte[] pixels)
                      throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
texImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               short[] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               short[][] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map using slightly more sensible array definitions. You can now specify the array as [width of texture][number of components] which Magician will internally decode and dispatch for you.

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage1D

public final void texImage1D(int target,
                             int level,
                             int components,
                             int width,
                             int border,
                             int format,
                             int type,
                             short[] pixels)
                      throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
texImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               int[] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               int[][] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map using slightly more sensible array definitions. You can now specify the array as [width of texture][number of components] which Magician will internally decode and dispatch for you.

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage1D

public final void texImage1D(int target,
                             int level,
                             int components,
                             int width,
                             int border,
                             int format,
                             int type,
                             int[] pixels)
                      throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
texImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               float[] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage1D

public final void glTexImage1D(int target,
                               int level,
                               int components,
                               int width,
                               int border,
                               int format,
                               int type,
                               float[][] pixels)
                        throws OpenGLException
Specifies a one-dimensional texture map using slightly more sensible array definitions. You can now specify the array as [width of texture][number of components] which Magician will internally decode and dispatch for you.

Specified by:
glTexImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage1D

public final void texImage1D(int target,
                             int level,
                             int components,
                             int width,
                             int border,
                             int format,
                             int type,
                             float[] pixels)
                      throws OpenGLException
Specifies a one-dimensional texture map

Specified by:
texImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be either GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
border - The width of the texture border
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               byte[] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               byte[][][] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage2D

public final void texImage2D(int target,
                             int level,
                             int components,
                             int width,
                             int height,
                             int border,
                             int format,
                             int type,
                             byte[] pixels)
                      throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
texImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               short[] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               short[][][] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage2D

public final void texImage2D(int target,
                             int level,
                             int components,
                             int width,
                             int height,
                             int border,
                             int format,
                             int type,
                             short[] pixels)
                      throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
texImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               int[] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               int[][][] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage2D

public final void texImage2D(int target,
                             int level,
                             int components,
                             int width,
                             int height,
                             int border,
                             int format,
                             int type,
                             int[] pixels)
                      throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
texImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               float[] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexImage2D

public final void glTexImage2D(int target,
                               int level,
                               int components,
                               int width,
                               int height,
                               int border,
                               int format,
                               int type,
                               float[][][] pixels)
                        throws OpenGLException
Specifies a two-dimensional texture map with a 3-dimensional array corresponding to [width of texture][height of texture][number of components] For example, we could define a texture of 8x8x4 as [8][8][4] and this routine will correctly internally convert the data to a valid OpenGL texture map.

Specified by:
glTexImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

texImage2D

public final void texImage2D(int target,
                             int level,
                             int components,
                             int width,
                             int height,
                             int border,
                             int format,
                             int type,
                             float[] pixels)
                      throws OpenGLException
Specifies a two-dimensional texture map

Specified by:
texImage2D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data
Throws:
OpenGLException - General OpenGL error

glTexSubImage1D

public final void glTexSubImage1D(int target,
                                  int level,
                                  int xoffset,
                                  int width,
                                  int format,
                                  int type,
                                  byte[] pixels)
                           throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
glTexSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage1D

public final void texSubImage1D(int target,
                                int level,
                                int xoffset,
                                int width,
                                int format,
                                int type,
                                byte[] pixels)
                         throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
texSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage1D

public final void glTexSubImage1D(int target,
                                  int level,
                                  int xoffset,
                                  int width,
                                  int format,
                                  int type,
                                  short[] pixels)
                           throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
glTexSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage1D

public final void texSubImage1D(int target,
                                int level,
                                int xoffset,
                                int width,
                                int format,
                                int type,
                                short[] pixels)
                         throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
texSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage1D

public final void glTexSubImage1D(int target,
                                  int level,
                                  int xoffset,
                                  int width,
                                  int format,
                                  int type,
                                  int[] pixels)
                           throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
glTexSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage1D

public final void texSubImage1D(int target,
                                int level,
                                int xoffset,
                                int width,
                                int format,
                                int type,
                                int[] pixels)
                         throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
texSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage1D

public final void glTexSubImage1D(int target,
                                  int level,
                                  int xoffset,
                                  int width,
                                  int format,
                                  int type,
                                  float[] pixels)
                           throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
glTexSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage1D

public final void texSubImage1D(int target,
                                int level,
                                int xoffset,
                                int width,
                                int format,
                                int type,
                                float[] pixels)
                         throws OpenGLException
Specifies a one-dimensional texture sub-image

Specified by:
texSubImage1D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
width - Specifies the width of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage2D

public final void glTexSubImage2D(int target,
                                  int level,
                                  int xoffset,
                                  int yoffset,
                                  int width,
                                  int height,
                                  int format,
                                  int type,
                                  byte[] pixels)
                           throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
glTexSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage2D

public final void texSubImage2D(int target,
                                int level,
                                int xoffset,
                                int yoffset,
                                int width,
                                int height,
                                int format,
                                int type,
                                byte[] pixels)
                         throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
texSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage2D

public final void glTexSubImage2D(int target,
                                  int level,
                                  int xoffset,
                                  int yoffset,
                                  int width,
                                  int height,
                                  int format,
                                  int type,
                                  short[] pixels)
                           throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
glTexSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage2D

public final void texSubImage2D(int target,
                                int level,
                                int xoffset,
                                int yoffset,
                                int width,
                                int height,
                                int format,
                                int type,
                                short[] pixels)
                         throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
texSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage2D

public final void glTexSubImage2D(int target,
                                  int level,
                                  int xoffset,
                                  int yoffset,
                                  int width,
                                  int height,
                                  int format,
                                  int type,
                                  int[] pixels)
                           throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
glTexSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage2D

public final void texSubImage2D(int target,
                                int level,
                                int xoffset,
                                int yoffset,
                                int width,
                                int height,
                                int format,
                                int type,
                                int[] pixels)
                         throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
texSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage2D

public final void glTexSubImage2D(int target,
                                  int level,
                                  int xoffset,
                                  int yoffset,
                                  int width,
                                  int height,
                                  int format,
                                  int type,
                                  float[] pixels)
                           throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
glTexSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage2D

public final void texSubImage2D(int target,
                                int level,
                                int xoffset,
                                int yoffset,
                                int width,
                                int height,
                                int format,
                                int type,
                                float[] pixels)
                         throws OpenGLException
Specifies a two-dimensional texture sub-image

Specified by:
texSubImage2D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glGetString

public final java.lang.String glGetString(int name)
                                   throws OpenGLException
Returns a string describing the current GL connection

Specified by:
glGetString in interface GL
Parameters:
name - Specifies a symbolic constant defining the OpenGL implementation specific information to return. Legal values are GL_VENDOR, GL_RENDERER, GL_VERSION or GL_EXTENSIONS
Throws:
OpenGLException - General OpenGL error

getString

public final java.lang.String getString(int name)
                                 throws OpenGLException
Polymorphic definition of glGetString

Specified by:
getString in interface GL
Parameters:
name - Specifies a symbolic constant defining the OpenGL implementation specific information to return. Legal values are GL_VENDOR, GL_RENDERER, GL_VERSION or GL_EXTENSIONS
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glGetString(int)

vertex

public final void vertex(short x,
                         short y)
                  throws OpenGLException
Polymorphic method for glVertex2s

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex2s(short, short)

vertex

public final void vertex(int x,
                         int y)
                  throws OpenGLException
Polymorphic method for glVertex2i

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex2i(int, int)

vertex

public final void vertex(float x,
                         float y)
                  throws OpenGLException
Polymorphic method for glVertex2f

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex2f(float, float)

vertex

public final void vertex(double x,
                         double y)
                  throws OpenGLException
Polymorphic method for glVertex2d

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex2d(double, double)

vertex

public final void vertex(short x,
                         short y,
                         short z)
                  throws OpenGLException
Polymorphic method for glVertex3s

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex3s(short, short, short)

vertex

public final void vertex(int x,
                         int y,
                         int z)
                  throws OpenGLException
Polymorphic method for glVertex3i

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex3i(int, int, int)

vertex

public final void vertex(float x,
                         float y,
                         float z)
                  throws OpenGLException
Polymorphic method for glVertex3f

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex3f(float, float, float)

vertex

public final void vertex(double x,
                         double y,
                         double z)
                  throws OpenGLException
Polymorphic method for glVertex3d

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex3d(double, double, double)

vertex

public final void vertex(short x,
                         short y,
                         short z,
                         short w)
                  throws OpenGLException
Polymorphic method for glVertex4s

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
w - The w-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex4s(short, short, short, short)

vertex

public final void vertex(int x,
                         int y,
                         int z,
                         int w)
                  throws OpenGLException
Polymorphic method for glVertex4i

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
w - The w-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex4i(int, int, int, int)

vertex

public final void vertex(float x,
                         float y,
                         float z,
                         float w)
                  throws OpenGLException
Polymorphic method for glVertex4f

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
w - The w-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex4f(float, float, float, float)

vertex

public final void vertex(double x,
                         double y,
                         double z,
                         double w)
                  throws OpenGLException
Polymorphic method for glVertex4d

Specified by:
vertex in interface GL
Parameters:
x - The x-coordinate of the vertex
y - The y-coordinate of the vertex
z - The z-coordinate of the vertex
w - The w-coordinate of the vertex
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glVertex4d(double, double, double, double)

vertex

public final void vertex(short[] ary)
                  throws OpenGLException
Specify a vertex using an array of shorts

Specified by:
vertex in interface GL
Parameters:
ary - Array containing vertex data
Throws:
OpenGLException - Thrown when an array with invalid length is specified

vertex

public final void vertex(int[] ary)
                  throws OpenGLException
Specify a vertex using an array of ints

Specified by:
vertex in interface GL
Parameters:
ary - Array containing vertex data
Throws:
OpenGLException - Thrown when an array with invalid length is specified

vertex

public final void vertex(float[] ary)
                  throws OpenGLException
Specify a vertex using an array of floats

Specified by:
vertex in interface GL
Parameters:
ary - Array containing vertex data
Throws:
OpenGLException - Thrown when an array with invalid length is specified

vertex

public final void vertex(double[] ary)
                  throws OpenGLException
Specify a vertex using an array of doubles

Specified by:
vertex in interface GL
Parameters:
ary - Array containing vertex data
Throws:
OpenGLException - Thrown when an array with invalid length is specified

color

public final void color(byte r,
                        byte g,
                        byte b)
                 throws OpenGLException
Polymorphic method for glColor3b

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor3b(byte, byte, byte)

color

public final void color(short r,
                        short g,
                        short b)
                 throws OpenGLException
Polymorphic method for glColor3s

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor3s(short, short, short)

color

public final void color(int r,
                        int g,
                        int b)
                 throws OpenGLException
Polymorphic method for glColor3i

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor3i(int, int, int)

color

public final void color(float r,
                        float g,
                        float b)
                 throws OpenGLException
Polymorphic method for glColor3f

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor3f(float, float, float)

color

public final void color(double r,
                        double g,
                        double b)
                 throws OpenGLException
Polymorphic method for glColor3d

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor3d(double, double, double)

color

public final void color(byte r,
                        byte g,
                        byte b,
                        byte a)
                 throws OpenGLException
Polymorphic method for glColor4b

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor4b(byte, byte, byte, byte)

color

public final void color(short r,
                        short g,
                        short b,
                        short a)
                 throws OpenGLException
Polymorphic method for glColor4s

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor4s(short, short, short, short)

color

public final void color(int r,
                        int g,
                        int b,
                        int a)
                 throws OpenGLException
Polymorphic method for glColor4i

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor4i(int, int, int, int)

color

public final void color(float r,
                        float g,
                        float b,
                        float a)
                 throws OpenGLException
Polymorphic method for glColor4f

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor4f(float, float, float, float)

color

public final void color(double r,
                        double g,
                        double b,
                        double a)
                 throws OpenGLException
Polymorphic method for glColor4d

Specified by:
color in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glColor4d(double, double, double, double)

color

public final void color(byte[] ary)
                 throws OpenGLException
Polymorphic method for glColor3bv and glColor4bv

Specified by:
color in interface GL
Throws:
OpenGLException - Thrown when the length of colour data is invalid
See Also:
GL.glColor3bv(byte[]), GL.glColor4bv(byte[])

color

public final void color(short[] ary)
                 throws OpenGLException
Polymorphic method for glColor3sv and glColor4sv

Specified by:
color in interface GL
Parameters:
ary - An array containing colour data
Throws:
OpenGLException - Thrown when the length of colour data is invalid
See Also:
GL.glColor3sv(short[]), GL.glColor4sv(short[])

color

public final void color(int[] ary)
                 throws OpenGLException
Polymorphic method for glColor3iv and glColor4iv

Specified by:
color in interface GL
Parameters:
ary - An array containing colour data
Throws:
OpenGLException - Thrown when the length of colour data is invalid
See Also:
GL.glColor3iv(int[]), GL.glColor4iv(int[])

color

public final void color(float[] ary)
                 throws OpenGLException
Polymorphic method for glColor3fv and glColour4fv

Specified by:
color in interface GL
Parameters:
ary - An array containing colour data
Throws:
OpenGLException - Thrown when the length of colour data is invalid
See Also:
GL.glColor3fv(float[]), GL.glColor4fv(float[])

color

public final void color(double[] ary)
                 throws OpenGLException
Polymorphic method for glColor3dv and glColor4dv

Specified by:
color in interface GL
Parameters:
ary - An array containing colour data
Throws:
OpenGLException - Thrown when the length of colour data is invalid
See Also:
GL.glColor3dv(double[]), GL.glColor4dv(double[])

texCoord

public final void texCoord(short s)
                    throws OpenGLException
Polymorphic method for glTexCoord1s

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord1s(short)

texCoord

public final void texCoord(int s)
                    throws OpenGLException
Polymorphic method for glTexCoord1i

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord1i(int)

texCoord

public final void texCoord(float s)
                    throws OpenGLException
Polymorphic method for glTexCoord1f

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord1f(float)

texCoord

public final void texCoord(double s)
                    throws OpenGLException
Polymorphic method for glTexCoord1d

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord1d(double)

texCoord

public final void texCoord(short s,
                           short t)
                    throws OpenGLException
Polymorphic method for glTexCoord2s

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord2s(short, short)

texCoord

public final void texCoord(int s,
                           int t)
                    throws OpenGLException
Polymorphic method for glTexCoord2i

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord2i(int, int)

texCoord

public final void texCoord(float s,
                           float t)
                    throws OpenGLException
Polymorphic method for glTexCoord2f

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord2f(float, float)

texCoord

public final void texCoord(double s,
                           double t)
                    throws OpenGLException
Polymorphic method for glTexCoord2d

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord2d(double, double)

texCoord

public final void texCoord(short s,
                           short t,
                           short r)
                    throws OpenGLException
Polymorphic method for glTexCoord3s

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord3s(short, short, short)

texCoord

public final void texCoord(int s,
                           int t,
                           int r)
                    throws OpenGLException
Polymorphic method for glTexCoord3i

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord3i(int, int, int)

texCoord

public final void texCoord(float s,
                           float t,
                           float r)
                    throws OpenGLException
Polymorphic method for glTexCoord3f

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord3f(float, float, float)

texCoord

public final void texCoord(double s,
                           double t,
                           double r)
                    throws OpenGLException
Polymorphic method for glTexCoord3d

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord3d(double, double, double)

texCoord

public final void texCoord(short s,
                           short t,
                           short r,
                           short q)
                    throws OpenGLException
Polymorphic method for glTexCoord4s

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord4s(short, short, short, short)

texCoord

public final void texCoord(int s,
                           int t,
                           int r,
                           int q)
                    throws OpenGLException
Polymorphic method for glTexCoord4i

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord4i(int, int, int, int)

texCoord

public final void texCoord(float s,
                           float t,
                           float r,
                           float q)
                    throws OpenGLException
Polymorphic method for glTexCoord4f

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord4f(float, float, float, float)

texCoord

public final void texCoord(double s,
                           double t,
                           double r,
                           double q)
                    throws OpenGLException
Polymorphic method for glTexCoord4d

Specified by:
texCoord in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glTexCoord4d(double, double, double, double)

texCoord

public final void texCoord(short[] ary)
                    throws OpenGLException
Polymorphic method for glTexCoord[1234]sv

Specified by:
texCoord in interface GL
Parameters:
ary - An array containing texture coordinate data
Throws:
OpenGLException - Thrown when size of array data is invalid
See Also:
GL.glTexCoord1sv(short[]), GL.glTexCoord2sv(short[]), GL.glTexCoord3sv(short[]), GL.glTexCoord4sv(short[])

texCoord

public final void texCoord(int[] ary)
                    throws OpenGLException
Polymorphic method for glTexCoord[1234]iv

Specified by:
texCoord in interface GL
Parameters:
ary - An array containing texture coordinate data
Throws:
OpenGLException - Thrown when size of array data is invalid
See Also:
GL.glTexCoord1iv(int[]), GL.glTexCoord2iv(int[]), GL.glTexCoord3iv(int[]), GL.glTexCoord4iv(int[])

texCoord

public final void texCoord(float[] ary)
                    throws OpenGLException
Polymorphic method for glTexCoord[1234]fv

Specified by:
texCoord in interface GL
Parameters:
ary - An array containing texture coordinate data
Throws:
OpenGLException - Thrown when size of array data is invalid
See Also:
GL.glTexCoord1fv(float[]), GL.glTexCoord2fv(float[]), GL.glTexCoord3fv(float[]), GL.glTexCoord4fv(float[])

texCoord

public final void texCoord(double[] ary)
                    throws OpenGLException
Polymorphic method for glTexCoord[1234]dv

Specified by:
texCoord in interface GL
Parameters:
ary - An array containing texture coordinate data
Throws:
OpenGLException - Thrown when size of array data is invalid
See Also:
GL.glTexCoord1dv(double[]), GL.glTexCoord2dv(double[]), GL.glTexCoord3dv(double[]), GL.glTexCoord4dv(double[])

rasterPos

public final void rasterPos(short x,
                            short y)
                     throws OpenGLException
Polymorphic definition for glRasterPos2s

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2s(short, short)

rasterPos

public final void rasterPos(int x,
                            int y)
                     throws OpenGLException
Polymorphic definition for glRasterPos2i

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2i(int, int)

rasterPos

public final void rasterPos(float x,
                            float y)
                     throws OpenGLException
Polymorphic definition for glRasterPos2f

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2f(float, float)

rasterPos

public final void rasterPos(double x,
                            double y)
                     throws OpenGLException
Polymorphic definition for glRasterPos2d

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2d(double, double)

rasterPos

public final void rasterPos(short x,
                            short y,
                            short z)
                     throws OpenGLException
Polymorphic definition for glRasterPos3s

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos3s(short, short, short)

rasterPos

public final void rasterPos(int x,
                            int y,
                            int z)
                     throws OpenGLException
Polymorphic definition for glRasterPos3i

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos3i(int, int, int)

rasterPos

public final void rasterPos(float x,
                            float y,
                            float z)
                     throws OpenGLException
Polymorphic definition for glRasterPos3f

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos3f(float, float, float)

rasterPos

public final void rasterPos(double x,
                            double y,
                            double z)
                     throws OpenGLException
Polymorphic definition for glRasterPos3d

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos3d(double, double, double)

rasterPos

public final void rasterPos(short x,
                            short y,
                            short z,
                            short w)
                     throws OpenGLException
Polymorphic definition for glRasterPos4s

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
w - The w object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos4s(short, short, short, short)

rasterPos

public final void rasterPos(int x,
                            int y,
                            int z,
                            int w)
                     throws OpenGLException
Polymorphic definition for glRasterPos4i

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
w - The w object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos4i(int, int, int, int)

rasterPos

public final void rasterPos(float x,
                            float y,
                            float z,
                            float w)
                     throws OpenGLException
Polymorphic definition for glRasterPos4f

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
w - The w object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos4f(float, float, float, float)

rasterPos

public final void rasterPos(double x,
                            double y,
                            double z,
                            double w)
                     throws OpenGLException
Polymorphic definition for glRasterPos4d

Specified by:
rasterPos in interface GL
Parameters:
x - The x object coordinate for the raster position
y - The y object coordinate for the raster position
z - The z object coordinate for the raster position
w - The w object coordinate for the raster position
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos4d(double, double, double, double)

rasterPos

public final void rasterPos(short[] ary)
                     throws OpenGLException
Polymorphic definition for glRasterPos[234]sv

Specified by:
rasterPos in interface GL
Parameters:
ary - An array containing raster positional data
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2sv(short[]), GL.glRasterPos3sv(short[]), GL.glRasterPos4sv(short[])

rasterPos

public final void rasterPos(int[] ary)
                     throws OpenGLException
Polymorphic definition for glRasterPos[234]iv

Specified by:
rasterPos in interface GL
Parameters:
ary - An array containing raster positional data
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2iv(int[]), GL.glRasterPos3iv(int[]), GL.glRasterPos4iv(int[])

rasterPos

public final void rasterPos(float[] ary)
                     throws OpenGLException
Polymorphic definition for glRasterPos[234]fv

Specified by:
rasterPos in interface GL
Parameters:
ary - An array containing raster positional data
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2fv(float[]), GL.glRasterPos3fv(float[]), GL.glRasterPos4fv(float[])

rasterPos

public final void rasterPos(double[] ary)
                     throws OpenGLException
Polymorphic definition for glRasterPos[234]dv

Specified by:
rasterPos in interface GL
Parameters:
ary - An array containing raster positional data
Throws:
OpenGLException - General OpenGL error
See Also:
GL.glRasterPos2dv(double[]), GL.glRasterPos3dv(double[]), GL.glRasterPos4dv(double[])

glVertexPointer

public final void glVertexPointer(int size,
                                  int type,
                                  int stride,
                                  short[] ptr)
                           throws OpenGLException
Define an array of vertex data

Specified by:
glVertexPointer in interface GL
Parameters:
size - Specifies the number of coordinates per vertex
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive vertices
ptr - Specifies the vertex data
Throws:
OpenGLException - General OpenGL Error

glVertexPointer

public final void glVertexPointer(int size,
                                  int type,
                                  int stride,
                                  int[] ptr)
                           throws OpenGLException
Define an array of vertex data

Specified by:
glVertexPointer in interface GL
Parameters:
size - Specifies the number of coordinates per vertex
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive vertices
ptr - Specifies the vertex data
Throws:
OpenGLException - General OpenGL Error

glVertexPointer

public final void glVertexPointer(int size,
                                  int type,
                                  int stride,
                                  float[] ptr)
                           throws OpenGLException
Define an array of vertex data

Specified by:
glVertexPointer in interface GL
Parameters:
size - Specifies the number of coordinates per vertex
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive vertices
ptr - Specifies the vertex data
Throws:
OpenGLException - General OpenGL Error

glVertexPointer

public final void glVertexPointer(int size,
                                  int type,
                                  int stride,
                                  double[] ptr)
                           throws OpenGLException
Define an array of vertex data

Specified by:
glVertexPointer in interface GL
Parameters:
size - Specifies the number of coordinates per vertex
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive vertices
ptr - Specifies the vertex data
Throws:
OpenGLException - General OpenGL Error

glColorPointer

public final void glColorPointer(int size,
                                 int type,
                                 int stride,
                                 byte[] ptr)
                          throws OpenGLException
Define an array of colours

Specified by:
glColorPointer in interface GL
Parameters:
size - Specifies the number of components per colour. Must be 3 or 4
type - Specifies the data type of each colour component in the array.
stride - Specifies the byte offset between consecutive colours.
pointer - Specifies the colour data
Throws:
OpenGLException - General OpenGL error

glColorPointer

public final void glColorPointer(int size,
                                 int type,
                                 int stride,
                                 short[] ptr)
                          throws OpenGLException
Define an array of colours

Specified by:
glColorPointer in interface GL
Parameters:
size - Specifies the number of components per colour. Must be 3 or 4
type - Specifies the data type of each colour component in the array.
stride - Specifies the byte offset between consecutive colours.
pointer - Specifies the colour data
Throws:
OpenGLException - General OpenGL error

glColorPointer

public final void glColorPointer(int size,
                                 int type,
                                 int stride,
                                 int[] ptr)
                          throws OpenGLException
Define an array of colours

Specified by:
glColorPointer in interface GL
Parameters:
size - Specifies the number of components per colour. Must be 3 or 4
type - Specifies the data type of each colour component in the array.
stride - Specifies the byte offset between consecutive colours.
pointer - Specifies the colour data
Throws:
OpenGLException - General OpenGL error

glColorPointer

public final void glColorPointer(int size,
                                 int type,
                                 int stride,
                                 float[] ptr)
                          throws OpenGLException
Define an array of colours

Specified by:
glColorPointer in interface GL
Parameters:
size - Specifies the number of components per colour. Must be 3 or 4
type - Specifies the data type of each colour component in the array.
stride - Specifies the byte offset between consecutive colours.
pointer - Specifies the colour data
Throws:
OpenGLException - General OpenGL error

glColorPointer

public final void glColorPointer(int size,
                                 int type,
                                 int stride,
                                 double[] ptr)
                          throws OpenGLException
Define an array of colours

Specified by:
glColorPointer in interface GL
Parameters:
size - Specifies the number of components per colour. Must be 3 or 4
type - Specifies the data type of each colour component in the array.
stride - Specifies the byte offset between consecutive colours.
pointer - Specifies the colour data
Throws:
OpenGLException - General OpenGL error

glNormalPointer

public final void glNormalPointer(int type,
                                  int stride,
                                  byte[] ptr)
                           throws OpenGLException
Defines an array of normals

Specified by:
glNormalPointer in interface GL
Parameters:
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive normals
ptr - Specifies the normal data
Throws:
OpenGLException - General OpenGL Error

glNormalPointer

public final void glNormalPointer(int type,
                                  int stride,
                                  short[] ptr)
                           throws OpenGLException
Defines an array of normals

Specified by:
glNormalPointer in interface GL
Parameters:
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive normals
ptr - Specifies the normal data
Throws:
OpenGLException - General OpenGL Error

glNormalPointer

public final void glNormalPointer(int type,
                                  int stride,
                                  int[] ptr)
                           throws OpenGLException
Defines an array of normals

Specified by:
glNormalPointer in interface GL
Parameters:
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive normals
ptr - Specifies the normal data
Throws:
OpenGLException - General OpenGL Error

glNormalPointer

public final void glNormalPointer(int type,
                                  int stride,
                                  float[] ptr)
                           throws OpenGLException
Defines an array of normals

Specified by:
glNormalPointer in interface GL
Parameters:
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive normals
ptr - Specifies the normal data
Throws:
OpenGLException - General OpenGL Error

glNormalPointer

public final void glNormalPointer(int type,
                                  int stride,
                                  double[] ptr)
                           throws OpenGLException
Defines an array of normals

Specified by:
glNormalPointer in interface GL
Parameters:
type - Specifies the data type of each coordinate in the array
stride - Specifies the byte offset between consecutive normals
ptr - Specifies the normal data
Throws:
OpenGLException - General OpenGL Error

glIndexPointer

public final void glIndexPointer(int type,
                                 int stride,
                                 byte[] ptr)
                          throws OpenGLException
Defines an array of colour indices

Specified by:
glIndexPointer in interface GL
Parameters:
type - Specifies the data type of each colour index in the array
stride - Specifies the byte offset between consecutive colour indices
ptr - Specifies the colour index data
Throws:
OpenGLException - General OpenGL Error

glIndexPointer

public final void glIndexPointer(int type,
                                 int stride,
                                 short[] ptr)
                          throws OpenGLException
Defines an array of colour indices

Specified by:
glIndexPointer in interface GL
Parameters:
type - Specifies the data type of each colour index in the array
stride - Specifies the byte offset between consecutive colour indices
ptr - Specifies the colour index data
Throws:
OpenGLException - General OpenGL Error

glIndexPointer

public final void glIndexPointer(int type,
                                 int stride,
                                 int[] ptr)
                          throws OpenGLException
Defines an array of colour indices

Specified by:
glIndexPointer in interface GL
Parameters:
type - Specifies the data type of each colour index in the array
stride - Specifies the byte offset between consecutive colour indices
ptr - Specifies the colour index data
Throws:
OpenGLException - General OpenGL Error

glIndexPointer

public final void glIndexPointer(int type,
                                 int stride,
                                 float[] ptr)
                          throws OpenGLException
Defines an array of colour indices

Specified by:
glIndexPointer in interface GL
Parameters:
type - Specifies the data type of each colour index in the array
stride - Specifies the byte offset between consecutive colour indices
ptr - Specifies the colour index data
Throws:
OpenGLException - General OpenGL Error

glIndexPointer

public final void glIndexPointer(int type,
                                 int stride,
                                 double[] ptr)
                          throws OpenGLException
Defines an array of colour indices

Specified by:
glIndexPointer in interface GL
Parameters:
type - Specifies the data type of each colour index in the array
stride - Specifies the byte offset between consecutive colour indices
ptr - Specifies the colour index data
Throws:
OpenGLException - General OpenGL Error

glTexCoordPointer

public final void glTexCoordPointer(int size,
                                    int type,
                                    int stride,
                                    short[] ptr)
                             throws OpenGLException
Defines an array of texture coordinates

Specified by:
glTexCoordPointer in interface GL
Parameters:
size - Specifies the number of coordinates in each array element
type - Specifies the data type of each texture coordinate
stride - Specifies the byte offset between each texture coordinate
ptr - Specifies the texture coordinate data
Throws:
OpenGLException - General OpenGL Error

glTexCoordPointer

public final void glTexCoordPointer(int size,
                                    int type,
                                    int stride,
                                    int[] ptr)
                             throws OpenGLException
Defines an array of texture coordinates

Specified by:
glTexCoordPointer in interface GL
Parameters:
size - Specifies the number of coordinates in each array element
type - Specifies the data type of each texture coordinate
stride - Specifies the byte offset between each texture coordinate
ptr - Specifies the texture coordinate data
Throws:
OpenGLException - General OpenGL Error

glTexCoordPointer

public final void glTexCoordPointer(int size,
                                    int type,
                                    int stride,
                                    float[] ptr)
                             throws OpenGLException
Defines an array of texture coordinates

Specified by:
glTexCoordPointer in interface GL
Parameters:
size - Specifies the number of coordinates in each array element
type - Specifies the data type of each texture coordinate
stride - Specifies the byte offset between each texture coordinate
ptr - Specifies the texture coordinate data
Throws:
OpenGLException - General OpenGL Error

glTexCoordPointer

public final void glTexCoordPointer(int size,
                                    int type,
                                    int stride,
                                    double[] ptr)
                             throws OpenGLException
Defines an array of texture coordinates

Specified by:
glTexCoordPointer in interface GL
Parameters:
size - Specifies the number of coordinates in each array element
type - Specifies the data type of each texture coordinate
stride - Specifies the byte offset between each texture coordinate
ptr - Specifies the texture coordinate data
Throws:
OpenGLException - General OpenGL Error

glInterleavedArrays

public final void glInterleavedArrays(int format,
                                      int stride,
                                      float[] pointer)
                               throws OpenGLException
Initializes vertex, colour and normal arrays for complex interleaving

Specified by:
glInterleavedArrays in interface GL
Parameters:
size - Specifies the number of coordinates in each array element
type - Specifies the data type of each texture coordinate
stride - Specifies the byte offset between each texture coordinate
ptr - Specifies the texture coordinate data
Throws:
OpenGLException - General OpenGL Error

glMap1f

public final void glMap1f(int target,
                          float u1,
                          float u2,
                          int stride,
                          int order,
                          float[][] points)
                   throws OpenGLException
Define a one-dimensional evaluator

Specified by:
glMap1f in interface GL
Parameters:
target - Specifies the kind of values generated by the evaluator
u1 - Linear mapping
u2 - Linear mapping
stride - Specifies the number of floats or doubles between the beginning of one control point and the next
order - Specifies the number of control points
points - Specifies the control points
Throws:
OpenGLException - General OpenGL Error

glMap1d

public final void glMap1d(int target,
                          double u1,
                          double u2,
                          int stride,
                          int order,
                          double[][] points)
                   throws OpenGLException
Define a one-dimensional evaluator

Specified by:
glMap1d in interface GL
Parameters:
target - Specifies the kind of values generated by the evaluator
u1 - Linear mapping
u2 - Linear mapping
stride - Specifies the number of floats or doubles between the beginning of one control point and the next
order - Specifies the number of control points
points - Specifies the control points
Throws:
OpenGLException - General OpenGL Error

glMap2f

public final void glMap2f(int target,
                          float u1,
                          float u2,
                          int ustride,
                          int uorder,
                          float v1,
                          float v2,
                          int vstride,
                          int vorder,
                          float[][][] points)
                   throws OpenGLException
Define a two-dimensional evaluator

Specified by:
glMap2f in interface GL
Parameters:
target - Specifies the kind of values generated by the evaluator
u1 - Linear mapping
u2 - Linear mapping
ustride - Specifies the number of floats or doubles between consecutive control points in the parametric u direction
uorder - Specifies the number of control points in the parametric u direction
v1 - Linear mapping
v2 - Linear mapping
vstride - Specifies the number of floats or doubles between consecutive control points in the parametric v direction
vorder - Specifies the number of control points in the parametric v direction
points - The control points
Throws:
OpenGLException - General OpenGL Error

glMap2d

public final void glMap2d(int target,
                          float u1,
                          float u2,
                          int ustride,
                          int uorder,
                          float v1,
                          float v2,
                          int vstride,
                          int vorder,
                          double[][][] points)
                   throws OpenGLException
Define a two-dimensional evaluator

Specified by:
glMap2d in interface GL
Parameters:
target - Specifies the kind of values generated by the evaluator
u1 - Linear mapping
u2 - Linear mapping
ustride - Specifies the number of floats or doubles between consecutive control points in the parametric u direction
uorder - Specifies the number of control points in the parametric u direction
v1 - Linear mapping
v2 - Linear mapping
vstride - Specifies the number of floats or doubles between consecutive control points in the parametric v direction
vorder - Specifies the number of control points in the parametric v direction
points - The control points
Throws:
OpenGLException - General OpenGL Error

glRenderMode

public final int glRenderMode(int mode)
                       throws OpenGLException
Set rasterization mode
Specified by:
glRenderMode in interface GL
Parameters:
mode - Specifies the rasterization mode

Throws:
OpenGLException - General OpenGL Error

renderMode

public final int renderMode(int mode)
                     throws OpenGLException
Set rasterization mode
Specified by:
renderMode in interface GL
Parameters:
mode - Specifies the rasterization mode

Throws:
OpenGLException - General OpenGL Error

glGetError

public final int glGetError()
                     throws OpenGLException
Return error information

Specified by:
glGetError in interface GL
Throws:
OpenGLException - General OpenGL Error

getError

public final int getError()
                   throws OpenGLException
Return error information

Specified by:
getError in interface GL
Throws:
OpenGLException - General OpenGL Error

glViewport

public final void glViewport(GLDrawable component,
                             int x,
                             int y,
                             int width,
                             int height)
                      throws OpenGLException
Set the viewport
Specified by:
glViewport in interface GL
Parameters:
x - Lower-left viewport corner x-coordinate
y - Lower-left viewport corner y-coordinate
width - Width of the viewport
height - Height of the viewport

Throws:
OpenGLException - General OpenGL Error
See Also:
viewport(com.hermetica.magician.GLDrawable, int, int, int, int)

viewport

public void viewport(GLDrawable component,
                     int x,
                     int y,
                     int width,
                     int height)
              throws OpenGLException
Set the viewport
Specified by:
viewport in interface GL
Parameters:
x - Lower-left viewport corner x-coordinate
y - Lower-left viewport corner y-coordinate
width - Width of the viewport
height - Height of the viewport

Throws:
OpenGLException - General OpenGL Error
See Also:
glViewport(com.hermetica.magician.GLDrawable, int, int, int, int)

glGenLists

public final int glGenLists(int range)
                     throws OpenGLException
Generate a contiguous set of empty display lists
Specified by:
glGenLists in interface GL
Parameters:
range - The number of contiguous display lists to generate

Throws:
OpenGLException - General OpenGL Error

genLists

public final int genLists(int range)
                   throws OpenGLException
Generate a contiguous set of empty display lists
Specified by:
genLists in interface GL
Parameters:
range - The number of contiguous display lists to generate

Throws:
OpenGLException - General OpenGL Error

glAreTexturesResident

public final boolean glAreTexturesResident(int n,
                                           int[] textures,
                                           boolean[] residence)
                                    throws OpenGLException
Determine if textures are loaded in texture memory

Specified by:
glAreTexturesResident in interface GL
Parameters:
n - Specifies the number of textures to be queried
textures - Specifies an array containing the names of the textures to be queried
residences - Specifies an array in which the results of the texture residency status are returned
Throws:
OpenGLException - General OpenGL error

areTexturesResident

public final boolean areTexturesResident(int n,
                                         int[] textures,
                                         boolean[] residence)
                                  throws OpenGLException
Determine if textures are loaded in texture memory

Specified by:
areTexturesResident in interface GL
Parameters:
n - Specifies the number of textures to be queried
textures - Specifies an array containing the names of the textures to be queried
residences - Specifies an array in which the results of the texture residency status are returned
Throws:
OpenGLException - General OpenGL error

glIsEnabled

public final boolean glIsEnabled(int cap)
                          throws OpenGLException
Test whether or not a capability is enabled

Specified by:
glIsEnabled in interface GL
Parameters:
cap - The capability to be queried
Throws:
OpenGLException - General OpenGL error

isEnabled

public final boolean isEnabled(int cap)
                        throws OpenGLException
Test whether or not a capability is enabled

Specified by:
isEnabled in interface GL
Parameters:
cap - The capability to be queried
Throws:
OpenGLException - General OpenGL error

glIsList

public final boolean glIsList(int list)
                       throws OpenGLException
Determine if a name corresponds to a display list

Specified by:
glIsList in interface GL
Parameters:
list - The potential display list name
Throws:
OpenGLException - General OpenGL error

isList

public final boolean isList(int list)
                     throws OpenGLException
Determine if a name corresponds to a display list

Specified by:
isList in interface GL
Parameters:
list - The potential display list name
Throws:
OpenGLException - General OpenGL error

glIsTexture

public final boolean glIsTexture(int texture)
                          throws OpenGLException
Determine if a name corresponds to a texture

Specified by:
glIsTexture in interface GL
Parameters:
The - potential texture object
Throws:
OpenGLException - General OpenGL error

isTexture

public final boolean isTexture(int texture)
                        throws OpenGLException
Determine if a name corresponds to a texture

Specified by:
isTexture in interface GL
Parameters:
The - potential texture object
Throws:
OpenGLException - General OpenGL error

glDrawRangeElements

public void glDrawRangeElements(int mode,
                                int start,
                                int end,
                                int count,
                                int type,
                                byte[] indices)
                         throws OpenGLException
Draw a range of array elements

Specified by:
glDrawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

drawRangeElements

public void drawRangeElements(int mode,
                              int start,
                              int end,
                              int count,
                              int type,
                              byte[] indices)
                       throws OpenGLException
Draw a range of array elements

Specified by:
drawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

glDrawRangeElements

public void glDrawRangeElements(int mode,
                                int start,
                                int end,
                                int count,
                                int type,
                                short[] indices)
                         throws OpenGLException
Draw a range of array elements

Specified by:
glDrawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

drawRangeElements

public void drawRangeElements(int mode,
                              int start,
                              int end,
                              int count,
                              int type,
                              short[] indices)
                       throws OpenGLException
Draw a range of array elements

Specified by:
drawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

glDrawRangeElements

public void glDrawRangeElements(int mode,
                                int start,
                                int end,
                                int count,
                                int type,
                                int[] indices)
                         throws OpenGLException
Draw a range of array elements

Specified by:
glDrawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

drawRangeElements

public void drawRangeElements(int mode,
                              int start,
                              int end,
                              int count,
                              int type,
                              int[] indices)
                       throws OpenGLException
Draw a range of array elements

Specified by:
drawRangeElements in interface GL
Parameters:
mode - Specifies the type of primitives to render
start - The start index
The - end index
The - number of elements to draw
The - data type of the elements
indices - The array elements

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         byte[] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       byte[] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         byte[][][][] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       byte[][][][] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         short[] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       short[] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         short[][][][] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       short[][][][] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         int[] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       int[] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         int[][][][] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       int[][][][] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         float[] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       float[] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexImage3D

public void glTexImage3D(int target,
                         int level,
                         int internalFormat,
                         int width,
                         int height,
                         int depth,
                         int border,
                         int format,
                         int type,
                         float[][][][] pixels)
                  throws OpenGLException
Specifies a 3D texture image

Specified by:
glTexImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

texImage3D

public void texImage3D(int target,
                       int level,
                       int internalFormat,
                       int width,
                       int height,
                       int depth,
                       int border,
                       int format,
                       int type,
                       float[][][][] pixels)
                throws OpenGLException
Specifies a 3D texture image

Specified by:
texImage3D in interface GL
Parameters:
target - Specifies the target texture
level - Specifies the mipmap level-of-detail number
components - Specifies the number of colour components in the texture
width - The width of the texture image
height - The height of the texture image
depth - The depth of the texture image
border - The width of the texture border
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data. This is actually ignored. The type is enforced via the pixel data type in the `pixels' argument
pixels - Specifies the pixel data

glTexSubImage3D

public void glTexSubImage3D(int target,
                            int level,
                            int xoffset,
                            int yoffset,
                            int zoffset,
                            int width,
                            int height,
                            int depth,
                            int format,
                            int type,
                            byte[] pixels)
                     throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
glTexSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage3D

public void texSubImage3D(int target,
                          int level,
                          int xoffset,
                          int yoffset,
                          int zoffset,
                          int width,
                          int height,
                          int depth,
                          int format,
                          int type,
                          byte[] pixels)
                   throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
texSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage3D

public void glTexSubImage3D(int target,
                            int level,
                            int xoffset,
                            int yoffset,
                            int zoffset,
                            int width,
                            int height,
                            int depth,
                            int format,
                            int type,
                            short[] pixels)
                     throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
glTexSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage3D

public void texSubImage3D(int target,
                          int level,
                          int xoffset,
                          int yoffset,
                          int zoffset,
                          int width,
                          int height,
                          int depth,
                          int format,
                          int type,
                          short[] pixels)
                   throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
texSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage3D

public void glTexSubImage3D(int target,
                            int level,
                            int xoffset,
                            int yoffset,
                            int zoffset,
                            int width,
                            int height,
                            int depth,
                            int format,
                            int type,
                            int[] pixels)
                     throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
glTexSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage3D

public void texSubImage3D(int target,
                          int level,
                          int xoffset,
                          int yoffset,
                          int zoffset,
                          int width,
                          int height,
                          int depth,
                          int format,
                          int type,
                          int[] pixels)
                   throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
texSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glTexSubImage3D

public void glTexSubImage3D(int target,
                            int level,
                            int xoffset,
                            int yoffset,
                            int zoffset,
                            int width,
                            int height,
                            int depth,
                            int format,
                            int type,
                            float[] pixels)
                     throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
glTexSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

texSubImage3D

public void texSubImage3D(int target,
                          int level,
                          int xoffset,
                          int yoffset,
                          int zoffset,
                          int width,
                          int height,
                          int depth,
                          int format,
                          int type,
                          float[] pixels)
                   throws OpenGLException
Specifies a three-dimensional texture sub-image

Specified by:
texSubImage3D in interface GL
Parameters:
target - Specifies the target texture. Must be GL_TEXTURE_1D
level - Specifies the mipmap level-of-detail number
xoffset - Specifies a texel offset in the x direction within the texture array
yoffset - Specifies a texel offset in the y direction within the texture array
zoffset - Specifies a texel offset in the z direction within the texture array
width - Specifies the width of the texture subimage
height - Specifies the height of the texture subimage
depth - Specifies the depth of the texture subimage
format - Specifies the format of the pixel data
type - Specifies the data type of the pixel data
pixels - The pixel data itself
Throws:
OpenGLException - General OpenGL error

glVertex3fv

public final void glVertex3fv(float[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex3fv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glRasterPos3dv

public final void glRasterPos3dv(double[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3dv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glClearAccum

public final void glClearAccum(float red,
                               float green,
                               float blue,
                               float alpha)
                        throws OpenGLException
Specify clear values for the accumulation buffer
Specified by:
glClearAccum in interface GL
Parameters:
red - The red value to clear the buffer to
green - The green value to clear the buffer to
blue - The blue value to clear the buffer to
alpha - The alpha value to clear the buffer to

Throws:
OpenGLException - General OpenGL Error

clearAccum

public final void clearAccum(float red,
                             float green,
                             float blue,
                             float alpha)
                      throws OpenGLException
Specify clear values for the accumulation buffer
Specified by:
clearAccum in interface GL
Parameters:
red - The red value to clear the buffer to
green - The green value to clear the buffer to
blue - The blue value to clear the buffer to
alpha - The alpha value to clear the buffer to

Throws:
OpenGLException - General OpenGL Error

glTexParameteriv

public final void glTexParameteriv(int target,
                                   int pname,
                                   int[] param)
                            throws OpenGLException
Set texture parameters
Specified by:
glTexParameteriv in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

texParameter

public final void texParameter(int target,
                               int pname,
                               int[] param)
                        throws OpenGLException
Set texture parameters
Specified by:
texParameter in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

glRasterPos2fv

public final void glRasterPos2fv(float[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2fv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glRotated

public final void glRotated(double angle,
                            double x,
                            double y,
                            double z)
                     throws OpenGLException
Multiply the current matrix by a rotation matrix
Specified by:
glRotated in interface GL
Parameters:
angle - The angle of rotation in degrees
x - The x-coordinate of a vector
y - The y-coordinate of a vector
z - The z-coordinate of a vector

Throws:
OpenGLException - General OpenGL Error

rotate

public final void rotate(double angle,
                         double x,
                         double y,
                         double z)
                  throws OpenGLException
Multiply the current matrix by a rotation matrix
Specified by:
rotate in interface GL
Parameters:
angle - The angle of rotation in degrees
x - The x-coordinate of a vector
y - The y-coordinate of a vector
z - The z-coordinate of a vector

Throws:
OpenGLException - General OpenGL Error

glLightfv

public final void glLightfv(int light,
                            int pname,
                            float[] param)
                     throws OpenGLException
Set the lighting model parameters
Specified by:
glLightfv in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION or GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

light

public final void light(int light,
                        int pname,
                        float[] param)
                 throws OpenGLException
Set the lighting model parameters
Specified by:
light in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION or GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glRotatef

public final void glRotatef(float angle,
                            float x,
                            float y,
                            float z)
                     throws OpenGLException
Multiply the current matrix by a rotation matrix
Specified by:
glRotatef in interface GL
Parameters:
angle - The angle of rotation in degrees
x - The x-coordinate of a vector
y - The y-coordinate of a vector
z - The z-coordinate of a vector

Throws:
OpenGLException - General OpenGL Error

rotate

public final void rotate(float angle,
                         float x,
                         float y,
                         float z)
                  throws OpenGLException
Multiply the current matrix by a rotation matrix
Specified by:
rotate in interface GL
Parameters:
angle - The angle of rotation in degrees
x - The x-coordinate of a vector
y - The y-coordinate of a vector
z - The z-coordinate of a vector

Throws:
OpenGLException - General OpenGL Error

glTexCoord2iv

public final void glTexCoord2iv(int[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2iv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glMapGrid1d

public final void glMapGrid1d(int un,
                              double u1,
                              double u2)
                       throws OpenGLException
Define a one-dimensional mesh
Specified by:
glMapGrid1d in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

mapGrid

public final void mapGrid(int un,
                          double u1,
                          double u2)
                   throws OpenGLException
Define a one-dimensional mesh
Specified by:
mapGrid in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

glRasterPos4d

public final void glRasterPos4d(double x,
                                double y,
                                double z,
                                double w)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4d in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position
w - The w-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glMultMatrixd

public final void glMultMatrixd(double[][] m)
                         throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
glMultMatrixd in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

multMatrix

public final void multMatrix(double[][] m)
                      throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
multMatrix in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glMultMatrixd

public final void glMultMatrixd(double[] m)
                         throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
glMultMatrixd in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

multMatrix

public final void multMatrix(double[] m)
                      throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
multMatrix in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glMapGrid1f

public final void glMapGrid1f(int un,
                              float u1,
                              float u2)
                       throws OpenGLException
Define a one-dimensional mesh
Specified by:
glMapGrid1f in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

mapGrid

public final void mapGrid(int un,
                          float u1,
                          float u2)
                   throws OpenGLException
Define a one-dimensional mesh
Specified by:
mapGrid in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

glRasterPos4f

public final void glRasterPos4f(float x,
                                float y,
                                float z,
                                float w)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4f in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position
w - The w-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glMultMatrixf

public final void glMultMatrixf(float[][] m)
                         throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
glMultMatrixf in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

multMatrix

public final void multMatrix(float[][] m)
                      throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
multMatrix in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glMultMatrixf

public final void glMultMatrixf(float[] m)
                         throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
glMultMatrixf in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

multMatrix

public final void multMatrix(float[] m)
                      throws OpenGLException
Multiply the current matrix by an arbitrary matrix
Specified by:
multMatrix in interface GL
Parameters:
m - An array of 16 consecutive values use as the elements of a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glPixelMapusv

public final void glPixelMapusv(int map,
                                int mapsize,
                                short[] values)
                         throws OpenGLException
Set up pixel transfer maps
Specified by:
glPixelMapusv in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

pixelMap

public final void pixelMap(int map,
                           int mapsize,
                           short[] values)
                    throws OpenGLException
Set up pixel transfer maps
Specified by:
pixelMap in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

glRasterPos4i

public final void glRasterPos4i(int x,
                                int y,
                                int z,
                                int w)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4i in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position
w - The w-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glGetIntegerv

public final void glGetIntegerv(int pname,
                                int[] params)
                         throws OpenGLException
Return the value or values of a specified parameter
Specified by:
glGetIntegerv in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

getInteger

public final void getInteger(int pname,
                             int[] params)
                      throws OpenGLException
Return the value or values of a specified parameter
Specified by:
getInteger in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

glGetTexGendv

public final void glGetTexGendv(int coord,
                                int pname,
                                double[] params)
                         throws OpenGLException
Return texture coordinate generation parameters
Specified by:
glGetTexGendv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexGen

public final void getTexGen(int coord,
                            int pname,
                            double[] params)
                     throws OpenGLException
Return texture coordinate generation parameters
Specified by:
getTexGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glDrawBuffer

public final void glDrawBuffer(int mode)
                        throws OpenGLException
Specify which colour buffers are to be drawn into
Specified by:
glDrawBuffer in interface GL
Parameters:
mode - The buffer to enable. Legal values are GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi, GL_FRONT_AND_BACK, GL_NONE. Note that separation between left and right buffers is only possible on stereo capable hardware

Throws:
OpenGLException - General OpenGL Error

drawBuffer

public final void drawBuffer(int mode)
                      throws OpenGLException
Specify which colour buffers are to be drawn into
Specified by:
drawBuffer in interface GL
Parameters:
mode - The buffer to enable. Legal values are GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi, GL_FRONT_AND_BACK, GL_NONE. Note that separation between left and right buffers is only possible on stereo capable hardware

Throws:
OpenGLException - General OpenGL Error

glGetTexLevelParameteriv

public final void glGetTexLevelParameteriv(int target,
                                           int level,
                                           int pname,
                                           int[] params)
                                    throws OpenGLException
Return texture parameter values for a specific level of detail
Specified by:
glGetTexLevelParameteriv in interface GL
Parameters:
target - The target texture. Legal values are GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D
level - The mipmap level-of-detail
pname - The texture parameter that is being queried. Legal values are GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_BORDER, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_TEXTURE_LUMINANCE_SIZE or GL_TEXTURE_INTENSITY_SIZE
params - The buffer into which the queried values are returned

Throws:
OpenGLException - General OpenGL Error

getTexLevelParameter

public final void getTexLevelParameter(int target,
                                       int level,
                                       int pname,
                                       int[] params)
                                throws OpenGLException
Return texture parameter values for a specific level of detail
Specified by:
getTexLevelParameter in interface GL
Parameters:
target - The target texture. Legal values are GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D
level - The mipmap level-of-detail
pname - The texture parameter that is being queried. Legal values are GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_BORDER, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_TEXTURE_LUMINANCE_SIZE or GL_TEXTURE_INTENSITY_SIZE
params - The buffer into which the queried values are returned

Throws:
OpenGLException - General OpenGL Error

glTexGeniv

public final void glTexGeniv(int coord,
                             int pname,
                             int[] param)
                      throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGeniv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         int[] param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glRasterPos4s

public final void glRasterPos4s(short x,
                                short y,
                                short z,
                                short w)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4s in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position
w - The w-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glVertex2iv

public final void glVertex2iv(int[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex2iv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glLightModelf

public final void glLightModelf(int pname,
                                float param)
                         throws OpenGLException
Set the lighting model parameters
Specified by:
glLightModelf in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

lightModel

public final void lightModel(int pname,
                             float param)
                      throws OpenGLException
Set the lighting model parameters
Specified by:
lightModel in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glLightModeli

public final void glLightModeli(int pname,
                                int param)
                         throws OpenGLException
Set the lighting model parameters
Specified by:
glLightModeli in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

lightModel

public final void lightModel(int pname,
                             int param)
                      throws OpenGLException
Set the lighting model parameters
Specified by:
lightModel in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glVertex2d

public final void glVertex2d(double x,
                             double y)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex2d in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate

Throws:
OpenGLException - General OpenGL Error

glPrioritizeTextures

public final void glPrioritizeTextures(int n,
                                       int[] textures,
                                       float[] priorities)
                                throws OpenGLException
Assigns priorities to texture objects in a given texture array. This indicates whether or not textures should be made resident or not
Specified by:
glPrioritizeTextures in interface GL
Parameters:
n - The number of textures to be prioritized
textures - The names of the textures to be prioritized
priorities - The priorities of the named textures

Throws:
OpenGLException - General OpenGL Error

prioritizeTextures

public final void prioritizeTextures(int n,
                                     int[] textures,
                                     float[] priorities)
                              throws OpenGLException
Assigns priorities to texture objects in a given texture array. This indicates whether or not textures should be made resident or not
Specified by:
prioritizeTextures in interface GL
Parameters:
n - The number of textures to be prioritized
textures - The names of the textures to be prioritized
priorities - The priorities of the named textures

Throws:
OpenGLException - General OpenGL Error

glVertex2f

public final void glVertex2f(float x,
                             float y)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex2f in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate

Throws:
OpenGLException - General OpenGL Error

glTexEnvfv

public final void glTexEnvfv(int target,
                             int pname,
                             float[] param)
                      throws OpenGLException
Set texture environment parameters
Specified by:
glTexEnvfv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

texEnv

public final void texEnv(int target,
                         int pname,
                         float[] param)
                  throws OpenGLException
Set texture environment parameters
Specified by:
texEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

glDeleteTextures

public final void glDeleteTextures(int n,
                                   int[] textureNames)
                            throws OpenGLException
Deletes the given texture objects completely. This frees the resources taken up by the texture objects, as opposed to simply unbinding texture objects which does not free resources
Specified by:
glDeleteTextures in interface GL
Parameters:
n - The number of texture objects to delete
textureNames - The names of the texture objects to delete

Throws:
OpenGLException - General OpenGL Error

deleteTextures

public final void deleteTextures(int n,
                                 int[] textureNames)
                          throws OpenGLException
Deletes the given texture objects completely. This frees the resources taken up by the texture objects, as opposed to simply unbinding texture objects which does not free resources
Specified by:
deleteTextures in interface GL
Parameters:
n - The number of texture objects to delete
textureNames - The names of the texture objects to delete

Throws:
OpenGLException - General OpenGL Error

glTexCoord4fv

public final void glTexCoord4fv(float[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4fv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glVertex2i

public final void glVertex2i(int x,
                             int y)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex2i in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate

Throws:
OpenGLException - General OpenGL Error

glMapGrid2d

public final void glMapGrid2d(int un,
                              double u1,
                              double u2,
                              int vn,
                              double v1,
                              double v2)
                       throws OpenGLException
Define a two-dimensional mesh
Specified by:
glMapGrid2d in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping
vn - Specifies the number of grid range partitions
v1 - A domain value grid mapping
v2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

mapGrid

public final void mapGrid(int un,
                          double u1,
                          double u2,
                          int vn,
                          double v1,
                          double v2)
                   throws OpenGLException
Define a two-dimensional mesh
Specified by:
mapGrid in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping
vn - Specifies the number of grid range partitions
v1 - A domain value grid mapping
v2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

glNormal3iv

public final void glNormal3iv(int[] v)
                       throws OpenGLException
Set the current normal vector
Specified by:
glNormal3iv in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(int[] v)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

glMapGrid2f

public final void glMapGrid2f(int un,
                              float u1,
                              float u2,
                              int vn,
                              float v1,
                              float v2)
                       throws OpenGLException
Define a two-dimensional mesh
Specified by:
glMapGrid2f in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping
vn - Specifies the number of grid range partitions
v1 - A domain value grid mapping
v2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

mapGrid

public final void mapGrid(int un,
                          float u1,
                          float u2,
                          int vn,
                          float v1,
                          float v2)
                   throws OpenGLException
Define a two-dimensional mesh
Specified by:
mapGrid in interface GL
Parameters:
un - Specifies the number of partitions in the grid range interval
u1 - A domain value grid mapping
u2 - A domain value grid mapping
vn - Specifies the number of grid range partitions
v1 - A domain value grid mapping
v2 - A domain value grid mapping

Throws:
OpenGLException - General OpenGL Error

glGetMapiv

public final void glGetMapiv(int target,
                             int query,
                             int[] v)
                      throws OpenGLException
Return evaluator parameters
Specified by:
glGetMapiv in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getMap

public final void getMap(int target,
                         int query,
                         int[] v)
                  throws OpenGLException
Return evaluator parameters
Specified by:
getMap in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glRasterPos4sv

public final void glRasterPos4sv(short[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4sv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glVertex2s

public final void glVertex2s(short x,
                             short y)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex2s in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate

Throws:
OpenGLException - General OpenGL Error

glEnableClientState

public final void glEnableClientState(int array)
                               throws OpenGLException
Enable client-side capabiltity
Specified by:
glEnableClientState in interface GL
Parameters:
array - Specifies the capability to enable

Throws:
OpenGLException - General OpenGL Error

enableClientState

public final void enableClientState(int array)
                             throws OpenGLException
Enable client-side capabiltity
Specified by:
enableClientState in interface GL
Parameters:
array - Specifies the capability to enable

Throws:
OpenGLException - General OpenGL Error

glMaterialfv

public final void glMaterialfv(int face,
                               int pname,
                               float[] params)
                        throws OpenGLException
Specify material parameters for the lighting model
Specified by:
glMaterialfv in interface GL
Parameters:
face - Specify which faces are being updated
pname - Spcifies the material parameter that is being updated
params - Specifies an array of material data

Throws:
OpenGLException - General OpenGL Error

material

public final void material(int face,
                           int pname,
                           float[] params)
                    throws OpenGLException
Specify material parameters for the lighting model
Specified by:
material in interface GL
Parameters:
face - Specify which faces are being updated
pname - Spcifies the material parameter that is being updated
params - Specifies an array of material data

Throws:
OpenGLException - General OpenGL Error

glVertex4fv

public final void glVertex4fv(float[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex4fv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glGetTexParameterfv

public final void glGetTexParameterfv(int target,
                                      int pname,
                                      float[] params)
                               throws OpenGLException
Return texture parameter values
Specified by:
glGetTexParameterfv in interface GL
Parameters:
target - Specifies the symbolic name of the target texture
pname - The texture type
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexParameter

public final void getTexParameter(int target,
                                  int pname,
                                  float[] params)
                           throws OpenGLException
Return texture parameter values
Specified by:
getTexParameter in interface GL
Parameters:
target - Specifies the symbolic name of the target texture
pname - The texture type
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glPolygonOffset

public final void glPolygonOffset(float factor,
                                  float units)
                           throws OpenGLException
When enabled, the depth value of each fragment is added to a calculated offset value. This is particularly useful for simulating hidden-line removal, or outlining polygons
Specified by:
glPolygonOffset in interface GL
Parameters:
factor - Specifies a scale factor that is used to create a variable depth effect
units - Used to create a constant depth offset

Throws:
OpenGLException - General OpenGL Error

polygonOffset

public final void polygonOffset(float factor,
                                float units)
                         throws OpenGLException
When enabled, the depth value of each fragment is added to a calculated offset value. This is particularly useful for simulating hidden-line removal, or outlining polygons
Specified by:
polygonOffset in interface GL
Parameters:
factor - Specifies a scale factor that is used to create a variable depth effect
units - Used to create a constant depth offset

Throws:
OpenGLException - General OpenGL Error

glRasterPos4dv

public final void glRasterPos4dv(double[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4dv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glRasterPos3fv

public final void glRasterPos3fv(float[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3fv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glVertex3d

public final void glVertex3d(double x,
                             double y,
                             double z)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex3d in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate

Throws:
OpenGLException - General OpenGL Error

glFrustum

public final void glFrustum(double left,
                            double right,
                            double bottom,
                            double top,
                            double nearValue,
                            double farValue)
                     throws OpenGLException
Multiply the current matrix by a perspective matrix
Specified by:
glFrustum in interface GL
Parameters:
left - The left edge of the view frustum
right - The right edge of the view frustum
bottom - The bottom edge of the view frustum
top - The top edge of the view frustum
nearValue - The near clipping plane distance
farValue - The far clipping plane distance

Throws:
OpenGLException - General OpenGL Error

frustum

public final void frustum(double left,
                          double right,
                          double bottom,
                          double top,
                          double nearValue,
                          double farValue)
                   throws OpenGLException
Multiply the current matrix by a perspective matrix
Specified by:
frustum in interface GL
Parameters:
left - The left edge of the view frustum
right - The right edge of the view frustum
bottom - The bottom edge of the view frustum
top - The top edge of the view frustum
nearValue - The near clipping plane distance
farValue - The far clipping plane distance

Throws:
OpenGLException - General OpenGL Error

glVertex3f

public final void glVertex3f(float x,
                             float y,
                             float z)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex3f in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate

Throws:
OpenGLException - General OpenGL Error

glListBase

public final void glListBase(int base)
                      throws OpenGLException
Set the display list base for glCallLists
Specified by:
glListBase in interface GL
Parameters:
base - Offset to be added to the display list indices in `glCallLists()'

Throws:
OpenGLException - General OpenGL Error

listBase

public final void listBase(int base)
                    throws OpenGLException
Set the display list base for glCallLists
Specified by:
listBase in interface GL
Parameters:
base - Offset to be added to the display list indices in `glCallLists()'

Throws:
OpenGLException - General OpenGL Error

glVertex3i

public final void glVertex3i(int x,
                             int y,
                             int z)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex3i in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate

Throws:
OpenGLException - General OpenGL Error

glTexCoord3iv

public final void glTexCoord3iv(int[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3iv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glPixelMapfv

public final void glPixelMapfv(int map,
                               int mapsize,
                               float[] values)
                        throws OpenGLException
Set up pixel transfer maps
Specified by:
glPixelMapfv in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

pixelMap

public final void pixelMap(int map,
                           int mapsize,
                           float[] values)
                    throws OpenGLException
Set up pixel transfer maps
Specified by:
pixelMap in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

glVertex3s

public final void glVertex3s(short x,
                             short y,
                             short z)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex3s in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate

Throws:
OpenGLException - General OpenGL Error

glGetTexGenfv

public final void glGetTexGenfv(int coord,
                                int pname,
                                float[] params)
                         throws OpenGLException
Return texture coordinate generation parameters
Specified by:
glGetTexGenfv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexGen

public final void getTexGen(int coord,
                            int pname,
                            float[] params)
                     throws OpenGLException
Return texture coordinate generation parameters
Specified by:
getTexGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glInitNames

public final void glInitNames()
                       throws OpenGLException
Initialize the name stack

Specified by:
glInitNames in interface GL
Throws:
OpenGLException - General OpenGL Error

initNames

public final void initNames()
                     throws OpenGLException
Initialize the name stack

Specified by:
initNames in interface GL
Throws:
OpenGLException - General OpenGL Error

glColor3bv

public final void glColor3bv(byte[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3bv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glVertex3iv

public final void glVertex3iv(int[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex3iv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glRasterPos2iv

public final void glRasterPos2iv(int[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2iv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glPixelStoref

public final void glPixelStoref(int pname,
                                float param)
                         throws OpenGLException
Set pixel storage maps
Specified by:
glPixelStoref in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

pixelStore

public final void pixelStore(int pname,
                             float param)
                      throws OpenGLException
Set pixel storage maps
Specified by:
pixelStore in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

glVertex4d

public final void glVertex4d(double x,
                             double y,
                             double z,
                             double w)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex4d in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate
w - The w-coordinate

Throws:
OpenGLException - General OpenGL Error

glLightiv

public final void glLightiv(int light,
                            int pname,
                            int[] param)
                     throws OpenGLException
Set the lighting model parameters
Specified by:
glLightiv in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION or GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

light

public final void light(int light,
                        int pname,
                        int[] param)
                 throws OpenGLException
Set the lighting model parameters
Specified by:
light in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION or GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glVertex4f

public final void glVertex4f(float x,
                             float y,
                             float z,
                             float w)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex4f in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate
w - The w-coordinate

Throws:
OpenGLException - General OpenGL Error

glPixelStorei

public final void glPixelStorei(int pname,
                                int param)
                         throws OpenGLException
Set pixel storage maps
Specified by:
glPixelStorei in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

pixelStore

public final void pixelStore(int pname,
                             int param)
                      throws OpenGLException
Set pixel storage maps
Specified by:
pixelStore in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

glVertex4i

public final void glVertex4i(int x,
                             int y,
                             int z,
                             int w)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex4i in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate
w - The w-coordinate

Throws:
OpenGLException - General OpenGL Error

glClearIndex

public final void glClearIndex(float index)
                        throws OpenGLException
Specify the clear value for the colour index buffers
Specified by:
glClearIndex in interface GL
Parameters:
index - The colour-index to clear the colour buffer to

Throws:
OpenGLException - General OpenGL Error

clearIndex

public final void clearIndex(float index)
                      throws OpenGLException
Specify the clear value for the colour index buffers
Specified by:
clearIndex in interface GL
Parameters:
index - The colour-index to clear the colour buffer to

Throws:
OpenGLException - General OpenGL Error

glCullFace

public final void glCullFace(int mode)
                      throws OpenGLException
Specify whether front- or back-facing facets can be culled
Specified by:
glCullFace in interface GL
Parameters:
mode - Indicates which polygons should be discarded. Legal values are GL_FRONT, GL_BACK or GL_FRONT_AND_BACK

Throws:
OpenGLException - General OpenGL Error

cullFace

public final void cullFace(int mode)
                    throws OpenGLException
Specify whether front- or back-facing facets can be culled
Specified by:
cullFace in interface GL
Parameters:
mode - Indicates which polygons should be discarded. Legal values are GL_FRONT, GL_BACK or GL_FRONT_AND_BACK

Throws:
OpenGLException - General OpenGL Error

glFinish

public final void glFinish()
                    throws OpenGLException
Block until all GL execution is complete

Specified by:
glFinish in interface GL
Throws:
OpenGLException - General OpenGL Error

finish

public final void finish()
                  throws OpenGLException
Block until all GL execution is complete

Specified by:
finish in interface GL
Throws:
OpenGLException - General OpenGL Error

glVertex4s

public final void glVertex4s(short x,
                             short y,
                             short z,
                             short w)
                      throws OpenGLException
Specify a vertex
Specified by:
glVertex4s in interface GL
Parameters:
x - The x-coordinate
y - The y-coordinate
z - The z-coordinate
w - The w-coordinate

Throws:
OpenGLException - General OpenGL Error

glLineWidth

public final void glLineWidth(float width)
                       throws OpenGLException
Specify the width of rasterized lines
Specified by:
glLineWidth in interface GL
Parameters:
width - The width in pixels that lines should be drawn with

Throws:
OpenGLException - General OpenGL Error

lineWidth

public final void lineWidth(float width)
                     throws OpenGLException
Specify the width of rasterized lines
Specified by:
lineWidth in interface GL
Parameters:
width - The width in pixels that lines should be drawn with

Throws:
OpenGLException - General OpenGL Error

glLineStipple

public final void glLineStipple(int factor,
                                short pattern)
                         throws OpenGLException
Specify the line stipple pattern
Specified by:
glLineStipple in interface GL
Parameters:
factor - A scaling factor for the stipple pattern
pattern - The pattern to be used for line stippling

Throws:
OpenGLException - General OpenGL Error

lineStipple

public final void lineStipple(int factor,
                              short pattern)
                       throws OpenGLException
Specify the line stipple pattern
Specified by:
lineStipple in interface GL
Parameters:
factor - A scaling factor for the stipple pattern
pattern - The pattern to be used for line stippling

Throws:
OpenGLException - General OpenGL Error

glAccum

public final void glAccum(int op,
                          float value)
                   throws OpenGLException
Operate on the accumulation buffer
Specified by:
glAccum in interface GL
Parameters:
op - Selects the operation
value - The number to be used in the operation

Throws:
OpenGLException - General OpenGL Error

accum

public final void accum(int op,
                        float value)
                 throws OpenGLException
Operate on the accumulation buffer
Specified by:
accum in interface GL
Parameters:
op - Selects the operation
value - The number to be used in the operation

Throws:
OpenGLException - General OpenGL Error

glRasterPos4fv

public final void glRasterPos4fv(float[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4fv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glReadBuffer

public final void glReadBuffer(int mode)
                        throws OpenGLException
Select a colour buffer source for pixels
Specified by:
glReadBuffer in interface GL
Parameters:
mode - The colour buffer to be used as a source for reading pixels from. Legal values are GL_FRONT, GL_BACK, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_AUXi, GL_LEFT, GL_RIGHT, GL_BACK_LEFT or GL_BACK_RIGHT. The left and right buffers are only available in stereo rendering implementations of OpenGL

Throws:
OpenGLException - General OpenGL Error

readBuffer

public final void readBuffer(int mode)
                      throws OpenGLException
Select a colour buffer source for pixels
Specified by:
readBuffer in interface GL
Parameters:
mode - The colour buffer to be used as a source for reading pixels from. Legal values are GL_FRONT, GL_BACK, GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_AUXi, GL_LEFT, GL_RIGHT, GL_BACK_LEFT or GL_BACK_RIGHT. The left and right buffers are only available in stereo rendering implementations of OpenGL

Throws:
OpenGLException - General OpenGL Error

glTexEnviv

public final void glTexEnviv(int target,
                             int pname,
                             int[] param)
                      throws OpenGLException
Set texture environment parameters
Specified by:
glTexEnviv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

texEnv

public final void texEnv(int target,
                         int pname,
                         int[] param)
                  throws OpenGLException
Set texture environment parameters
Specified by:
texEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

glTexCoord4iv

public final void glTexCoord4iv(int[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4iv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glColor3sv

public final void glColor3sv(short[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3sv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glPushName

public final void glPushName(int name)
                      throws OpenGLException
Push the name stack
Specified by:
glPushName in interface GL
Parameters:
name - The name to be pushed onto the name stack

Throws:
OpenGLException - General OpenGL Error

pushName

public final void pushName(int name)
                    throws OpenGLException
Push the name stack
Specified by:
pushName in interface GL
Parameters:
name - The name to be pushed onto the name stack

Throws:
OpenGLException - General OpenGL Error

glDepthRange

public final void glDepthRange(double nearValue,
                               double farValue)
                        throws OpenGLException
Specify the mapping z values from normalized device coordinates to window coordinates
Specified by:
glDepthRange in interface GL
Parameters:
nearValue - The adjustment to the minimum depth value
farValue - The adjustment to the maximum depth value

Throws:
OpenGLException - General OpenGL Error

depthRange

public final void depthRange(double nearValue,
                             double farValue)
                      throws OpenGLException
Specify the mapping z values from normalized device coordinates to window coordinates
Specified by:
depthRange in interface GL
Parameters:
nearValue - The adjustment to the minimum depth value
farValue - The adjustment to the maximum depth value

Throws:
OpenGLException - General OpenGL Error

glCopyTexImage1D

public final void glCopyTexImage1D(int target,
                                   int level,
                                   int internalFormat,
                                   int x,
                                   int y,
                                   int width,
                                   int height)
                            throws OpenGLException
Creates a one-dimensional texture using framebuffer data to define the texels
Specified by:
glCopyTexImage1D in interface GL
Parameters:
target - The constant GL_TEXTURE_1D
level - The mipmap level-of-detail
internalFormat - The internal format of the texture
x - The x-coord of the bottom-left corner of the texture
y - The y-coord of the bottom-left corner of the texture
width - The width of a row of pixels in the texture
height - The numberd of rows in the texture

Throws:
OpenGLException - General OpenGL Error

copyTexImage1D

public final void copyTexImage1D(int target,
                                 int level,
                                 int internalFormat,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
                          throws OpenGLException
Creates a one-dimensional texture using framebuffer data to define the texels
Specified by:
copyTexImage1D in interface GL
Parameters:
target - The constant GL_TEXTURE_1D
level - The mipmap level-of-detail
internalFormat - The internal format of the texture
x - The x-coord of the bottom-left corner of the texture
y - The y-coord of the bottom-left corner of the texture
width - The width of a row of pixels in the texture
height - The numberd of rows in the texture

Throws:
OpenGLException - General OpenGL Error

glLoadIdentity

public final void glLoadIdentity()
                          throws OpenGLException
Replace the current matrix with the identity matrix

Specified by:
glLoadIdentity in interface GL
Throws:
OpenGLException - General OpenGL Error

loadIdentity

public final void loadIdentity()
                        throws OpenGLException
Replace the current matrix with the identity matrix

Specified by:
loadIdentity in interface GL
Throws:
OpenGLException - General OpenGL Error

glColor4bv

public final void glColor4bv(byte[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4bv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glColor3dv

public final void glColor3dv(double[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3dv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glMaterialiv

public final void glMaterialiv(int face,
                               int pname,
                               int[] params)
                        throws OpenGLException
Specify material parameters for the lighting model
Specified by:
glMaterialiv in interface GL
Parameters:
face - Specify which faces are being updated
pname - Spcifies the material parameter that is being updated
params - Specifies an array of material data

Throws:
OpenGLException - General OpenGL Error

material

public final void material(int face,
                           int pname,
                           int[] params)
                    throws OpenGLException
Specify material parameters for the lighting model
Specified by:
material in interface GL
Parameters:
face - Specify which faces are being updated
pname - Spcifies the material parameter that is being updated
params - Specifies an array of material data

Throws:
OpenGLException - General OpenGL Error

glEdgeFlagPointer

public final void glEdgeFlagPointer(int stride,
                                    boolean[] pointer)
                             throws OpenGLException
Define an array of edge flags
Specified by:
glEdgeFlagPointer in interface GL
Parameters:
stride - The size of each edge flag value
pointer - The array of edge flags

Throws:
OpenGLException - General OpenGL Error

edgeFlagPointer

public final void edgeFlagPointer(int stride,
                                  boolean[] pointer)
                           throws OpenGLException
Define an array of edge flags
Specified by:
edgeFlagPointer in interface GL
Parameters:
stride - The size of each edge flag value
pointer - The array of edge flags

Throws:
OpenGLException - General OpenGL Error

glVertex4iv

public final void glVertex4iv(int[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex4iv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glGetTexParameteriv

public final void glGetTexParameteriv(int target,
                                      int pname,
                                      int[] params)
                               throws OpenGLException
Return texture parameter values
Specified by:
glGetTexParameteriv in interface GL
Parameters:
target - Specifies the symbolic name of the target texture
pname - The texture type
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexParameter

public final void getTexParameter(int target,
                                  int pname,
                                  int[] params)
                           throws OpenGLException
Return texture parameter values
Specified by:
getTexParameter in interface GL
Parameters:
target - Specifies the symbolic name of the target texture
pname - The texture type
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glEndList

public final void glEndList()
                     throws OpenGLException
Terminates the specification of a display list

Specified by:
glEndList in interface GL
Throws:
OpenGLException - General OpenGL Error

endList

public final void endList()
                   throws OpenGLException
Terminates the specification of a display list

Specified by:
endList in interface GL
Throws:
OpenGLException - General OpenGL Error

glGetLightfv

public final void glGetLightfv(int light,
                               int pname,
                               float[] params)
                        throws OpenGLException
Return light source parameter values
Specified by:
glGetLightfv in interface GL
Parameters:
light - Specifies a light source
pname - Specifies a light source parameter for `light'
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getLight

public final void getLight(int light,
                           int pname,
                           float[] params)
                    throws OpenGLException
Return light source parameter values
Specified by:
getLight in interface GL
Parameters:
light - Specifies a light source
pname - Specifies a light source parameter for `light'
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glRasterPos3iv

public final void glRasterPos3iv(int[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3iv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glRectsv

public final void glRectsv(short[] v1,
                           short[] v2)
                    throws OpenGLException
Draw a rectangle
Specified by:
glRectsv in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(short[] v1,
                       short[] v2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

glFogfv

public final void glFogfv(int pname,
                          float[] params)
                   throws OpenGLException
Specify fog parameters
Specified by:
glFogfv in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
params - The values of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

fog

public final void fog(int pname,
                      float[] params)
               throws OpenGLException
Specify fog parameters
Specified by:
fog in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
params - The values of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

glIndexd

public final void glIndexd(double c)
                    throws OpenGLException
Set the current colour index
Specified by:
glIndexd in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

index

public final void index(double c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

glTexCoord1d

public final void glTexCoord1d(double s)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1d in interface GL
Parameters:
s - The s texture coordinate

Throws:
OpenGLException - General OpenGL Error

glNormal3b

public final void glNormal3b(byte nx,
                             byte ny,
                             byte nz)
                      throws OpenGLException
Set the current normal vector
Specified by:
glNormal3b in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(byte nx,
                         byte ny,
                         byte nz)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

glIndexf

public final void glIndexf(float c)
                    throws OpenGLException
Set the current colour index
Specified by:
glIndexf in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

index

public final void index(float c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

glGetPixelMapusv

public final void glGetPixelMapusv(int map,
                                   short[] values)
                            throws OpenGLException
Return the specified pixel map
Specified by:
glGetPixelMapusv in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

getPixelMap

public final void getPixelMap(int map,
                              short[] values)
                       throws OpenGLException
Return the specified pixel map
Specified by:
getPixelMap in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

glTexCoord1f

public final void glTexCoord1f(float s)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1f in interface GL
Parameters:
s - The s texture coordinate

Throws:
OpenGLException - General OpenGL Error

glColor3ubv

public final void glColor3ubv(byte[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor3ubv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glNormal3d

public final void glNormal3d(double nx,
                             double ny,
                             double nz)
                      throws OpenGLException
Set the current normal vector
Specified by:
glNormal3d in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(double nx,
                         double ny,
                         double nz)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

glIndexi

public final void glIndexi(int c)
                    throws OpenGLException
Set the current colour index
Specified by:
glIndexi in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

index

public final void index(int c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

glDepthFunc

public final void glDepthFunc(int func)
                       throws OpenGLException
Specify the value used for depth buffer comparisons
Specified by:
glDepthFunc in interface GL
Parameters:
func - The comparison function to be used for depth-testing fragments. The legal values are GL_NEVER, GL_ALWAYS, GL_LESS, GL_LEQUAL, GL_EQUAL, GL_GEQUAL, GL_GREATER or GL_NOTEQUAL

Throws:
OpenGLException - General OpenGL Error

depthFunc

public final void depthFunc(int func)
                     throws OpenGLException
Specify the value used for depth buffer comparisons
Specified by:
depthFunc in interface GL
Parameters:
func - The comparison function to be used for depth-testing fragments. The legal values are GL_NEVER, GL_ALWAYS, GL_LESS, GL_LEQUAL, GL_EQUAL, GL_GEQUAL, GL_GREATER or GL_NOTEQUAL

Throws:
OpenGLException - General OpenGL Error

glTexCoord1i

public final void glTexCoord1i(int s)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1i in interface GL
Parameters:
s - The s texture coordinate

Throws:
OpenGLException - General OpenGL Error

glNormal3f

public final void glNormal3f(float nx,
                             float ny,
                             float nz)
                      throws OpenGLException
Set the current normal vector
Specified by:
glNormal3f in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(float nx,
                         float ny,
                         float nz)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

glFlush

public final void glFlush()
                   throws OpenGLException
Force execution of GL commands in finite time

Specified by:
glFlush in interface GL
Throws:
OpenGLException - General OpenGL Error

flush

public final void flush()
                 throws OpenGLException
Force execution of GL commands in finite time

Specified by:
flush in interface GL
Throws:
OpenGLException - General OpenGL Error

glNormal3i

public final void glNormal3i(int nx,
                             int ny,
                             int nz)
                      throws OpenGLException
Set the current normal vector
Specified by:
glNormal3i in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(int nx,
                         int ny,
                         int nz)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

glCopyTexImage2D

public final void glCopyTexImage2D(int target,
                                   int level,
                                   int internalFormat,
                                   int x,
                                   int y,
                                   int width,
                                   int height,
                                   int border)
                            throws OpenGLException
Creates a two-dimensional texture using framebuffer data to define the texels
Specified by:
glCopyTexImage2D in interface GL
Parameters:
target - The constant GL_TEXTURE_2D
level - The mipmap level-of-detail
internalFormat - The internal format of the texture data
x - The x-coord of the bottom-left of the framebuffer rectangle
y - The y-coord of the bottom-left of the framebuffer rectangle
width - The width of the rectangle to copy
height - The height of the rectangle to copy
border - The width of the texture border

Throws:
OpenGLException - General OpenGL Error

copyTexImage2D

public final void copyTexImage2D(int target,
                                 int level,
                                 int internalFormat,
                                 int x,
                                 int y,
                                 int width,
                                 int height,
                                 int border)
                          throws OpenGLException
Creates a two-dimensional texture using framebuffer data to define the texels
Specified by:
copyTexImage2D in interface GL
Parameters:
target - The constant GL_TEXTURE_2D
level - The mipmap level-of-detail
internalFormat - The internal format of the texture data
x - The x-coord of the bottom-left of the framebuffer rectangle
y - The y-coord of the bottom-left of the framebuffer rectangle
width - The width of the rectangle to copy
height - The height of the rectangle to copy
border - The width of the texture border

Throws:
OpenGLException - General OpenGL Error

glEnable

public final void glEnable(int cap)
                    throws OpenGLException
Enable or disable GL capabilities
Specified by:
glEnable in interface GL
Parameters:
cap - The capability to turn on

Throws:
OpenGLException - General OpenGL Error

enable

public final void enable(int cap)
                  throws OpenGLException
Enable or disable GL capabilities
Specified by:
enable in interface GL
Parameters:
cap - The capability to turn on

Throws:
OpenGLException - General OpenGL Error

glRectdv

public final void glRectdv(double[] v1,
                           double[] v2)
                    throws OpenGLException
Draw a rectangle
Specified by:
glRectdv in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(double[] v1,
                       double[] v2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

glColor3ub

public final void glColor3ub(byte r,
                             byte g,
                             byte b)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3ub in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glEvalCoord1dv

public final void glEvalCoord1dv(double[] u)
                          throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord1dv in interface GL
Parameters:
u - Pointer to the domain coordinate

Throws:
OpenGLException - General OpenGL Error

glGetTexGeniv

public final void glGetTexGeniv(int coord,
                                int pname,
                                int[] params)
                         throws OpenGLException
Return texture coordinate generation parameters
Specified by:
glGetTexGeniv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexGen

public final void getTexGen(int coord,
                            int pname,
                            int[] params)
                     throws OpenGLException
Return texture coordinate generation parameters
Specified by:
getTexGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies the symbolic name of the value or values to be returned
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glIndexs

public final void glIndexs(short c)
                    throws OpenGLException
Set the current colour index
Specified by:
glIndexs in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

index

public final void index(short c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

glTexCoord1s

public final void glTexCoord1s(short s)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1s in interface GL
Parameters:
s - The s texture coordinate

Throws:
OpenGLException - General OpenGL Error

glTexGend

public final void glTexGend(int coord,
                            int pname,
                            double param)
                     throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGend in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         double param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glNormal3s

public final void glNormal3s(short nx,
                             short ny,
                             short nz)
                      throws OpenGLException
Set the current normal vector
Specified by:
glNormal3s in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(short nx,
                         short ny,
                         short nz)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
nx - The x-coordinate of the normal vector
ny - The y-coordinate of the normal vector
nz - The z-coordinate of the normal vector

Throws:
OpenGLException - General OpenGL Error

glColor3ui

public final void glColor3ui(int r,
                             int g,
                             int b)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3ui in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glTexGenf

public final void glTexGenf(int coord,
                            int pname,
                            float param)
                     throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGenf in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         float param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glBlendFunc

public final void glBlendFunc(int sfactor,
                              int dfactor)
                       throws OpenGLException
Specify pixel arithmetic
Specified by:
glBlendFunc in interface GL
Parameters:
sfactor - Indicates how source blending factor is to be computed
dfactor - Indicates how to compute destination blending factor

Throws:
OpenGLException - General OpenGL Error

blendFunc

public final void blendFunc(int sfactor,
                            int dfactor)
                     throws OpenGLException
Specify pixel arithmetic
Specified by:
blendFunc in interface GL
Parameters:
sfactor - Indicates how source blending factor is to be computed
dfactor - Indicates how to compute destination blending factor

Throws:
OpenGLException - General OpenGL Error

glAlphaFunc

public final void glAlphaFunc(int func,
                              float value)
                       throws OpenGLException
Specify the alpha test function
Specified by:
glAlphaFunc in interface GL
Parameters:
func - The comparison function for the alpha test
value - The reference value for the test

Throws:
OpenGLException - General OpenGL Error

alphaFunc

public final void alphaFunc(int func,
                            float value)
                     throws OpenGLException
Specify the alpha test function
Specified by:
alphaFunc in interface GL
Parameters:
func - The comparison function for the alpha test
value - The reference value for the test

Throws:
OpenGLException - General OpenGL Error

glTexGeni

public final void glTexGeni(int coord,
                            int pname,
                            int param)
                     throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGeni in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         int param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glPixelMapuiv

public final void glPixelMapuiv(int map,
                                int mapsize,
                                int[] values)
                         throws OpenGLException
Set up pixel transfer maps
Specified by:
glPixelMapuiv in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

pixelMap

public final void pixelMap(int map,
                           int mapsize,
                           int[] values)
                    throws OpenGLException
Set up pixel transfer maps
Specified by:
pixelMap in interface GL
Parameters:
map - Specifies a symbolic map name
mapsize - Specifies the size of the map being defined
values - Specifies an array of `mapsize' values

Throws:
OpenGLException - General OpenGL Error

glMaterialf

public final void glMaterialf(int face,
                              int pname,
                              float param)
                       throws OpenGLException
Specify material parameters for the lighting model
Specified by:
glMaterialf in interface GL
Parameters:
face - Specify which faces are being updated
pname - Specifies the single-valued material parameter to be updated
param - Specifies the value that parameter GL_SHININESS will be set to

Throws:
OpenGLException - General OpenGL Error

material

public final void material(int face,
                           int pname,
                           float param)
                    throws OpenGLException
Specify material parameters for the lighting model
Specified by:
material in interface GL
Parameters:
face - Specify which faces are being updated
pname - Specifies the single-valued material parameter to be updated
param - Specifies the value that parameter GL_SHININESS will be set to

Throws:
OpenGLException - General OpenGL Error

glGetBooleanv

public final void glGetBooleanv(int pname,
                                boolean[] params)
                         throws OpenGLException
Return the value or values of a specified parameter
Specified by:
glGetBooleanv in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

getBoolean

public final void getBoolean(int pname,
                             boolean[] params)
                      throws OpenGLException
Return the value or values of a specified parameter
Specified by:
getBoolean in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

glGetTexEnvfv

public final void glGetTexEnvfv(int target,
                                int pname,
                                float[] params)
                         throws OpenGLException
Return texture environment parameters
Specified by:
glGetTexEnvfv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexEnv

public final void getTexEnv(int target,
                            int pname,
                            float[] params)
                     throws OpenGLException
Return texture environment parameters
Specified by:
getTexEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glMateriali

public final void glMateriali(int face,
                              int pname,
                              int param)
                       throws OpenGLException
Specify material parameters for the lighting model
Specified by:
glMateriali in interface GL
Parameters:
face - Specify which faces are being updated
pname - Specifies the single-valued material parameter to be updated
param - Specifies the value that parameter GL_SHININESS will be set to

Throws:
OpenGLException - General OpenGL Error

material

public final void material(int face,
                           int pname,
                           int param)
                    throws OpenGLException
Specify material parameters for the lighting model
Specified by:
material in interface GL
Parameters:
face - Specify which faces are being updated
pname - Specifies the single-valued material parameter to be updated
param - Specifies the value that parameter GL_SHININESS will be set to

Throws:
OpenGLException - General OpenGL Error

glClearStencil

public final void glClearStencil(int s)
                          throws OpenGLException
Specify the clear value for the stencil buffer
Specified by:
glClearStencil in interface GL
Parameters:
s - The clearing value to set the stencil buffer to

Throws:
OpenGLException - General OpenGL Error

clearStencil

public final void clearStencil(int s)
                        throws OpenGLException
Specify the clear value for the stencil buffer
Specified by:
clearStencil in interface GL
Parameters:
s - The clearing value to set the stencil buffer to

Throws:
OpenGLException - General OpenGL Error

glMatrixMode

public final void glMatrixMode(int mode)
                        throws OpenGLException
Specify which matrix is the current matrix
Specified by:
glMatrixMode in interface GL
Parameters:
mode - Specifies which matrix stack is the target for subsequent matrix operations

Throws:
OpenGLException - General OpenGL Error

matrixMode

public final void matrixMode(int mode)
                      throws OpenGLException
Specify which matrix is the current matrix
Specified by:
matrixMode in interface GL
Parameters:
mode - Specifies which matrix stack is the target for subsequent matrix operations

Throws:
OpenGLException - General OpenGL Error

glColor3us

public final void glColor3us(short r,
                             short g,
                             short b)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3us in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glColor4sv

public final void glColor4sv(short[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4sv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glTexCoord2d

public final void glTexCoord2d(double s,
                               double t)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2d in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate

Throws:
OpenGLException - General OpenGL Error

glStencilFunc

public final void glStencilFunc(int func,
                                int ref,
                                int mask)
                         throws OpenGLException
Set function and reference value for stencil testing
Specified by:
glStencilFunc in interface GL
Parameters:
func - Specifies the test function
ref - The reference value for the stencil test
mask - Specifies a mask that is ANDed with the reference value and the stored stencil value

Throws:
OpenGLException - General OpenGL Error

stencilFunc

public final void stencilFunc(int func,
                              int ref,
                              int mask)
                       throws OpenGLException
Set function and reference value for stencil testing
Specified by:
stencilFunc in interface GL
Parameters:
func - Specifies the test function
ref - The reference value for the stencil test
mask - Specifies a mask that is ANDed with the reference value and the stored stencil value

Throws:
OpenGLException - General OpenGL Error

glTexCoord2f

public final void glTexCoord2f(float s,
                               float t)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2f in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate

Throws:
OpenGLException - General OpenGL Error

glTexCoord2i

public final void glTexCoord2i(int s,
                               int t)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2i in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate

Throws:
OpenGLException - General OpenGL Error

glLightModelfv

public final void glLightModelfv(int pname,
                                 float[] params)
                          throws OpenGLException
Set the lighting model parameters
Specified by:
glLightModelfv in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
params - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

lightModel

public final void lightModel(int pname,
                             float[] params)
                      throws OpenGLException
Set the lighting model parameters
Specified by:
lightModel in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
params - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glPushAttrib

public final void glPushAttrib(int mask)
                        throws OpenGLException
Push the attribute stack
Specified by:
glPushAttrib in interface GL
Parameters:
mask - Specifies a mask which indicates which attributes to push

Throws:
OpenGLException - General OpenGL Error

pushAttrib

public final void pushAttrib(int mask)
                      throws OpenGLException
Push the attribute stack
Specified by:
pushAttrib in interface GL
Parameters:
mask - Specifies a mask which indicates which attributes to push

Throws:
OpenGLException - General OpenGL Error

glClear

public final void glClear(int mask)
                   throws OpenGLException
Clear buffers to preset values
Specified by:
glClear in interface GL
Parameters:
mask - Bitwise logical `or' of the buffers that should be cleared

Throws:
OpenGLException - General OpenGL Error

clear

public final void clear(int mask)
                 throws OpenGLException
Clear buffers to preset values
Specified by:
clear in interface GL
Parameters:
mask - Bitwise logical `or' of the buffers that should be cleared

Throws:
OpenGLException - General OpenGL Error

glPolygonStipple

public final void glPolygonStipple(byte[] mask)
                            throws OpenGLException
Set the polygon stippling pattern
Specified by:
glPolygonStipple in interface GL
Parameters:
mask - Sets the polygon stipple

Throws:
OpenGLException - General OpenGL Error

polygonStipple

public final void polygonStipple(byte[] mask)
                          throws OpenGLException
Set the polygon stippling pattern
Specified by:
polygonStipple in interface GL
Parameters:
mask - Sets the polygon stipple

Throws:
OpenGLException - General OpenGL Error

glGetMaterialfv

public final void glGetMaterialfv(int face,
                                  int pname,
                                  float[] params)
                           throws OpenGLException
Return material parameters
Specified by:
glGetMaterialfv in interface GL
Parameters:
face - Specifies which of the two materials are being queried
pname - Specifies the material parameter to return
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getMaterial

public final void getMaterial(int face,
                              int pname,
                              float[] params)
                       throws OpenGLException
Return material parameters
Specified by:
getMaterial in interface GL
Parameters:
face - Specifies which of the two materials are being queried
pname - Specifies the material parameter to return
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glTexCoord2s

public final void glTexCoord2s(short s,
                               short t)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2s in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate

Throws:
OpenGLException - General OpenGL Error

glLogicOp

public final void glLogicOp(int opcode)
                     throws OpenGLException
Specify a logical pixel operations for colour index rendering
Specified by:
glLogicOp in interface GL
Parameters:
opcode - The logical operation to be performed between an incoming fraagment and a pixel stored in the colour buffer. Legal values are GL_CLEAR, GL_COPY, GL_NOOP, GL_SET, GL_COPY_INVERTED, GL_INVERT, GL_AND_REVERSE, GL_OR_REVERSE, GL_AND, GL_OR, GL_NAND, GL_XORD, GL_EQUIV, GL_AND_INVERTED or GL_OR_INVERTED

Throws:
OpenGLException - General OpenGL Error

logicOp

public final void logicOp(int opcode)
                   throws OpenGLException
Specify a logical pixel operations for colour index rendering
Specified by:
logicOp in interface GL
Parameters:
opcode - The logical operation to be performed between an incoming fraagment and a pixel stored in the colour buffer. Legal values are GL_CLEAR, GL_COPY, GL_NOOP, GL_SET, GL_COPY_INVERTED, GL_INVERT, GL_AND_REVERSE, GL_OR_REVERSE, GL_AND, GL_OR, GL_NAND, GL_XORD, GL_EQUIV, GL_AND_INVERTED or GL_OR_INVERTED

Throws:
OpenGLException - General OpenGL Error

glColor4dv

public final void glColor4dv(double[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4dv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glColor3fv

public final void glColor3fv(float[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3fv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glCopyPixels

public final void glCopyPixels(int x,
                               int y,
                               int width,
                               int height,
                               int buffer)
                        throws OpenGLException
Copy pixels in the frame buffer
Specified by:
glCopyPixels in interface GL
Parameters:
x - x-coord of the bottom-left of the framebuffer rectangle
y - y-coord of the bottom-left of the framebuffer rectangle
width - The width of the framebuffer rectangle to copy
height - The height of the framebuffer rectangle to copy
buffer - The framebuffer to use ( either GL_COLOR, GL_STENCIL or GL_DEPTH )

Throws:
OpenGLException - General OpenGL Error

copyPixels

public final void copyPixels(int x,
                             int y,
                             int width,
                             int height,
                             int buffer)
                      throws OpenGLException
Copy pixels in the frame buffer
Specified by:
copyPixels in interface GL
Parameters:
x - x-coord of the bottom-left of the framebuffer rectangle
y - y-coord of the bottom-left of the framebuffer rectangle
width - The width of the framebuffer rectangle to copy
height - The height of the framebuffer rectangle to copy
buffer - The framebuffer to use ( either GL_COLOR, GL_STENCIL or GL_DEPTH )

Throws:
OpenGLException - General OpenGL Error

glColor3usv

public final void glColor3usv(short[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor3usv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glPopClientAttrib

public final void glPopClientAttrib()
                             throws OpenGLException
This pushes the given attribute onto the client attribute stack

Specified by:
glPopClientAttrib in interface GL
Throws:
OpenGLException - General OpenGL Error

popClientAttrib

public final void popClientAttrib()
                           throws OpenGLException
This pushes the given attribute onto the client attribute stack

Specified by:
popClientAttrib in interface GL
Throws:
OpenGLException - General OpenGL Error

glDisableClientState

public final void glDisableClientState(int array)
                                throws OpenGLException
Disable client-side capabiltity
Specified by:
glDisableClientState in interface GL
Parameters:
array - Specifies the capability to disable

Throws:
OpenGLException - General OpenGL Error

disableClientState

public final void disableClientState(int array)
                              throws OpenGLException
Disable client-side capabiltity
Specified by:
disableClientState in interface GL
Parameters:
array - Specifies the capability to disable

Throws:
OpenGLException - General OpenGL Error

glPushMatrix

public final void glPushMatrix()
                        throws OpenGLException
Push the current matrix stack

Specified by:
glPushMatrix in interface GL
Throws:
OpenGLException - General OpenGL Error

pushMatrix

public final void pushMatrix()
                      throws OpenGLException
Push the current matrix stack

Specified by:
pushMatrix in interface GL
Throws:
OpenGLException - General OpenGL Error

glRasterPos4iv

public final void glRasterPos4iv(int[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos4iv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glEnd

public final void glEnd()
                 throws OpenGLException
Marks the end of a vertex-data list

Specified by:
glEnd in interface GL
Throws:
OpenGLException - General OpenGL Error

end

public final void end()
               throws OpenGLException
Marks the end of a vertex-data list

Specified by:
end in interface GL
Throws:
OpenGLException - General OpenGL Error

glLoadMatrixd

public final void glLoadMatrixd(double[] m)
                         throws OpenGLException
Replace the current matrix with an arbitrary matrix
Specified by:
glLoadMatrixd in interface GL
Parameters:
m - Sixteen values that comprise a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

loadMatrix

public final void loadMatrix(double[] m)
                      throws OpenGLException
Replace the current matrix with an arbitrary matrix
Specified by:
loadMatrix in interface GL
Parameters:
m - Sixteen values that comprise a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glLoadMatrixf

public final void glLoadMatrixf(float[] m)
                         throws OpenGLException
Replace the current matrix with an arbitrary matrix
Specified by:
glLoadMatrixf in interface GL
Parameters:
m - Sixteen values that comprise a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

loadMatrix

public final void loadMatrix(float[] m)
                      throws OpenGLException
Replace the current matrix with an arbitrary matrix
Specified by:
loadMatrix in interface GL
Parameters:
m - Sixteen values that comprise a 4x4 matrix

Throws:
OpenGLException - General OpenGL Error

glGetPixelMapfv

public final void glGetPixelMapfv(int map,
                                  float[] values)
                           throws OpenGLException
Return the specified pixel map
Specified by:
glGetPixelMapfv in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

getPixelMap

public final void getPixelMap(int map,
                              float[] values)
                       throws OpenGLException
Return the specified pixel map
Specified by:
getPixelMap in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

glBitmap

public final void glBitmap(int width,
                           int height,
                           float xbo,
                           float ybo,
                           float xbi,
                           float ybi,
                           byte[] bitmap)
                    throws OpenGLException
Draw a bitmap
Specified by:
glBitmap in interface GL
Parameters:
width - The width of the bitmap
height - The height of the bitmap
xbo - X offset from the origin
ybo - Y offset from the origin
xbi - X increment added to the raster position after bitmap is rasterized
ybi - Y increment added to the raster position after the bitmap is rasterized
bitmap - The bitmap data

Throws:
OpenGLException - General OpenGL Error

bitmap

public final void bitmap(int width,
                         int height,
                         float xbo,
                         float ybo,
                         float xbi,
                         float ybi,
                         byte[] bitmap)
                  throws OpenGLException
Draw a bitmap
Specified by:
bitmap in interface GL
Parameters:
width - The width of the bitmap
height - The height of the bitmap
xbo - X offset from the origin
ybo - Y offset from the origin
xbi - X increment added to the raster position after bitmap is rasterized
ybi - Y increment added to the raster position after the bitmap is rasterized
bitmap - The bitmap data

Throws:
OpenGLException - General OpenGL Error

glTexCoord3d

public final void glTexCoord3d(double s,
                               double t,
                               double r)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3d in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate

Throws:
OpenGLException - General OpenGL Error

glTexCoord3f

public final void glTexCoord3f(float s,
                               float t,
                               float r)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3f in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate

Throws:
OpenGLException - General OpenGL Error

glIndexsv

public final void glIndexsv(short[] c)
                     throws OpenGLException
Set the current colour index
Specified by:
glIndexsv in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

index

public final void index(short[] c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

glDepthMask

public final void glDepthMask(boolean flag)
                       throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
glDepthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

depthMask

public final void depthMask(boolean flag)
                     throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
depthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

glDepthMask

public final void glDepthMask(byte flag)
                       throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
glDepthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

depthMask

public final void depthMask(byte flag)
                     throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
depthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

glDepthMask

public final void glDepthMask(int flag)
                       throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
glDepthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

depthMask

public final void depthMask(int flag)
                     throws OpenGLException
Enable or disable writing into the depth buffer
Specified by:
depthMask in interface GL
Parameters:
flag - If this is GL_TRUE, the depth buffer is enabled for writing, otherwise it is disabled

Throws:
OpenGLException - General OpenGL Error

glTexCoord3i

public final void glTexCoord3i(int s,
                               int t,
                               int r)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3i in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate

Throws:
OpenGLException - General OpenGL Error

glPushClientAttrib

public final void glPushClientAttrib(int mask)
                              throws OpenGLException
This pushes the desired attributes onto the client attribute stack
Specified by:
glPushClientAttrib in interface GL
Parameters:
mask - Specifies a mask which indicates which attributes to push onto the client stack

Throws:
OpenGLException - General OpenGL Error

pushClientAttrib

public final void pushClientAttrib(int mask)
                            throws OpenGLException
This pushes the desired attributes onto the client attribute stack
Specified by:
pushClientAttrib in interface GL
Parameters:
mask - Specifies a mask which indicates which attributes to push onto the client stack

Throws:
OpenGLException - General OpenGL Error

glEvalMesh1

public final void glEvalMesh1(int mode,
                              int p1,
                              int p2)
                       throws OpenGLException
Compute a one-dimensional grid of points
Specified by:
glEvalMesh1 in interface GL
Parameters:
mode - The drawing style of the curve either GL_POINT or GL_LINE
p1 - The starting value of the curve range
p2 - The finishing value of the curve range

Throws:
OpenGLException - General OpenGL Error

evalMesh

public final void evalMesh(int mode,
                           int p1,
                           int p2)
                    throws OpenGLException
Compute a one-dimensional grid of points
Specified by:
evalMesh in interface GL
Parameters:
mode - The drawing style of the curve either GL_POINT or GL_LINE
p1 - The starting value of the curve range
p2 - The finishing value of the curve range

Throws:
OpenGLException - General OpenGL Error

glEvalMesh2

public final void glEvalMesh2(int mode,
                              int i1,
                              int i2,
                              int j1,
                              int j2)
                       throws OpenGLException
Compute a two-dimensional grid of points
Specified by:
glEvalMesh2 in interface GL
Parameters:
mode - The draw style of the mesh. Either GL_FILL, GL_POINT or GL_LINE
i1 - The starting value for the x-dimension range
i2 - The finishing value of the x-dimension range
j1 - The starting value for the y-dimension range
j2 - The finishing value for the y-dimension range

Throws:
OpenGLException - General OpenGL Error

evalMesh

public final void evalMesh(int mode,
                           int i1,
                           int i2,
                           int j1,
                           int j2)
                    throws OpenGLException
Compute a two-dimensional grid of points
Specified by:
evalMesh in interface GL
Parameters:
mode - The draw style of the mesh. Either GL_FILL, GL_POINT or GL_LINE
i1 - The starting value for the x-dimension range
i2 - The finishing value of the x-dimension range
j1 - The starting value for the y-dimension range
j2 - The finishing value for the y-dimension range

Throws:
OpenGLException - General OpenGL Error

glRectfv

public final void glRectfv(float[] v1,
                           float[] v2)
                    throws OpenGLException
Draw a rectangle
Specified by:
glRectfv in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(float[] v1,
                       float[] v2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

glColor4ub

public final void glColor4ub(byte r,
                             byte g,
                             byte b,
                             byte a)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4ub in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glEvalCoord2dv

public final void glEvalCoord2dv(double[] values)
                          throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord2dv in interface GL
Parameters:
values - Pointer to an array of domain coordinates

Throws:
OpenGLException - General OpenGL Error

glEvalCoord1fv

public final void glEvalCoord1fv(float[] u)
                          throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord1fv in interface GL
Parameters:
u - Pointer to the domain coordinate

Throws:
OpenGLException - General OpenGL Error

glTexCoord3s

public final void glTexCoord3s(short s,
                               short t,
                               short r)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3s in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate

Throws:
OpenGLException - General OpenGL Error

glColorMaterial

public final void glColorMaterial(int face,
                                  int mode)
                           throws OpenGLException
Cause a material colour to track the current colour
Specified by:
glColorMaterial in interface GL
Parameters:
face - The material face to be tracked
mode - The material mode to be tracked

Throws:
OpenGLException - General OpenGL Error

colorMaterial

public final void colorMaterial(int face,
                                int mode)
                         throws OpenGLException
Cause a material colour to track the current colour
Specified by:
colorMaterial in interface GL
Parameters:
face - The material face to be tracked
mode - The material mode to be tracked

Throws:
OpenGLException - General OpenGL Error

glColor4ui

public final void glColor4ui(int r,
                             int g,
                             int b,
                             int a)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4ui in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glGetDoublev

public final void glGetDoublev(int pname,
                               double[] params)
                        throws OpenGLException
Return the value or values of a specified parameter
Specified by:
glGetDoublev in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

getDouble

public final void getDouble(int pname,
                            double[] params)
                     throws OpenGLException
Return the value or values of a specified parameter
Specified by:
getDouble in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

glIndexdv

public final void glIndexdv(double[] c)
                     throws OpenGLException
Set the current colour index
Specified by:
glIndexdv in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

index

public final void index(double[] c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

glColor3b

public final void glColor3b(byte r,
                            byte g,
                            byte b)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor3b in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glColor3d

public final void glColor3d(double r,
                            double g,
                            double b)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor3d in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glGetLightiv

public final void glGetLightiv(int light,
                               int pname,
                               int[] params)
                        throws OpenGLException
Return light source parameter values
Specified by:
glGetLightiv in interface GL
Parameters:
light - Specifies a light source
pname - Specifies a light source parameter for `light'
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getLight

public final void getLight(int light,
                           int pname,
                           int[] params)
                    throws OpenGLException
Return light source parameter values
Specified by:
getLight in interface GL
Parameters:
light - Specifies a light source
pname - Specifies a light source parameter for `light'
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glColor3f

public final void glColor3f(float r,
                            float g,
                            float b)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor3f in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glColor3i

public final void glColor3i(int r,
                            int g,
                            int b)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor3i in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glColor4us

public final void glColor4us(short r,
                             short g,
                             short b,
                             short a)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4us in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glFogiv

public final void glFogiv(int pname,
                          int[] params)
                   throws OpenGLException
Specify fog parameters
Specified by:
glFogiv in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
params - The values of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

fog

public final void fog(int pname,
                      int[] params)
               throws OpenGLException
Specify fog parameters
Specified by:
fog in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
params - The values of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

glStencilMask

public final void glStencilMask(int mask)
                         throws OpenGLException
Control the writing of individual bits in the stencil planes
Specified by:
glStencilMask in interface GL
Parameters:
mask - A bit mask used to control writing of specific bits into the stencil buffer

Throws:
OpenGLException - General OpenGL Error

stencilMask

public final void stencilMask(int mask)
                       throws OpenGLException
Control the writing of individual bits in the stencil planes
Specified by:
stencilMask in interface GL
Parameters:
mask - A bit mask used to control writing of specific bits into the stencil buffer

Throws:
OpenGLException - General OpenGL Error

glTexCoord4d

public final void glTexCoord4d(double s,
                               double t,
                               double r,
                               double q)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4d in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate

Throws:
OpenGLException - General OpenGL Error

glColor4ubv

public final void glColor4ubv(byte[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor4ubv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glTexCoord4f

public final void glTexCoord4f(float s,
                               float t,
                               float r,
                               float q)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4f in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate

Throws:
OpenGLException - General OpenGL Error

glTexCoord1sv

public final void glTexCoord1sv(short[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1sv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glTexCoord4i

public final void glTexCoord4i(int s,
                               int t,
                               int r,
                               int q)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4i in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate

Throws:
OpenGLException - General OpenGL Error

glColor3s

public final void glColor3s(short r,
                            short g,
                            short b)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor3s in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour

Throws:
OpenGLException - General OpenGL Error

glClearColor

public final void glClearColor(float red,
                               float green,
                               float blue,
                               float alpha)
                        throws OpenGLException
Specify clear values for colour buffers
Specified by:
glClearColor in interface GL
Parameters:
red - The red component of the clear value
green - The green component of the clear value
blue - The blue component of the clear value
alpha - The alpha component of the clear value

Throws:
OpenGLException - General OpenGL Error

clearColor

public final void clearColor(float red,
                             float green,
                             float blue,
                             float alpha)
                      throws OpenGLException
Specify clear values for colour buffers
Specified by:
clearColor in interface GL
Parameters:
red - The red component of the clear value
green - The green component of the clear value
blue - The blue component of the clear value
alpha - The alpha component of the clear value

Throws:
OpenGLException - General OpenGL Error

glPixelZoom

public final void glPixelZoom(float xfactor,
                              float yfactor)
                       throws OpenGLException
Specify the pixel zoom factors
Specified by:
glPixelZoom in interface GL
Parameters:
xfactor - The x zoom factor
yfactor - The y zoom factor

Throws:
OpenGLException - General OpenGL Error

pixelZoom

public final void pixelZoom(float xfactor,
                            float yfactor)
                     throws OpenGLException
Specify the pixel zoom factors
Specified by:
pixelZoom in interface GL
Parameters:
xfactor - The x zoom factor
yfactor - The y zoom factor

Throws:
OpenGLException - General OpenGL Error

glGetFloatv

public final void glGetFloatv(int pname,
                              float[] params)
                       throws OpenGLException
Return the value or values of a specified parameter
Specified by:
glGetFloatv in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

getFloat

public final void getFloat(int pname,
                           float[] params)
                    throws OpenGLException
Return the value or values of a specified parameter
Specified by:
getFloat in interface GL
Parameters:
pname - A symbolic constant signifying which state variable to return
params - The buffer to fill with the requested data

Throws:
OpenGLException - General OpenGL Error

glTexCoord4s

public final void glTexCoord4s(short s,
                               short t,
                               short r,
                               short q)
                        throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4s in interface GL
Parameters:
s - The s texture coordinate
t - The t texture coordinate
r - The r texture coordinate
q - The q texture coordinate

Throws:
OpenGLException - General OpenGL Error

glColor4fv

public final void glColor4fv(float[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4fv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glIndexub

public final void glIndexub(byte c)
                     throws OpenGLException
Set the current colour index
Specified by:
glIndexub in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

index

public final void index(byte c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - The colour index value

Throws:
OpenGLException - General OpenGL Error

glTexCoord1dv

public final void glTexCoord1dv(double[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1dv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glColor4b

public final void glColor4b(byte r,
                            byte g,
                            byte b,
                            byte a)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor4b in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glColor4d

public final void glColor4d(double r,
                            double g,
                            double b,
                            double a)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor4d in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glFrontFace

public final void glFrontFace(int mode)
                       throws OpenGLException
Define front- and back-facing polygons
Specified by:
glFrontFace in interface GL
Parameters:
mode - The mode to determine front-facing polygons. The default is GL_CCW, ie, counter-clockwise

Throws:
OpenGLException - General OpenGL Error

frontFace

public final void frontFace(int mode)
                     throws OpenGLException
Define front- and back-facing polygons
Specified by:
frontFace in interface GL
Parameters:
mode - The mode to determine front-facing polygons. The default is GL_CCW, ie, counter-clockwise

Throws:
OpenGLException - General OpenGL Error

glColor4f

public final void glColor4f(float r,
                            float g,
                            float b,
                            float a)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor4f in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glGetTexEnviv

public final void glGetTexEnviv(int target,
                                int pname,
                                int[] params)
                         throws OpenGLException
Return texture environment parameters
Specified by:
glGetTexEnviv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getTexEnv

public final void getTexEnv(int target,
                            int pname,
                            int[] params)
                     throws OpenGLException
Return texture environment parameters
Specified by:
getTexEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glColor4i

public final void glColor4i(int r,
                            int g,
                            int b,
                            int a)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor4i in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glLoadName

public final void glLoadName(int name)
                      throws OpenGLException
Load a name onto the name stack
Specified by:
glLoadName in interface GL
Parameters:
name - The name to load onto the name stack

Throws:
OpenGLException - General OpenGL Error

loadName

public final void loadName(int name)
                    throws OpenGLException
Load a name onto the name stack
Specified by:
loadName in interface GL
Parameters:
name - The name to load onto the name stack

Throws:
OpenGLException - General OpenGL Error

glBegin

public final void glBegin(int mode)
                   throws OpenGLException
Delimit the vertices of a primitive of a group of like primitives
Specified by:
glBegin in interface GL
Parameters:
mode - The type of primitive to begin defining

Throws:
OpenGLException - General OpenGL Error

begin

public final void begin(int mode)
                 throws OpenGLException
Delimit the vertices of a primitive of a group of like primitives
Specified by:
begin in interface GL
Parameters:
mode - The type of primitive to begin defining

Throws:
OpenGLException - General OpenGL Error

glColor4s

public final void glColor4s(short r,
                            short g,
                            short b,
                            short a)
                     throws OpenGLException
Sets the current colour
Specified by:
glColor4s in interface GL
Parameters:
r - The red component of the colour
g - The green component of the colour
b - The blue component of the colour
a - The alpha component of the colour

Throws:
OpenGLException - General OpenGL Error

glLightModeliv

public final void glLightModeliv(int pname,
                                 int[] params)
                          throws OpenGLException
Set the lighting model parameters
Specified by:
glLightModeliv in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
params - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

lightModel

public final void lightModel(int pname,
                             int[] params)
                      throws OpenGLException
Set the lighting model parameters
Specified by:
lightModel in interface GL
Parameters:
pname - The lighting model parameter to set. Legal values are GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE
params - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glEvalCoord2fv

public final void glEvalCoord2fv(float[] values)
                          throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord2fv in interface GL
Parameters:
values - Pointer to an array of domain coordinates

Throws:
OpenGLException - General OpenGL Error

glGetMaterialiv

public final void glGetMaterialiv(int face,
                                  int pname,
                                  int[] params)
                           throws OpenGLException
Return material parameters
Specified by:
glGetMaterialiv in interface GL
Parameters:
face - Specifies which of the two materials are being queried
pname - Specifies the material parameter to return
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getMaterial

public final void getMaterial(int face,
                              int pname,
                              int[] params)
                       throws OpenGLException
Return material parameters
Specified by:
getMaterial in interface GL
Parameters:
face - Specifies which of the two materials are being queried
pname - Specifies the material parameter to return
params - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glEdgeFlag

public final void glEdgeFlag(boolean flag)
                      throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
glEdgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(boolean flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
edgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

glEdgeFlag

public final void glEdgeFlag(byte flag)
                      throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
glEdgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(byte flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
edgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

glEdgeFlag

public final void glEdgeFlag(int flag)
                      throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
glEdgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(int flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary
Specified by:
edgeFlag in interface GL
Parameters:
flag - If GL_TRUE, the next vertex is considered to initialize a boundary edge of a polygon

Throws:
OpenGLException - General OpenGL Error

glColor4usv

public final void glColor4usv(short[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor4usv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glColor3iv

public final void glColor3iv(int[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor3iv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glTranslated

public final void glTranslated(double x,
                               double y,
                               double z)
                        throws OpenGLException
Multiply the current matrix by a translation matrix
Specified by:
glTranslated in interface GL
Parameters:
x - The x component of a translation vector
y - The y component of a translation vector
z - The z component of a translation vector

Throws:
OpenGLException - General OpenGL Error

translate

public final void translate(double x,
                            double y,
                            double z)
                     throws OpenGLException
Multiply the current matrix by a translation matrix
Specified by:
translate in interface GL
Parameters:
x - The x component of a translation vector
y - The y component of a translation vector
z - The z component of a translation vector

Throws:
OpenGLException - General OpenGL Error

glTranslatef

public final void glTranslatef(float x,
                               float y,
                               float z)
                        throws OpenGLException
Multiply the current matrix by a translation matrix
Specified by:
glTranslatef in interface GL
Parameters:
x - The x component of a translation vector
y - The y component of a translation vector
z - The z component of a translation vector

Throws:
OpenGLException - General OpenGL Error

translate

public final void translate(float x,
                            float y,
                            float z)
                     throws OpenGLException
Multiply the current matrix by a translation matrix
Specified by:
translate in interface GL
Parameters:
x - The x component of a translation vector
y - The y component of a translation vector
z - The z component of a translation vector

Throws:
OpenGLException - General OpenGL Error

glIndexfv

public final void glIndexfv(float[] c)
                     throws OpenGLException
Set the current colour index
Specified by:
glIndexfv in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

index

public final void index(float[] c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

glNormal3bv

public final void glNormal3bv(byte[] v)
                       throws OpenGLException
Set the current normal vector
Specified by:
glNormal3bv in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(byte[] v)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

glClipPlane

public final void glClipPlane(int plane,
                              double[] equation)
                       throws OpenGLException
Specify a plane against which all geometry is clipped
Specified by:
glClipPlane in interface GL
Parameters:
plane - Specifies the clipping plane to define
equation - The four co-efficients of the plane equation used as a clipping plane

Throws:
OpenGLException - General OpenGL Error

clipPlane

public final void clipPlane(int plane,
                            double[] equation)
                     throws OpenGLException
Specify a plane against which all geometry is clipped
Specified by:
clipPlane in interface GL
Parameters:
plane - Specifies the clipping plane to define
equation - The four co-efficients of the plane equation used as a clipping plane

Throws:
OpenGLException - General OpenGL Error

glTexEnvf

public final void glTexEnvf(int target,
                            int pname,
                            float param)
                     throws OpenGLException
Set texture environment parameters
Specified by:
glTexEnvf in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

texEnv

public final void texEnv(int target,
                         int pname,
                         float param)
                  throws OpenGLException
Set texture environment parameters
Specified by:
texEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

glTexEnvi

public final void glTexEnvi(int target,
                            int pname,
                            int param)
                     throws OpenGLException
Set texture environment parameters
Specified by:
glTexEnvi in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

texEnv

public final void texEnv(int target,
                         int pname,
                         int param)
                  throws OpenGLException
Set texture environment parameters
Specified by:
texEnv in interface GL
Parameters:
target - Specifies a texture environment
pname - Specifies the symbolic name of a texture environment parameter
param - Specifies symbolic constants

Throws:
OpenGLException - General OpenGL Error

glTexCoord2sv

public final void glTexCoord2sv(short[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2sv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glNewList

public final void glNewList(int list,
                            int mode)
                     throws OpenGLException
Create or replace a display list
Specified by:
glNewList in interface GL
Parameters:
list - The display list name
mode - Specifies the compilation mode

Throws:
OpenGLException - General OpenGL Error

newList

public final void newList(int list,
                          int mode)
                   throws OpenGLException
Create or replace a display list
Specified by:
newList in interface GL
Parameters:
list - The display list name
mode - Specifies the compilation mode

Throws:
OpenGLException - General OpenGL Error

glPixelTransferf

public final void glPixelTransferf(int pname,
                                   float param)
                            throws OpenGLException
Set pixel transfer modes
Specified by:
glPixelTransferf in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

pixelTransfer

public final void pixelTransfer(int pname,
                                float param)
                         throws OpenGLException
Set pixel transfer modes
Specified by:
pixelTransfer in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

glRectiv

public final void glRectiv(int[] v1,
                           int[] v2)
                    throws OpenGLException
Draw a rectangle
Specified by:
glRectiv in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(int[] v1,
                       int[] v2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
v1 - Buffer containing two coordinates for the first corner of the rectangle
v2 - Buffer containing two coordinates for the second corner of the rectangle

Throws:
OpenGLException - General OpenGL Error

glPixelTransferi

public final void glPixelTransferi(int pname,
                                   int param)
                            throws OpenGLException
Set pixel transfer modes
Specified by:
glPixelTransferi in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

pixelTransfer

public final void pixelTransfer(int pname,
                                int param)
                         throws OpenGLException
Set pixel transfer modes
Specified by:
pixelTransfer in interface GL
Parameters:
pname - The symbolic name of the parameter to be set
param - The value that `pname' is to be set to

Throws:
OpenGLException - General OpenGL Error

glStencilOp

public final void glStencilOp(int fail,
                              int zfail,
                              int zpass)
                       throws OpenGLException
Set stencil test actions
Specified by:
glStencilOp in interface GL
Parameters:
fail - Specifies an action to take when the stencil test fails
zfail - Specifies an action when the stencil test passes but the depth test fails
zpass - Specifies an action to take when both the stencil and depth tests pass

Throws:
OpenGLException - General OpenGL Error

stencilOp

public final void stencilOp(int fail,
                            int zfail,
                            int zpass)
                     throws OpenGLException
Set stencil test actions
Specified by:
stencilOp in interface GL
Parameters:
fail - Specifies an action to take when the stencil test fails
zfail - Specifies an action when the stencil test passes but the depth test fails
zpass - Specifies an action to take when both the stencil and depth tests pass

Throws:
OpenGLException - General OpenGL Error

glTexCoord2dv

public final void glTexCoord2dv(double[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2dv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glEvalCoord1d

public final void glEvalCoord1d(double u)
                         throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord1d in interface GL
Parameters:
u - The domain coordinate

Throws:
OpenGLException - General OpenGL Error

glGetPixelMapuiv

public final void glGetPixelMapuiv(int map,
                                   int[] values)
                            throws OpenGLException
Return the specified pixel map
Specified by:
glGetPixelMapuiv in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

getPixelMap

public final void getPixelMap(int map,
                              int[] values)
                       throws OpenGLException
Return the specified pixel map
Specified by:
getPixelMap in interface GL
Parameters:
map - Specifies the name of the pixel map to return
values - Returns the pixel map contents

Throws:
OpenGLException - General OpenGL Error

glTexCoord1fv

public final void glTexCoord1fv(float[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1fv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glShadeModel

public final void glShadeModel(int mode)
                        throws OpenGLException
Select flat or smooth shading
Specified by:
glShadeModel in interface GL
Parameters:
mode - The symbolic value representing a shading technique

Throws:
OpenGLException - General OpenGL Error

shadeModel

public final void shadeModel(int mode)
                      throws OpenGLException
Select flat or smooth shading
Specified by:
shadeModel in interface GL
Parameters:
mode - The symbolic value representing a shading technique

Throws:
OpenGLException - General OpenGL Error

glEvalCoord1f

public final void glEvalCoord1f(float u)
                         throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord1f in interface GL
Parameters:
u - The domain coordinate

Throws:
OpenGLException - General OpenGL Error

glVertex2sv

public final void glVertex2sv(short[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex2sv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glClearDepth

public final void glClearDepth(double depth)
                        throws OpenGLException
Specify the clear value for the depth buffer
Specified by:
glClearDepth in interface GL
Parameters:
depth - The value to which the depth buffer is cleared to

Throws:
OpenGLException - General OpenGL Error

clearDepth

public final void clearDepth(double depth)
                      throws OpenGLException
Specify the clear value for the depth buffer
Specified by:
clearDepth in interface GL
Parameters:
depth - The value to which the depth buffer is cleared to

Throws:
OpenGLException - General OpenGL Error

glLightf

public final void glLightf(int light,
                           int pname,
                           float param)
                    throws OpenGLException
Set light source parameters
Specified by:
glLightf in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

light

public final void light(int light,
                        int pname,
                        float param)
                 throws OpenGLException
Set light source parameters
Specified by:
light in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glLighti

public final void glLighti(int light,
                           int pname,
                           int param)
                    throws OpenGLException
Set light source parameters
Specified by:
glLighti in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

light

public final void light(int light,
                        int pname,
                        int param)
                 throws OpenGLException
Set light source parameters
Specified by:
light in interface GL
Parameters:
light - The light specified by a symbolic constant from GL_LIGHT0 to GL_LIGHT7
pname - The lighting parameter to set, legal values for which are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION or GL_QUADRATIC_ATTENUATION
param - The value of the chosen parameter

Throws:
OpenGLException - General OpenGL Error

glIndexMask

public final void glIndexMask(int mask)
                       throws OpenGLException
Control the writing of individual bits in the colour index buffers
Specified by:
glIndexMask in interface GL
Parameters:
mask - The control mask for the colour index buffer

Throws:
OpenGLException - General OpenGL Error

indexMask

public final void indexMask(int mask)
                     throws OpenGLException
Control the writing of individual bits in the colour index buffers
Specified by:
indexMask in interface GL
Parameters:
mask - The control mask for the colour index buffer

Throws:
OpenGLException - General OpenGL Error

glTexGendv

public final void glTexGendv(int coord,
                             int pname,
                             double[] param)
                      throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGendv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         double[] param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glNormal3sv

public final void glNormal3sv(short[] v)
                       throws OpenGLException
Set the current normal vector
Specified by:
glNormal3sv in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(short[] v)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

glGetPolygonStipple

public final void glGetPolygonStipple(byte[] mask)
                               throws OpenGLException
Return the polygon stipple pattern
Specified by:
glGetPolygonStipple in interface GL
Parameters:
mask - Returns the stipple pattern

Throws:
OpenGLException - General OpenGL Error

getPolygonStipple

public final void getPolygonStipple(byte[] mask)
                             throws OpenGLException
Return the polygon stipple pattern
Specified by:
getPolygonStipple in interface GL
Parameters:
mask - Returns the stipple pattern

Throws:
OpenGLException - General OpenGL Error

glVertex2dv

public final void glVertex2dv(double[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex2dv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glCopyTexSubImage1D

public final void glCopyTexSubImage1D(int target,
                                      int level,
                                      int xoffset,
                                      int x,
                                      int y,
                                      int width)
                               throws OpenGLException
Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing one-dimensional texture image
Specified by:
glCopyTexSubImage1D in interface GL
Parameters:
target - The constant GL_TEXTURE_1D
level - The mipmap level-of-detail
xoffset - The texel offset of where to put the subimage within the existing texture array
x - The x-coord of the pixel rectangle
y - The y-coord of the pixel rectangle
width - The number of pixels to copy

Throws:
OpenGLException - General OpenGL Error

copyTexSubImage1D

public final void copyTexSubImage1D(int target,
                                    int level,
                                    int xoffset,
                                    int x,
                                    int y,
                                    int width)
                             throws OpenGLException
Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing one-dimensional texture image
Specified by:
copyTexSubImage1D in interface GL
Parameters:
target - The constant GL_TEXTURE_1D
level - The mipmap level-of-detail
xoffset - The texel offset of where to put the subimage within the existing texture array
x - The x-coord of the pixel rectangle
y - The y-coord of the pixel rectangle
width - The number of pixels to copy

Throws:
OpenGLException - General OpenGL Error

glBindTexture

public final void glBindTexture(int target,
                                int textureName)
                         throws OpenGLException
Creates and uses texture objects. Upon first invocation, a default texture object is created and bound. Upon subsequent invocations with a given texture object, it makes the given texture current
Specified by:
glBindTexture in interface GL
Parameters:
target - Dimensionality of texture to bind
textureName - The name to be given to the texture

Throws:
OpenGLException - General OpenGL Error

bindTexture

public final void bindTexture(int target,
                              int textureName)
                       throws OpenGLException
Creates and uses texture objects. Upon first invocation, a default texture object is created and bound. Upon subsequent invocations with a given texture object, it makes the given texture current
Specified by:
bindTexture in interface GL
Parameters:
target - Dimensionality of texture to bind
textureName - The name to be given to the texture

Throws:
OpenGLException - General OpenGL Error

glPopName

public final void glPopName()
                     throws OpenGLException
Pop the name stack

Specified by:
glPopName in interface GL
Throws:
OpenGLException - General OpenGL Error

popName

public final void popName()
                   throws OpenGLException
Pop the name stack

Specified by:
popName in interface GL
Throws:
OpenGLException - General OpenGL Error

glColor4iv

public final void glColor4iv(int[] v)
                      throws OpenGLException
Sets the current colour
Specified by:
glColor4iv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glDisable

public final void glDisable(int cap)
                     throws OpenGLException
Turns off the given capability in the OpenGL pipeline
Specified by:
glDisable in interface GL
Parameters:
cap - The capability to switch off

Throws:
OpenGLException - General OpenGL Error

disable

public final void disable(int cap)
                   throws OpenGLException
Turns off the given capability in the OpenGL pipeline
Specified by:
disable in interface GL
Parameters:
cap - The capability to switch off

Throws:
OpenGLException - General OpenGL Error

glEvalCoord2d

public final void glEvalCoord2d(double u,
                                double v)
                         throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord2d in interface GL
Parameters:
u - First domain coordinate
v - Second domain coordinate

Throws:
OpenGLException - General OpenGL Error

glPopAttrib

public final void glPopAttrib()
                       throws OpenGLException
Pushes the given attribute onto the attribute stack

Specified by:
glPopAttrib in interface GL
Throws:
OpenGLException - General OpenGL Error

popAttrib

public final void popAttrib()
                     throws OpenGLException
Pushes the given attribute onto the attribute stack

Specified by:
popAttrib in interface GL
Throws:
OpenGLException - General OpenGL Error

glNormal3dv

public final void glNormal3dv(double[] v)
                       throws OpenGLException
Set the current normal vector
Specified by:
glNormal3dv in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(double[] v)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

glEvalCoord2f

public final void glEvalCoord2f(float u,
                                float v)
                         throws OpenGLException
Evaluate enabled one- and two-dimensional maps
Specified by:
glEvalCoord2f in interface GL
Parameters:
u - First domain coordinate
v - Second domain coordinate

Throws:
OpenGLException - General OpenGL Error

glGetMapdv

public final void glGetMapdv(int target,
                             int query,
                             double[] v)
                      throws OpenGLException
Return evaluator parameters
Specified by:
glGetMapdv in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getMap

public final void getMap(int target,
                         int query,
                         double[] v)
                  throws OpenGLException
Return evaluator parameters
Specified by:
getMap in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glSelectBuffer

public final void glSelectBuffer(int size,
                                 int[] buffer)
                          throws OpenGLException
Establish a buffer for selection mode values. This function is slightly tricky to use correctly under Magician as the depth values are represented by 2 values scaled from 0.0 to 1.0 into 2^32 - 1. Therefore, to extract the depth values you must divide by 0x7fffffff. Unfortunately, the selection buffer should be of type unsigned int, but, as Java does not support unsigned int values you must take the twos-complement of the integer value in the selection buffer prior to dividing by 0x7fffffff. See the ``Red Book'' select.java demo for more details.
Specified by:
glSelectBuffer in interface GL
Parameters:
size - The size of `buffer'
buffer - Returns the selection data

Throws:
OpenGLException - General OpenGL Error

selectBuffer

public final void selectBuffer(int size,
                               int[] buffer)
                        throws OpenGLException
Establish a buffer for selection mode values. This function is slightly tricky to use correctly under Magician as the depth values are represented by 2 values scaled from 0.0 to 1.0 into 2^32 - 1. Therefore, to extract the depth values you must divide by 0x7fffffff. Unfortunately, the selection buffer should be of type unsigned int, but, as Java does not support unsigned int values you must take the twos-complement of the integer value in the selection buffer prior to dividing by 0x7fffffff. See the ``Red Book'' select.java demo for more details.
Specified by:
selectBuffer in interface GL
Parameters:
size - The size of `buffer'
buffer - Returns the selection data

Throws:
OpenGLException - General OpenGL Error

glFogf

public final void glFogf(int pname,
                         float param)
                  throws OpenGLException
Specify fog parameters
Specified by:
glFogf in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
param - The value of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

fog

public final void fog(int pname,
                      float param)
               throws OpenGLException
Specify fog parameters
Specified by:
fog in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
param - The value of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

glEvalPoint1

public final void glEvalPoint1(int i)
                        throws OpenGLException
Generate and evaluate a single point in a mesh
Specified by:
glEvalPoint1 in interface GL
Parameters:
i - Specifies the integer value for grid domain variable `i'

Throws:
OpenGLException - General OpenGL Error

evalPoint

public final void evalPoint(int i)
                     throws OpenGLException
Generate and evaluate a single point in a mesh
Specified by:
evalPoint in interface GL
Parameters:
i - Specifies the integer value for grid domain variable `i'

Throws:
OpenGLException - General OpenGL Error

glTexCoord3sv

public final void glTexCoord3sv(short[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3sv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glEvalPoint2

public final void glEvalPoint2(int i,
                               int j)
                        throws OpenGLException
Generate and evaluate a single point in a mesh
Specified by:
glEvalPoint2 in interface GL
Parameters:
i - Specifies the integer value for grid domain variable `i'
j - Specifies the integer value for grid domain variable `j'

Throws:
OpenGLException - General OpenGL Error

evalPoint

public final void evalPoint(int i,
                            int j)
                     throws OpenGLException
Generate and evaluate a single point in a mesh
Specified by:
evalPoint in interface GL
Parameters:
i - Specifies the integer value for grid domain variable `i'
j - Specifies the integer value for grid domain variable `j'

Throws:
OpenGLException - General OpenGL Error

glPopMatrix

public final void glPopMatrix()
                       throws OpenGLException
Pop the current matrix stack

Specified by:
glPopMatrix in interface GL
Throws:
OpenGLException - General OpenGL Error

popMatrix

public final void popMatrix()
                     throws OpenGLException
Pop the current matrix stack

Specified by:
popMatrix in interface GL
Throws:
OpenGLException - General OpenGL Error

glFogi

public final void glFogi(int pname,
                         int param)
                  throws OpenGLException
Specify fog parameters
Specified by:
glFogi in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
param - The value of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

fog

public final void fog(int pname,
                      int param)
               throws OpenGLException
Specify fog parameters
Specified by:
fog in interface GL
Parameters:
pname - The parameter to set. Legal values are GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START and GL_FOG_END
param - The value of the given parameter in `pname'

Throws:
OpenGLException - General OpenGL Error

glScissor

public final void glScissor(int x,
                            int y,
                            int width,
                            int height)
                     throws OpenGLException
Define the scissor box
Specified by:
glScissor in interface GL
Parameters:
x - The x-coordinate of the lower-left corner of the scissor box
y - The y-coordinate of the lower-left corner of the scissor box
width - The width of the scissor box
height - The height of the scissor box

Throws:
OpenGLException - General OpenGL Error

scissor

public final void scissor(int x,
                          int y,
                          int width,
                          int height)
                   throws OpenGLException
Define the scissor box
Specified by:
scissor in interface GL
Parameters:
x - The x-coordinate of the lower-left corner of the scissor box
y - The y-coordinate of the lower-left corner of the scissor box
width - The width of the scissor box
height - The height of the scissor box

Throws:
OpenGLException - General OpenGL Error

glColor3uiv

public final void glColor3uiv(int[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor3uiv in interface GL
Parameters:
v - An array containing the 3 component colour values

Throws:
OpenGLException - General OpenGL Error

glArrayElement

public final void glArrayElement(int ith)
                          throws OpenGLException
Specify the array elements used to render a vertex
Specified by:
glArrayElement in interface GL
Parameters:
ith - The array index to obtain information for

Throws:
OpenGLException - General OpenGL Error

arrayElement

public final void arrayElement(int ith)
                        throws OpenGLException
Specify the array elements used to render a vertex
Specified by:
arrayElement in interface GL
Parameters:
ith - The array index to obtain information for

Throws:
OpenGLException - General OpenGL Error

glColorMask

public final void glColorMask(boolean red,
                              boolean green,
                              boolean blue,
                              boolean alpha)
                       throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
glColorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

colorMask

public final void colorMask(boolean red,
                            boolean green,
                            boolean blue,
                            boolean alpha)
                     throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
colorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

glColorMask

public final void glColorMask(byte red,
                              byte green,
                              byte blue,
                              byte alpha)
                       throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
glColorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

colorMask

public final void colorMask(byte red,
                            byte green,
                            byte blue,
                            byte alpha)
                     throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
colorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

glColorMask

public final void glColorMask(int red,
                              int green,
                              int blue,
                              int alpha)
                       throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
glColorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

colorMask

public final void colorMask(int red,
                            int green,
                            int blue,
                            int alpha)
                     throws OpenGLException
Enable and disable writing of frame buffer colour components
Specified by:
colorMask in interface GL
Parameters:
red - The red component of the colour mask
green - The green component of the colour mask
blue - The blue component of the colour mask
alpha - The alpha component of the colour mask

Throws:
OpenGLException - General OpenGL Error

glScaled

public final void glScaled(double x,
                           double y,
                           double z)
                    throws OpenGLException
Multiply the current matrix by a general scaling matrix
Specified by:
glScaled in interface GL
Parameters:
x - The scale factor along the x axis
y - The scale factor along the y axis
z - The scale factor along the z axis

Throws:
OpenGLException - General OpenGL Error

scale

public final void scale(double x,
                        double y,
                        double z)
                 throws OpenGLException
Multiply the current matrix by a general scaling matrix
Specified by:
scale in interface GL
Parameters:
x - The scale factor along the x axis
y - The scale factor along the y axis
z - The scale factor along the z axis

Throws:
OpenGLException - General OpenGL Error

glTexParameterfv

public final void glTexParameterfv(int target,
                                   int pname,
                                   float[] param)
                            throws OpenGLException
Set texture parameters
Specified by:
glTexParameterfv in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

texParameter

public final void texParameter(int target,
                               int pname,
                               float[] param)
                        throws OpenGLException
Set texture parameters
Specified by:
texParameter in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

glScalef

public final void glScalef(float x,
                           float y,
                           float z)
                    throws OpenGLException
Multiply the current matrix by a general scaling matrix
Specified by:
glScalef in interface GL
Parameters:
x - The scale factor along the x axis
y - The scale factor along the y axis
z - The scale factor along the z axis

Throws:
OpenGLException - General OpenGL Error

scale

public final void scale(float x,
                        float y,
                        float z)
                 throws OpenGLException
Multiply the current matrix by a general scaling matrix
Specified by:
scale in interface GL
Parameters:
x - The scale factor along the x axis
y - The scale factor along the y axis
z - The scale factor along the z axis

Throws:
OpenGLException - General OpenGL Error

glCopyTexSubImage2D

public final void glCopyTexSubImage2D(int target,
                                      int level,
                                      int xoffset,
                                      int yoffset,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
                               throws OpenGLException
Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing two-dimensional texture image
Specified by:
glCopyTexSubImage2D in interface GL
Parameters:
target - The constant GL_TEXTURE_2D
level - The mipmap level-of-detail
xoffset - The x texel offset of where to place the subimage
yoffset - The y texel offset of where to place the subimage
x - The x-coord of the bottom-left of the pixel rectangle
y - The y-coord of the bottom-left of the pixel rectangle
width - The width of the subimage rectangle to copy
height - The height of the subimage rectangle

Throws:
OpenGLException - General OpenGL Error

copyTexSubImage2D

public final void copyTexSubImage2D(int target,
                                    int level,
                                    int xoffset,
                                    int yoffset,
                                    int x,
                                    int y,
                                    int width,
                                    int height)
                             throws OpenGLException
Uses image data from the framebuffer to replace all or part of a contiguous subregion of the current, existing two-dimensional texture image
Specified by:
copyTexSubImage2D in interface GL
Parameters:
target - The constant GL_TEXTURE_2D
level - The mipmap level-of-detail
xoffset - The x texel offset of where to place the subimage
yoffset - The y texel offset of where to place the subimage
x - The x-coord of the bottom-left of the pixel rectangle
y - The y-coord of the bottom-left of the pixel rectangle
width - The width of the subimage rectangle to copy
height - The height of the subimage rectangle

Throws:
OpenGLException - General OpenGL Error

glRectd

public final void glRectd(double x1,
                          double y1,
                          double x2,
                          double y2)
                   throws OpenGLException
Draw a rectangle
Specified by:
glRectd in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(double x1,
                       double y1,
                       double x2,
                       double y2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

glRectf

public final void glRectf(float x1,
                          float y1,
                          float x2,
                          float y2)
                   throws OpenGLException
Draw a rectangle
Specified by:
glRectf in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(float x1,
                       float y1,
                       float x2,
                       float y2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

glTexCoord3dv

public final void glTexCoord3dv(double[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3dv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glTexCoord2fv

public final void glTexCoord2fv(float[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord2fv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glIndexiv

public final void glIndexiv(int[] c)
                     throws OpenGLException
Set the current colour index
Specified by:
glIndexiv in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

index

public final void index(int[] c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

glRecti

public final void glRecti(int x1,
                          int y1,
                          int x2,
                          int y2)
                   throws OpenGLException
Draw a rectangle
Specified by:
glRecti in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(int x1,
                       int y1,
                       int x2,
                       int y2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

glVertex3sv

public final void glVertex3sv(short[] z)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex3sv in interface GL
Parameters:
z - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glRasterPos2sv

public final void glRasterPos2sv(short[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2sv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glFeedbackBuffer

public final void glFeedbackBuffer(int size,
                                   int type,
                                   float[] buffer)
                            throws OpenGLException
Controls feedback mode
Specified by:
glFeedbackBuffer in interface GL
Parameters:
size - The maximum number of values storable in the feedback array
type - The type of information fed back for each vertex in the feedback array. Possible values are GL_2D, GL_3D, GL_3D_COLOR, GL_3D_COLOR_TEXTURE and GL_4D_COLOR_TEXTURE
buffer - The feedback buffer itself

Throws:
OpenGLException - General OpenGL Error

feedbackBuffer

public final void feedbackBuffer(int size,
                                 int type,
                                 float[] buffer)
                          throws OpenGLException
Controls feedback mode
Specified by:
feedbackBuffer in interface GL
Parameters:
size - The maximum number of values storable in the feedback array
type - The type of information fed back for each vertex in the feedback array. Possible values are GL_2D, GL_3D, GL_3D_COLOR, GL_3D_COLOR_TEXTURE and GL_4D_COLOR_TEXTURE
buffer - The feedback buffer itself

Throws:
OpenGLException - General OpenGL Error

glRects

public final void glRects(short x1,
                          short y1,
                          short x2,
                          short y2)
                   throws OpenGLException
Draw a rectangle
Specified by:
glRects in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

rect

public final void rect(short x1,
                       short y1,
                       short x2,
                       short y2)
                throws OpenGLException
Draw a rectangle
Specified by:
rect in interface GL
Parameters:
x1 - The x-coordinate of the first corner of the rectangle
y1 - The y-coordinate of the first corner of the rectangle
x2 - The x-coordinate of the second corner of the rectangle opposite to the first
y2 - The y-coordinate of the second coordinate of the rectangle opposite to the first

Throws:
OpenGLException - General OpenGL Error

glGetTexLevelParameterfv

public final void glGetTexLevelParameterfv(int target,
                                           int level,
                                           int pname,
                                           float[] params)
                                    throws OpenGLException
Return texture parameter values for a specific level of detail
Specified by:
glGetTexLevelParameterfv in interface GL
Parameters:
target - The target texture. Legal values are GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D
level - The mipmap level-of-detail
pname - The texture parameter that is being queried. Legal values are GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_BORDER, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_TEXTURE_LUMINANCE_SIZE or GL_TEXTURE_INTENSITY_SIZE
params - The buffer into which the queried values are returned

Throws:
OpenGLException - General OpenGL Error

getTexLevelParameter

public final void getTexLevelParameter(int target,
                                       int level,
                                       int pname,
                                       float[] params)
                                throws OpenGLException
Return texture parameter values for a specific level of detail
Specified by:
getTexLevelParameter in interface GL
Parameters:
target - The target texture. Legal values are GL_TEXTURE_1D, GL_TEXTURE_2D, GL_PROXY_TEXTURE_1D or GL_PROXY_TEXTURE_2D
level - The mipmap level-of-detail
pname - The texture parameter that is being queried. Legal values are GL_TEXTURE_WIDTH, GL_TEXTURE_HEIGHT, GL_TEXTURE_BORDER, GL_TEXTURE_INTERNAL_FORMAT, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, GL_TEXTURE_ALPHA_SIZE, GL_TEXTURE_LUMINANCE_SIZE or GL_TEXTURE_INTENSITY_SIZE
params - The buffer into which the queried values are returned

Throws:
OpenGLException - General OpenGL Error

glTexGenfv

public final void glTexGenfv(int coord,
                             int pname,
                             float[] param)
                      throws OpenGLException
Control the generation of texture coordinates
Specified by:
glTexGenfv in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

texGen

public final void texGen(int coord,
                         int pname,
                         float[] param)
                  throws OpenGLException
Control the generation of texture coordinates
Specified by:
texGen in interface GL
Parameters:
coord - Specifies a texture coordinate
pname - Specifies a symbolic coordinate describing the texture generation function
param - Specifies a texture generation parameter

Throws:
OpenGLException - General OpenGL Error

glVertex3dv

public final void glVertex3dv(double[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex3dv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glVertex2fv

public final void glVertex2fv(float[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex2fv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glPolygonMode

public final void glPolygonMode(int face,
                                int mode)
                         throws OpenGLException
Select a polygon rasterization mode
Specified by:
glPolygonMode in interface GL
Parameters:
face - Specifies the polygons that `mode' applies to
mode - Specifies how polygons will be rasterized

Throws:
OpenGLException - General OpenGL Error

polygonMode

public final void polygonMode(int face,
                              int mode)
                       throws OpenGLException
Select a polygon rasterization mode
Specified by:
polygonMode in interface GL
Parameters:
face - Specifies the polygons that `mode' applies to
mode - Specifies how polygons will be rasterized

Throws:
OpenGLException - General OpenGL Error

glRasterPos2dv

public final void glRasterPos2dv(double[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2dv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glCopyTexSubImage3D

public final void glCopyTexSubImage3D(int target,
                                      int level,
                                      int xoffset,
                                      int yoffset,
                                      int zoffset,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
                               throws OpenGLException
Copies a 3D texture sub-image
Specified by:
glCopyTexSubImage3D in interface GL
Parameters:
target -  
level -  
xoffset -  
yoffset -  
zoffset -  
x -  
y -  
width -  
height -

Throws:
OpenGLException - General OpenGL Error

copyTexSubImage3D

public final void copyTexSubImage3D(int target,
                                    int level,
                                    int xoffset,
                                    int yoffset,
                                    int zoffset,
                                    int x,
                                    int y,
                                    int width,
                                    int height)
                             throws OpenGLException
Copies a 3D texture sub-image
Specified by:
copyTexSubImage3D in interface GL
Parameters:
target -  
level -  
xoffset -  
yoffset -  
zoffset -  
x -  
y -  
width -  
height -

Throws:
OpenGLException - General OpenGL Error

glHint

public final void glHint(int target,
                         int mode)
                  throws OpenGLException
Specify implementation-specific hints
Specified by:
glHint in interface GL
Parameters:
target - The behaviour which is to be controlled. Legal values are GL_POINT_SMOOTH_HINT, GL_LINE_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_FOG_HINT and GL_PERSPECTIVE_CORRECTION_HINT
mode - The value to set the hint to

Throws:
OpenGLException - General OpenGL Error

hint

public final void hint(int target,
                       int mode)
                throws OpenGLException
Specify implementation-specific hints
Specified by:
hint in interface GL
Parameters:
target - The behaviour which is to be controlled. Legal values are GL_POINT_SMOOTH_HINT, GL_LINE_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_FOG_HINT and GL_PERSPECTIVE_CORRECTION_HINT
mode - The value to set the hint to

Throws:
OpenGLException - General OpenGL Error

glTexParameterf

public final void glTexParameterf(int target,
                                  int pname,
                                  float param)
                           throws OpenGLException
Set texture parameters
Specified by:
glTexParameterf in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

texParameter

public final void texParameter(int target,
                               int pname,
                               float param)
                        throws OpenGLException
Set texture parameters
Specified by:
texParameter in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

glTexCoord1iv

public final void glTexCoord1iv(int[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord1iv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glCallList

public final void glCallList(int list)
                      throws OpenGLException
Executes a display list
Specified by:
glCallList in interface GL
Parameters:
list - The display list identifier to execute

Throws:
OpenGLException - General OpenGL Error

callList

public final void callList(int list)
                    throws OpenGLException
Executes a display list
Specified by:
callList in interface GL
Parameters:
list - The display list identifier to execute

Throws:
OpenGLException - General OpenGL Error

glNormal3fv

public final void glNormal3fv(float[] v)
                       throws OpenGLException
Set the current normal vector
Specified by:
glNormal3fv in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

normal

public final void normal(float[] v)
                  throws OpenGLException
Set the current normal vector
Specified by:
normal in interface GL
Parameters:
v - Specifies a pointer to an array of three elements

Throws:
OpenGLException - General OpenGL Error

glPassThrough

public final void glPassThrough(float token)
                         throws OpenGLException
Place a marker in the feedback buffer
Specified by:
glPassThrough in interface GL
Parameters:
token - Specifies a marker value to be placed in the feedback buffer

Throws:
OpenGLException - General OpenGL Error

passThrough

public final void passThrough(float token)
                       throws OpenGLException
Place a marker in the feedback buffer
Specified by:
passThrough in interface GL
Parameters:
token - Specifies a marker value to be placed in the feedback buffer

Throws:
OpenGLException - General OpenGL Error

glRasterPos2d

public final void glRasterPos2d(double x,
                                double y)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2d in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glGetMapfv

public final void glGetMapfv(int target,
                             int query,
                             float[] v)
                      throws OpenGLException
Return evaluator parameters
Specified by:
glGetMapfv in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

getMap

public final void getMap(int target,
                         int query,
                         float[] v)
                  throws OpenGLException
Return evaluator parameters
Specified by:
getMap in interface GL
Parameters:
target - Specifies the symbolic constant of a map
query - Specifies which parameter to return
v - Returns the requested data

Throws:
OpenGLException - General OpenGL Error

glTexParameteri

public final void glTexParameteri(int target,
                                  int pname,
                                  int param)
                           throws OpenGLException
Set texture parameters
Specified by:
glTexParameteri in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

texParameter

public final void texParameter(int target,
                               int pname,
                               int param)
                        throws OpenGLException
Set texture parameters
Specified by:
texParameter in interface GL
Parameters:
target - Specifies the target texture
pname - Specifies the name of a texture parameter
param - Specifies the value or values of `pname'

Throws:
OpenGLException - General OpenGL Error

glRasterPos2f

public final void glRasterPos2f(float x,
                                float y)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2f in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glRasterPos2i

public final void glRasterPos2i(int x,
                                int y)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2i in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glDrawArrays

public final void glDrawArrays(int mode,
                               int first,
                               int count)
                        throws OpenGLException
Render primitives from array data
Specified by:
glDrawArrays in interface GL
Parameters:
mode - The type of primitives to be constructed
first - The first array index to process
count - The number of array elements to process

Throws:
OpenGLException - General OpenGL Error

drawArrays

public final void drawArrays(int mode,
                             int first,
                             int count)
                      throws OpenGLException
Render primitives from array data
Specified by:
drawArrays in interface GL
Parameters:
mode - The type of primitives to be constructed
first - The first array index to process
count - The number of array elements to process

Throws:
OpenGLException - General OpenGL Error

glTexCoord4sv

public final void glTexCoord4sv(short[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4sv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glIndexubv

public final void glIndexubv(byte[] c)
                      throws OpenGLException
Set the current colour index
Specified by:
glIndexubv in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

index

public final void index(byte[] c)
                 throws OpenGLException
Set the current colour index
Specified by:
index in interface GL
Parameters:
c - Array of colour index values to set

Throws:
OpenGLException - General OpenGL Error

glRasterPos2s

public final void glRasterPos2s(short x,
                                short y)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos2s in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glOrtho

public final void glOrtho(double left,
                          double right,
                          double bottom,
                          double top,
                          double nearValue,
                          double farValue)
                   throws OpenGLException
Multiply the current matrix by an orthographic matrix
Specified by:
glOrtho in interface GL
Parameters:
left - The left clipping plane
right - The right clipping plane
bottom - The bottom clipping plane
top - The top clipping plane
nearValue - The near clipping plane
farValue - The far clipping plane

Throws:
OpenGLException - General OpenGL Error

ortho

public final void ortho(double left,
                        double right,
                        double bottom,
                        double top,
                        double nearValue,
                        double farValue)
                 throws OpenGLException
Multiply the current matrix by an orthographic matrix
Specified by:
ortho in interface GL
Parameters:
left - The left clipping plane
right - The right clipping plane
bottom - The bottom clipping plane
top - The top clipping plane
nearValue - The near clipping plane
farValue - The far clipping plane

Throws:
OpenGLException - General OpenGL Error

glTexCoord4dv

public final void glTexCoord4dv(double[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord4dv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glTexCoord3fv

public final void glTexCoord3fv(float[] v)
                         throws OpenGLException
Set the current texture coordinates
Specified by:
glTexCoord3fv in interface GL
Parameters:
v - An array of texture coordinates

Throws:
OpenGLException - General OpenGL Error

glGetClipPlane

public final void glGetClipPlane(int plane,
                                 double[] equation)
                          throws OpenGLException
Return the co-efficients of the specified clipping plane
Specified by:
glGetClipPlane in interface GL
Parameters:
plane - Specifies a clipping plane
equation - Returns four doubles that are the co-efficients of the plane equation in eye coordinates

Throws:
OpenGLException - General OpenGL Error

getClipPlane

public final void getClipPlane(int plane,
                               double[] equation)
                        throws OpenGLException
Return the co-efficients of the specified clipping plane
Specified by:
getClipPlane in interface GL
Parameters:
plane - Specifies a clipping plane
equation - Returns four doubles that are the co-efficients of the plane equation in eye coordinates

Throws:
OpenGLException - General OpenGL Error

glRasterPos3d

public final void glRasterPos3d(double x,
                                double y,
                                double z)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3d in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glVertex4sv

public final void glVertex4sv(short[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex4sv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error

glRasterPos3f

public final void glRasterPos3f(float x,
                                float y,
                                float z)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3f in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glGenTextures

public final void glGenTextures(int n,
                                int[] textureNames)
                         throws OpenGLException
Returns the desired quantity of current unused names for texture objects that can be used with glBindTexture. The texture objects are not created at this, the names are merely flagged as being used @see COM.hermetica.magician.GL#glBindTextures
Specified by:
glGenTextures in interface GL
Parameters:
n - The number of texture objects to generate
textureNames - Will contain the names of the newly generated texture objects

Throws:
OpenGLException - General OpenGL Error

genTextures

public final void genTextures(int n,
                              int[] textureNames)
                       throws OpenGLException
Returns the desired quantity of current unused names for texture objects that can be used with glBindTexture. The texture objects are not created at this, the names are merely flagged as being used @see COM.hermetica.magician.GL#glBindTextures
Specified by:
genTextures in interface GL
Parameters:
n - The number of texture objects to generate
textureNames - Will contain the names of the newly generated texture objects

Throws:
OpenGLException - General OpenGL Error

glRasterPos3i

public final void glRasterPos3i(int x,
                                int y,
                                int z)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3i in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glRasterPos3sv

public final void glRasterPos3sv(short[] coords)
                          throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3sv in interface GL
Parameters:
coords - Buffer containing the required number of coordinate to specify the raster position

Throws:
OpenGLException - General OpenGL Error

glDeleteLists

public final void glDeleteLists(int list,
                                int range)
                         throws OpenGLException
Delete a contiguous group of display lists
Specified by:
glDeleteLists in interface GL
Parameters:
list - The starting index of display lists to delete
range - The number of lists to delete, starting at `list'

Throws:
OpenGLException - General OpenGL Error

deleteLists

public final void deleteLists(int list,
                              int range)
                       throws OpenGLException
Delete a contiguous group of display lists
Specified by:
deleteLists in interface GL
Parameters:
list - The starting index of display lists to delete
range - The number of lists to delete, starting at `list'

Throws:
OpenGLException - General OpenGL Error

glEdgeFlagv

public final void glEdgeFlagv(boolean[] flag)
                       throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
glEdgeFlagv in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(boolean[] flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
edgeFlag in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

glEdgeFlagv

public final void glEdgeFlagv(byte[] flag)
                       throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
glEdgeFlagv in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(byte[] flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
edgeFlag in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

glEdgeFlagv

public final void glEdgeFlagv(int[] flag)
                       throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
glEdgeFlagv in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

edgeFlag

public final void edgeFlag(int[] flag)
                    throws OpenGLException
Flag edges as either boundary or nonboundary using an array of values
Specified by:
edgeFlag in interface GL
Parameters:
flag - An array of boolean values indicating the edge flags for many vertices

Throws:
OpenGLException - General OpenGL Error

glPointSize

public final void glPointSize(float size)
                       throws OpenGLException
Specify the diameter of rasterized points
Specified by:
glPointSize in interface GL
Parameters:
size - The diameter of rasterized points

Throws:
OpenGLException - General OpenGL Error

pointSize

public final void pointSize(float size)
                     throws OpenGLException
Specify the diameter of rasterized points
Specified by:
pointSize in interface GL
Parameters:
size - The diameter of rasterized points

Throws:
OpenGLException - General OpenGL Error

glColor4uiv

public final void glColor4uiv(int[] v)
                       throws OpenGLException
Sets the current colour
Specified by:
glColor4uiv in interface GL
Parameters:
v - An array containing the 4 component colour values

Throws:
OpenGLException - General OpenGL Error

glRasterPos3s

public final void glRasterPos3s(short x,
                                short y,
                                short z)
                         throws OpenGLException
Specify the raster position for pixel
Specified by:
glRasterPos3s in interface GL
Parameters:
x - The x-coordinate of the raster position
y - The y-coordinate of the raster position
z - The z-coordinate of the raster position

Throws:
OpenGLException - General OpenGL Error

glVertex4dv

public final void glVertex4dv(double[] v)
                       throws OpenGLException
Specify a vertex
Specified by:
glVertex4dv in interface GL
Parameters:
v - Buffer containing vertex data

Throws:
OpenGLException - General OpenGL Error