agile2d.opengl
Class OutlineFontRenderer
java.lang.Object
|
+--agile2d.opengl.BasicFontRenderer
|
+--agile2d.opengl.OutlineFontRenderer
- public class OutlineFontRenderer
- extends BasicFontRenderer
Render Fonts from their outlines
- Version:
- $Revision: 1.4 $
- Author:
- Jean-Daniel Fekete
|
Method Summary |
boolean |
addTesselation(gl4java.drawable.GLDrawable drawable,
int charIndex)
|
agile2d.opengl.OutlineFontRenderer.CacheInfo |
findCached(Font font)
|
int |
getMaxCacheLength()
Returns the maxCacheLength. |
protected VertexArrayList |
getVertices(gl4java.drawable.GLDrawable drawable,
int c)
|
boolean |
install(gl4java.drawable.GLDrawable drawable,
Font font,
double scale,
boolean aa,
boolean ufm)
Installs the resources to render the font and return true
if the font has been installed or false otherwise. |
protected boolean |
installChar(gl4java.drawable.GLDrawable drawable,
int c)
|
void |
release(gl4java.drawable.GLDrawable drawable)
|
void |
render(gl4java.drawable.GLDrawable drawable,
GlyphVector g,
double scale)
|
void |
render(gl4java.drawable.GLDrawable drawable,
String string,
double scale,
Font font)
Called after install has returned true, this call
renders the font on the drawable at the current 0,0 position. |
void |
setMaxCacheLength(int maxCacheLength)
Sets the maxCacheLength. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutlineFontRenderer
public OutlineFontRenderer(Tesselator tesselator)
findCached
public agile2d.opengl.OutlineFontRenderer.CacheInfo findCached(Font font)
getMaxCacheLength
public int getMaxCacheLength()
- Returns the maxCacheLength.
- Returns:
- int
setMaxCacheLength
public void setMaxCacheLength(int maxCacheLength)
- Sets the maxCacheLength.
- Parameters:
maxCacheLength - The maxCacheLength to set
install
public boolean install(gl4java.drawable.GLDrawable drawable,
Font font,
double scale,
boolean aa,
boolean ufm)
- Description copied from class:
BasicFontRenderer
- Installs the resources to render the font and return
true
if the font has been installed or false otherwise.
- Overrides:
install in class BasicFontRenderer
- Parameters:
drawable - the GLDrawablescale - the current scanefont - the font
- Returns:
true if the font has been installed,
false otherwise.
getVertices
protected VertexArrayList getVertices(gl4java.drawable.GLDrawable drawable,
int c)
installChar
protected boolean installChar(gl4java.drawable.GLDrawable drawable,
int c)
render
public void render(gl4java.drawable.GLDrawable drawable,
String string,
double scale,
Font font)
- Description copied from class:
BasicFontRenderer
- Called after install has returned
true, this call
renders the font on the drawable at the current 0,0 position.
- Specified by:
render in class BasicFontRenderer
- Parameters:
drawable - string - scale - font -
render
public void render(gl4java.drawable.GLDrawable drawable,
GlyphVector g,
double scale)
release
public void release(gl4java.drawable.GLDrawable drawable)
- Overrides:
release in class BasicFontRenderer
addTesselation
public boolean addTesselation(gl4java.drawable.GLDrawable drawable,
int charIndex)
Copyright © 2002 by University of Maryland, USA All rights reserved.