Package jgl.wt.awt

Class GLU

java.lang.Object
jgl.wt.awt.GLU

public class GLU extends Object
GLU is the glu class of jGL 2.4.
Version:
0.4, 12 May 2003
Author:
Robin Bing-Yu Chen Modified 11/15/2002 by Jon McCall. Fixed the gluUnProject code. To fix the gluUnProject method I replaced the inverseMatrix44 with with a different algorithum, it was returning incorrect results. Also added a method to swap rows and columns (swapRowsCols44) because the projection and model matrixes are expected to be in this format for the gluUnproject algoithum to work correctly.
  • Field Details

  • Constructor Details

    • GLU

      public GLU(GL myGL)
  • Method Details

    • print

      public static void print(double[][] input)
    • print

      public static void print(String info, double[][] input)
    • print

      public static void print(double[] input, int width)
    • print

      public static void print(String info, double[] input, int width)
    • gluGetGL

      public GL gluGetGL()
    • gluOrtho2D

      public void gluOrtho2D(double left, double right, double bottom, double top)
      GLvoid gluOrtho2D (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top)
    • gluPerspective

      public void gluPerspective(double fovy, double aspect, double zNear, double zFar)
      GLvoid gluPerspective (GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar)
    • gluPickMatrix

      public void gluPickMatrix(double x, double y, double width, double height, int[] viewport)
      GLvoid gluPickMatrix (GLdouble x, GLdouble y, GLdouble width, GLdouble height, GLint viewport[4])
    • gluProject

      public boolean gluProject(double objx, double objy, double objz, double[] model, double[] proj, int[] viewport, double[] winx, double[] winy, double[] winz)
      GLint gluProject (GLdouble objx, GLdouble objy, GLdouble objz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *winx, GLdouble *winy, GLdouble *winz)
    • gluUnProject

      public boolean gluUnProject(double winx, double winy, double winz, double[] model, double[] proj, int[] viewport, double[] objx, double[] objy, double[] objz)
      GLint gluUnProject (GLdouble winx, GLdouble winy, GLdouble winz, const GLdouble model [16], const GLdouble proj [16], const GLint viewport [4], GLdouble *objx, GLdouble *objy, GLdouble *objz)
    • gluLookAt

      public void gluLookAt(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz)
      GLvoid gluLookAt (GLdouble eyex, GLdouble eyey, GLdouble eyez, GLdouble centerx, GLdouble centery, GLdouble centerz, GLdouble upx, GLdouble upy, GLdouble upz)
    • gluErrorString

      public static String gluErrorString(int errorCode)
      const GLubyte* gluErrorString (GLenum errorCode)
    • gluNewQuadric

      public GLUquadricObj gluNewQuadric()
      GLUquadricObj* gluNewQuadric (GLvoid)
    • gluDeleteQuadric

      public void gluDeleteQuadric(GLUquadricObj state)
      void gluDeleteQuadric (GLUquadricObj *state)
    • gluQuadricDrawStyle

      public void gluQuadricDrawStyle(GLUquadricObj quadObject, int drawStyle)
      GLvoid gluQuadricDrawStyle (GLUquadricObj *quadObject, GLenum drawStyle)
    • gluQuadricOrientation

      public void gluQuadricOrientation(GLUquadricObj quadObject, int orientation)
      GLvoid gluQuadricOrientation (GLUquadricObj *quadObject, GLenum orientation)
    • gluQuadricCallback

      public void gluQuadricCallback(GLUquadricObj qobj, int which, String fn)
      GLvoid gluQuadricCallback (GLUquadricObj *qobj, GLenum which, void (GLCALLBACK * fn) ())
    • gluQuadricNormals

      public void gluQuadricNormals(GLUquadricObj quadObject, int normals)
      GLvoid gluQuadricNormals (GLUquadricObj *quadObject, GLenum normals)
    • gluQuadricTexture

      public void gluQuadricTexture(GLUquadricObj quadObject, boolean textureCoords)
      GLvoid gluQuadricTexture (GLUquadricObj *quadObject, GLboolean textureCoords)
    • gluCylinder

      public void gluCylinder(GLUquadricObj qobj, double baseRadius, double topRadius, double height, int slices, int stacks)
      GLvoid gluCylinder (GLUquadricObj *qobj, GLdouble baseRadius, GLdouble topRadius, GLdouble height, GLint slices, GLint stacks)
    • gluSphere

      public void gluSphere(GLUquadricObj qobj, double radius, int slices, int stacks)
      GLvoid gluSphere (GLUquadricObj *qobj, GLdouble radius, GLint slices, GLint stacks)
    • gluDisk

      public void gluDisk(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops)
      GLvoid gluDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops)
    • gluPartialDisk

      public void gluPartialDisk(GLUquadricObj qobj, double innerRadius, double outerRadius, int slices, int loops, double startAngle, double sweepAngle)
      GLvoid gluPartialDisk (GLUquadricObj *qobj, GLdouble innerRadius, GLdouble outerRadius, GLint slices, GLint loops, GLdouble startAngle, GLdouble sweepAngle)
    • gluNewNurbsRenderer

      public GLUnurbsObj gluNewNurbsRenderer()
      GLUnurbsObj *gluNewNurbsRenderer (GLvoid)
    • gluDeleteNurbsRenderer

      public void gluDeleteNurbsRenderer(GLUnurbsObj nobj)
      GLvoid gluDeleteNurbsRenderer (GLUnurbsObj *nobj)
    • gluLoadSamplingMatrices

      public void gluLoadSamplingMatrices(GLUnurbsObj nobj, float[] modelMatrix, float[] projMatrix, int[] viewport)
      GLvoid gluLoadSamplingMatrices (GLUnurbsObj *nobj, const GLfloat modelMatrix [16], const GLfloat projMatrix [16], const GLint viewport [4])
    • gluNurbsProperty

      public void gluNurbsProperty(GLUnurbsObj nobj, int property, float value)
      GLvoid gluNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat value)
    • gluGetNurbsProperty

      public void gluGetNurbsProperty(GLUnurbsObj nobj, int property, float[] value)
      GLvoid gluGetNurbsProperty (GLUnurbsObj *nobj, GLenum property, GLfloat *value)
    • gluBeginCurve

      public void gluBeginCurve(GLUnurbsObj nobj)
      GLvoid gluBeginCurve (GLUnurbsObj *nobj)
    • gluEndCurve

      public void gluEndCurve(GLUnurbsObj nobj)
      GLvoid gluEndCurve (GLUnurbsObj *nobj)
    • gluNurbsCurve

      public void gluNurbsCurve(GLUnurbsObj nobj, int knot_count, float[] knot, int stride, float[][] ctlarray, int order, int type)
      GLvoid gluNurbsCurve (GLUnurbsObj *nobj, GLint knot_count, GLfloat *knot, GLint stride, GLfloat *ctlarray, GLint order, GLenum type)
    • gluBeginSurface

      public void gluBeginSurface(GLUnurbsObj nobj)
      GLvoid gluBeginSurface (GLUnurbsObj *nobj)
    • gluEndSurface

      public void gluEndSurface(GLUnurbsObj nobj)
      GLvoid gluEndSurface (GLUnurbsObj *nobj)
    • gluNurbsSurface

      public void gluNurbsSurface(GLUnurbsObj nobj, int sknot_count, float[] sknot, int tknot_count, float[] tknot, int s_stride, int t_stride, float[][][] ctlarray, int sorder, int torder, int type)
      GLvoid gluNurbsSurface (GLUnurbsObj *nobj, GLint sknot_count, GLfloat *sknot, GLint tknot_count, GLfloat *tknot, GLint s_stride, GLint t_stride, GLfloat *ctlarray, GLint sorder, GLint torder, GLenum type)