Public Member Functions | |
void | begin () |
void | begin (float alpha) |
void | begin (float red, float green, float blue, float alpha) |
void | draw (String text, float x, float y) |
float | drawC (String text, float x, float y) |
float | drawCX (String text, float x, float y) |
void | drawCY (String text, float x, float y) |
void | end () |
float | getAscent () |
float | getCharHeight () |
float | getCharWidth (char chr) |
float | getCharWidthMax () |
float | getDescent () |
float | getHeight () |
float | getLength (String text) |
float | getScaleX () |
float | getScaleY () |
float | getSpace () |
GLText (GL10 gl, AssetManager assets) | |
boolean | load (String file, int size, int padX, int padY) |
boolean | load (Typeface tf, int size, int padX, int padY) |
void | setScale (float scale) |
void | setScale (float sx, float sy) |
void | setSpace (float space) |
Static Public Attributes | |
static final int | CHAR_BATCH_SIZE = 100 |
static final int | CHAR_CNT = ( ( ( CHAR_END - CHAR_START ) + 1 ) + 1 ) |
static final int | CHAR_END = 126 |
static final int | CHAR_NONE = 32 |
static final int | CHAR_START = 32 |
static final int | CHAR_UNKNOWN = ( CHAR_CNT - 1 ) |
static final int | FONT_SIZE_MAX = 180 |
static final int | FONT_SIZE_MIN = 6 |
Package Attributes | |
AssetManager | assets |
SpriteBatch | batch |
int | cellHeight |
int | cellWidth |
float | charHeight |
TextureRegion[] | charRgn |
float | charWidthMax |
final float[] | charWidths |
int | colCnt |
float | fontAscent |
float | fontDescent |
float | fontHeight |
int | fontPadX |
int | fontPadY |
GL10 | gl |
int | rowCnt |
float | scaleX |
float | scaleY |
float | spaceX |
int | textureId |
TextureRegion | textureRgn |
int | textureSize |
Definition at line 22 of file GLText.java.
uk.co.blogspot.fractiousg.texample.GLText.GLText | ( | GL10 | gl, |
AssetManager | assets | ||
) | [inline] |
Definition at line 66 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.begin | ( | ) | [inline] |
Definition at line 244 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.begin | ( | float | alpha | ) | [inline] |
Definition at line 247 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.begin | ( | float | red, |
float | green, | ||
float | blue, | ||
float | alpha | ||
) | [inline] |
Definition at line 250 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.draw | ( | String | text, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 266 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.drawC | ( | String | text, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 286 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.drawCX | ( | String | text, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 291 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.drawCY | ( | String | text, |
float | x, | ||
float | y | ||
) | [inline] |
Definition at line 296 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.end | ( | ) | [inline] |
Definition at line 255 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getAscent | ( | ) | [inline] |
Definition at line 376 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getCharHeight | ( | ) | [inline] |
Definition at line 368 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getCharWidth | ( | char | chr | ) | [inline] |
Definition at line 361 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getCharWidthMax | ( | ) | [inline] |
Definition at line 365 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getDescent | ( | ) | [inline] |
Definition at line 379 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getHeight | ( | ) | [inline] |
Definition at line 382 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getLength | ( | String | text | ) | [inline] |
Definition at line 344 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getScaleX | ( | ) | [inline] |
Definition at line 317 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getScaleY | ( | ) | [inline] |
Definition at line 320 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.getSpace | ( | ) | [inline] |
Definition at line 336 of file GLText.java.
boolean uk.co.blogspot.fractiousg.texample.GLText.load | ( | String | file, |
int | size, | ||
int | padX, | ||
int | padY | ||
) | [inline] |
Definition at line 99 of file GLText.java.
boolean uk.co.blogspot.fractiousg.texample.GLText.load | ( | Typeface | tf, |
int | size, | ||
int | padX, | ||
int | padY | ||
) | [inline] |
Definition at line 112 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.setScale | ( | float | scale | ) | [inline] |
Definition at line 305 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.setScale | ( | float | sx, |
float | sy | ||
) | [inline] |
Definition at line 308 of file GLText.java.
void uk.co.blogspot.fractiousg.texample.GLText.setSpace | ( | float | space | ) | [inline] |
Definition at line 328 of file GLText.java.
AssetManager uk.co.blogspot.fractiousg.texample.GLText.assets [package] |
Definition at line 39 of file GLText.java.
Definition at line 40 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.cellHeight [package] |
Definition at line 56 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.cellWidth [package] |
Definition at line 56 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_BATCH_SIZE = 100 [static] |
Definition at line 35 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_CNT = ( ( ( CHAR_END - CHAR_START ) + 1 ) + 1 ) [static] |
Definition at line 27 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_END = 126 [static] |
Definition at line 26 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_NONE = 32 [static] |
Definition at line 29 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_START = 32 [static] |
Definition at line 25 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.CHAR_UNKNOWN = ( CHAR_CNT - 1 ) [static] |
Definition at line 30 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.charHeight [package] |
Definition at line 53 of file GLText.java.
Definition at line 55 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.charWidthMax [package] |
Definition at line 52 of file GLText.java.
final float [] uk.co.blogspot.fractiousg.texample.GLText.charWidths [package] |
Definition at line 54 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.colCnt [package] |
Definition at line 57 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.FONT_SIZE_MAX = 180 [static] |
Definition at line 33 of file GLText.java.
final int uk.co.blogspot.fractiousg.texample.GLText.FONT_SIZE_MIN = 6 [static] |
Definition at line 32 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.fontAscent [package] |
Definition at line 45 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.fontDescent [package] |
Definition at line 46 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.fontHeight [package] |
Definition at line 44 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.fontPadX [package] |
Definition at line 42 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.fontPadY [package] |
Definition at line 42 of file GLText.java.
GL10 uk.co.blogspot.fractiousg.texample.GLText.gl [package] |
Definition at line 38 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.rowCnt [package] |
Definition at line 57 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.scaleX [package] |
Definition at line 59 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.scaleY [package] |
Definition at line 59 of file GLText.java.
float uk.co.blogspot.fractiousg.texample.GLText.spaceX [package] |
Definition at line 60 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.textureId [package] |
Definition at line 48 of file GLText.java.
Definition at line 50 of file GLText.java.
int uk.co.blogspot.fractiousg.texample.GLText.textureSize [package] |
Definition at line 49 of file GLText.java.