public class TextBitmapRenderer extends AbstractTextRenderer implements ITextRenderer
Modifier and Type | Field and Description |
---|---|
protected int |
font |
protected int |
fontHeight |
protected static com.jogamp.opengl.util.gl2.GLUT |
glut |
defSceneOffset, defScreenOffset
Constructor and Description |
---|
TextBitmapRenderer()
The TextBitmap class provides support for drawing ASCII characters Any
non ascii caracter will be replaced by a square.
|
Modifier and Type | Method and Description |
---|---|
void |
color(com.jogamp.opengl.GL gl,
Color color) |
BoundingBox3d |
computeTextBounds(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam,
Coord3d posScreenShifted,
float strlen) |
float |
computeXWithAlign(Halign halign,
Coord3d posScreen,
float strlen,
float x) |
float |
computeYWithAlign(Valign valign,
Coord3d posScreen,
float y) |
void |
drawSimpleText(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam,
String s,
Coord3d position,
Color color) |
BoundingBox3d |
drawText(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam,
String text,
Coord3d position,
Halign halign,
Valign valign,
Color color,
Coord2d screenOffset,
Coord3d sceneOffset)
Draw a string at the specified position and compute the 3d volume
occupied by the string according to the current Camera configuration.
|
void |
glRasterPos(com.jogamp.opengl.GL gl,
Coord3d sceneOffset,
Coord3d posReal) |
drawText, drawText, drawText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawText, drawText, drawText
protected static com.jogamp.opengl.util.gl2.GLUT glut
protected int fontHeight
protected int font
public TextBitmapRenderer()
public void drawSimpleText(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam, String s, Coord3d position, Color color)
drawSimpleText
in interface ITextRenderer
public BoundingBox3d drawText(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam, String text, Coord3d position, Halign halign, Valign valign, Color color, Coord2d screenOffset, Coord3d sceneOffset)
drawText
in interface ITextRenderer
public BoundingBox3d computeTextBounds(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam, Coord3d posScreenShifted, float strlen)
public void color(com.jogamp.opengl.GL gl, Color color)
Copyright © 2016. All rights reserved.