public class GLText
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CHAR_BATCH_SIZE |
static int |
CHAR_CNT |
static int |
CHAR_END |
static int |
CHAR_NONE |
static int |
CHAR_START |
static int |
CHAR_UNKNOWN |
static int |
FONT_SIZE_MAX |
static int |
FONT_SIZE_MIN |
Constructor and Description |
---|
GLText(AssetManager assets) |
GLText(Program program,
AssetManager assets) |
Modifier and Type | Method and Description |
---|---|
void |
begin(float[] vpMatrix) |
void |
begin(float alpha,
float[] vpMatrix) |
void |
begin(float red,
float green,
float blue,
float alpha,
float[] vpMatrix) |
void |
draw(java.lang.String text,
float x,
float y) |
void |
draw(java.lang.String text,
float x,
float y,
float angleDeg) |
float |
drawC(java.lang.String text,
float x,
float y) |
float |
drawC(java.lang.String text,
float x,
float y,
float angleDeg) |
float |
drawCX(java.lang.String text,
float x,
float y) |
void |
drawCY(java.lang.String text,
float x,
float y) |
void |
drawTexture(float width,
float height,
float[] vpMatrix) |
void |
end() |
float |
getAscent() |
float |
getCharHeight() |
float |
getCharWidth(char chr) |
float |
getCharWidthMax() |
float |
getDescent() |
float |
getHeight() |
float |
getLength(java.lang.String text) |
float |
getScaleX() |
float |
getScaleY() |
int |
getSize() |
float |
getSpace() |
boolean |
load(java.lang.String file,
int size,
int padX,
int padY) |
void |
setScale(float scale) |
void |
setScale(float sx,
float sy) |
void |
setSpace(float space) |
public static final int CHAR_START
public static final int CHAR_END
public static final int CHAR_CNT
public static final int CHAR_NONE
public static final int CHAR_UNKNOWN
public static final int FONT_SIZE_MIN
public static final int FONT_SIZE_MAX
public static final int CHAR_BATCH_SIZE
public GLText(Program program, AssetManager assets)
public GLText(AssetManager assets)
public boolean load(java.lang.String file, int size, int padX, int padY)
public void begin(float[] vpMatrix)
public void begin(float alpha, float[] vpMatrix)
public void begin(float red, float green, float blue, float alpha, float[] vpMatrix)
public void end()
public void draw(java.lang.String text, float x, float y, float angleDeg)
public void draw(java.lang.String text, float x, float y)
public float drawC(java.lang.String text, float x, float y, float angleDeg)
public float drawC(java.lang.String text, float x, float y)
public float drawCX(java.lang.String text, float x, float y)
public void drawCY(java.lang.String text, float x, float y)
public void setScale(float scale)
public void setScale(float sx, float sy)
public float getScaleX()
public float getScaleY()
public void setSpace(float space)
public float getSpace()
public float getLength(java.lang.String text)
public float getCharWidth(char chr)
public float getCharWidthMax()
public float getCharHeight()
public float getAscent()
public float getDescent()
public float getHeight()
public void drawTexture(float width, float height, float[] vpMatrix)
public int getSize()