opengl
Class FontRenderer

java.lang.Object
  extended by opengl.FontRenderer

public class FontRenderer
extends java.lang.Object


Field Summary
static float CH_SPACING
           
static float CHAR_TRANS
           
static float LINE_SPACING
           
 
Constructor Summary
FontRenderer()
           
 
Method Summary
static void buildFont(javax.media.opengl.GL gl)
          Build font display list
static void glPrint(javax.media.opengl.GL gl, float x, float y, java.lang.String string, int set)
          Print a string to the screen
static void loadGLTextures(javax.media.opengl.GL gl)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CH_SPACING

public static final float CH_SPACING
See Also:
Constant Field Values

LINE_SPACING

public static final float LINE_SPACING
See Also:
Constant Field Values

CHAR_TRANS

public static final float CHAR_TRANS
See Also:
Constant Field Values
Constructor Detail

FontRenderer

public FontRenderer()
Method Detail

loadGLTextures

public static void loadGLTextures(javax.media.opengl.GL gl)
                           throws java.io.IOException
Throws:
java.io.IOException

buildFont

public static void buildFont(javax.media.opengl.GL gl)
Build font display list

Parameters:
gl -

glPrint

public static void glPrint(javax.media.opengl.GL gl,
                           float x,
                           float y,
                           java.lang.String string,
                           int set)
Print a string to the screen

Parameters:
gl -
x - the x coordinate of the string
y - the y coordinate of the string
string - a given input string
set - the font set (0 or 1)