gnu.x11.extension.glx
Class GLU

java.lang.Object
  extended by gnu.x11.extension.glx.GLU

public class GLU
extends java.lang.Object

OpenGL utility library. The specification can be found here.

Modified from src-glu/*.c in Mesa 3D by Brian Paul.


Field Summary
static int FLAT
           
 GL gl
           
static int NONE
           
static int SMOOTH
           
 
Constructor Summary
GLU(GL gl)
           
 
Method Summary
 void look_at(double eyex, double eyey, double eyez, double centerx, double centery, double centerz, double upx, double upy, double upz)
           
 void ortho_2d(double left, double right, double bottom, double top)
           
 void perspective(double fovy, double aspect, double near, double far)
           
 double[] project(double object_x, double object_y, double object_z, double[] modelview, double[] projection, int[] viewport)
           
 double[] un_project(double window_x, double window_y, double window_z, double[] modelview, double[] projection, int[] viewport)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMOOTH

public static final int SMOOTH
See Also:
Constant Field Values

FLAT

public static final int FLAT
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

gl

public GL gl
Constructor Detail

GLU

public GLU(GL gl)
Method Detail

look_at

public void look_at(double eyex,
                    double eyey,
                    double eyez,
                    double centerx,
                    double centery,
                    double centerz,
                    double upx,
                    double upy,
                    double upz)
See Also:
gluLookAt

ortho_2d

public void ortho_2d(double left,
                     double right,
                     double bottom,
                     double top)
See Also:
gluOrtho2D

perspective

public void perspective(double fovy,
                        double aspect,
                        double near,
                        double far)
See Also:
gluPerspective

project

public double[] project(double object_x,
                        double object_y,
                        double object_z,
                        double[] modelview,
                        double[] projection,
                        int[] viewport)
See Also:
gluProject

un_project

public double[] un_project(double window_x,
                           double window_y,
                           double window_z,
                           double[] modelview,
                           double[] projection,
                           int[] viewport)
See Also:
gluUnProject