com.croftsoft.core.media.jogl
Class JoglLib
java.lang.Object
com.croftsoft.core.media.jogl.JoglLib
public final class JoglLib
- extends Object
Library of static methods to manipulate JOGL objects.
- Since:
- 2008-01-27
- Version:
- $Id: JoglLib.java,v 1.5 2008/09/26 23:28:14 croft Exp $
- Author:
- David Wallace Croft
Method Summary |
static void |
checkError(GL gl)
|
static int |
createCubeDisplayList(GL gl)
Creates a display list of a colored cube. |
static void |
drawPolygon(GL gl,
float[][] vertices3f,
int vertexIndex0,
int vertexIndex1,
int vertexIndex2,
int vertexIndex3)
|
static void |
drawPolygon(GL gl,
float[] vertex3f0,
float[] vertex3f1,
float[] vertex3f2,
float[] vertex3f3)
|
static void |
printInfo(GL gl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkError
public static void checkError(GL gl)
createCubeDisplayList
public static int createCubeDisplayList(GL gl)
- Creates a display list of a colored cube.
Destroy the display list by calling glDeleteLists() when done.
- Returns:
- Returns the created display list name.
drawPolygon
public static void drawPolygon(GL gl,
float[] vertex3f0,
float[] vertex3f1,
float[] vertex3f2,
float[] vertex3f3)
drawPolygon
public static void drawPolygon(GL gl,
float[][] vertices3f,
int vertexIndex0,
int vertexIndex1,
int vertexIndex2,
int vertexIndex3)
printInfo
public static void printInfo(GL gl)
CroftSoft Core Javadoc (2008-09-28 20:58:02)