public class TextRenderable extends Renderable
| Modifier and Type | Field and Description |
|---|---|
int |
align |
com.badlogic.gdx.graphics.Color |
color |
com.badlogic.gdx.graphics.g2d.BitmapFont |
font |
java.lang.String |
text |
float |
x |
float |
y |
provider| Constructor and Description |
|---|
TextRenderable(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
TextRenderable |
align(int align) |
void |
draw(com.badlogic.gdx.graphics.g2d.Batch batch) |
float |
layer() |
void |
reset() |
TextRenderable |
setColor(com.badlogic.gdx.graphics.Color color) |
TextRenderable |
setPosition(float x,
float y) |
add, add, add, compareTo, onFree, remove, setProvider, spritepublic float x
public float y
public java.lang.String text
public com.badlogic.gdx.graphics.g2d.BitmapFont font
public int align
public com.badlogic.gdx.graphics.Color color
public TextRenderable(com.badlogic.gdx.graphics.g2d.BitmapFont font,
java.lang.String text)
public TextRenderable setColor(com.badlogic.gdx.graphics.Color color)
public TextRenderable align(int align)
public TextRenderable setPosition(float x, float y)
setPosition in class Renderablepublic void draw(com.badlogic.gdx.graphics.g2d.Batch batch)
draw in class Renderablepublic float layer()
layer in class Renderablepublic void reset()