holoedit.opengl
Class OpenGLUt

java.lang.Object
  extended by holoedit.opengl.OpenGLUt

public class OpenGLUt
extends java.lang.Object


Constructor Summary
OpenGLUt()
           
 
Method Summary
static float[] convCol(java.awt.Color c)
           
static void drawPoint(javax.media.opengl.GL gl, float x, float y)
           
static void drawPoint(javax.media.opengl.GL gl, float x, float y, float z)
           
static void drawTexture(javax.media.opengl.GL gl, int textNum, float x, float y, float w, float h)
           
static float[] glColor(javax.media.opengl.GL gl, java.awt.Color c)
           
static void glColor(javax.media.opengl.GL gl, float[] color)
           
private static void makeRGBTexture(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.awt.image.BufferedImage img, int target, boolean mipmapped)
           
private static java.awt.image.BufferedImage readPNGImage(java.lang.String resourceName)
           
static int textLoad(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenGLUt

public OpenGLUt()
Method Detail

glColor

public static void glColor(javax.media.opengl.GL gl,
                           float[] color)

glColor

public static float[] glColor(javax.media.opengl.GL gl,
                              java.awt.Color c)

drawPoint

public static void drawPoint(javax.media.opengl.GL gl,
                             float x,
                             float y)

drawPoint

public static void drawPoint(javax.media.opengl.GL gl,
                             float x,
                             float y,
                             float z)

convCol

public static float[] convCol(java.awt.Color c)

textLoad

public static int textLoad(javax.media.opengl.GL gl,
                           javax.media.opengl.glu.GLU glu,
                           java.lang.String filename)

readPNGImage

private static java.awt.image.BufferedImage readPNGImage(java.lang.String resourceName)

makeRGBTexture

private static void makeRGBTexture(javax.media.opengl.GL gl,
                                   javax.media.opengl.glu.GLU glu,
                                   java.awt.image.BufferedImage img,
                                   int target,
                                   boolean mipmapped)

drawTexture

public static void drawTexture(javax.media.opengl.GL gl,
                               int textNum,
                               float x,
                               float y,
                               float w,
                               float h)