Example usage for Java com.badlogic.gdx.graphics.g2d BitmapFontCache fields, constructors, methods, implement or subclass
The text is from its open source code.
BitmapFontCache(BitmapFont font) | |
BitmapFontCache(BitmapFont font, boolean integer) Creates a new BitmapFontCache |
void | draw(Batch spriteBatch) |
TextBounds | getBounds() Returns the size of the cached string. |
BitmapFont | getFont() |
float[] | getVertices() |
float | getX() Returns the x position of the cached string, relative to the position when the string was cached. |
float | getY() Returns the y position of the cached string, relative to the position when the string was cached. |
void | setColor(float r, float g, float b, float a) Sets the color of subsequently added text. |
void | setColor(Color tint) Sets the color of subsequently added text. |
void | setColor(float color) Sets the color of subsequently added text. |
TextBounds | setMultiLineText(CharSequence str, float x, float y) Clears any cached glyphs and adds glyphs for the specified text, which may contain newlines (\n). |
void | setPosition(float x, float y) Sets the position of the text, relative to the position when the cached text was created. |
TextBounds | setText(CharSequence str, float x, float y) Clears any cached glyphs and adds glyphs for the specified text. |
TextBounds | setWrappedText(CharSequence str, float x, float y, float wrapWidth) Clears any cached glyphs and adds glyphs for the specified text, which may contain newlines (\n) and is automatically wrapped within the specified width. |
void | tint(Color tint) Tints all text currently in the cache. |