com.bulletphysics.demos.opengl
Class FontRender

java.lang.Object
  extended by com.bulletphysics.demos.opengl.FontRender

public class FontRender
extends java.lang.Object


Nested Class Summary
static class FontRender.GLFont
           
protected static class FontRender.Glyph
           
 
Method Summary
static FontRender.GLFont createFont(java.lang.String family, int size, boolean bold, boolean antialiasing)
           
static void drawString(FontRender.GLFont font, java.lang.CharSequence s, int x, int y, float red, float green, float blue)
           
static void drawString(FontRender.GLFont font, java.lang.CharSequence s, int x, int y, float red, float green, float blue, float alpha)
           
static java.awt.image.BufferedImage renderFont(java.awt.Font font, boolean antialiasing, FontRender.Glyph[] glyphs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFont

public static FontRender.GLFont createFont(java.lang.String family,
                                           int size,
                                           boolean bold,
                                           boolean antialiasing)
                                    throws java.io.IOException
Throws:
java.io.IOException

renderFont

public static java.awt.image.BufferedImage renderFont(java.awt.Font font,
                                                      boolean antialiasing,
                                                      FontRender.Glyph[] glyphs)

drawString

public static void drawString(FontRender.GLFont font,
                              java.lang.CharSequence s,
                              int x,
                              int y,
                              float red,
                              float green,
                              float blue)

drawString

public static void drawString(FontRender.GLFont font,
                              java.lang.CharSequence s,
                              int x,
                              int y,
                              float red,
                              float green,
                              float blue,
                              float alpha)