/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, float targetWidth, int halign, boolean wrap) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, targetWidth, halign, wrap); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, int start, int end, float targetWidth, int halign, boolean wrap) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, start, end, targetWidth, halign, wrap); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, int start, int end, float targetWidth, int halign, boolean wrap, String truncate) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, start, end, targetWidth, halign, wrap, truncate); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public void draw (Batch batch, GlyphLayout layout, float x, float y) { cache.clear(); cache.addText(layout, x, y); cache.draw(batch); }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, int start, int end, float targetWidth, int halign, boolean wrap) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, start, end, targetWidth, halign, wrap); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, int start, int end, float targetWidth, int halign, boolean wrap, String truncate) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, start, end, targetWidth, halign, wrap, truncate); cache.draw(batch); return layout; }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public void draw (Batch batch, GlyphLayout layout, float x, float y) { cache.clear(); cache.addText(layout, x, y); cache.draw(batch); }
/** Draws text at the specified position. * @see BitmapFontCache#addText(CharSequence, float, float, int, int, float, int, boolean, String) */ public GlyphLayout draw (Batch batch, CharSequence str, float x, float y, float targetWidth, int halign, boolean wrap) { cache.clear(); GlyphLayout layout = cache.addText(str, x, y, targetWidth, halign, wrap); cache.draw(batch); return layout; }
@Override public void draw (Batch spriteBatch, int start, int end) { setSmoothingUniform(spriteBatch, getSmoothingFactor()); super.draw(spriteBatch, start, end); setSmoothingUniform(spriteBatch, 0); } }
@Override public void draw (Batch spriteBatch, int start, int end) { setSmoothingUniform(spriteBatch, getSmoothingFactor()); super.draw(spriteBatch, start, end); setSmoothingUniform(spriteBatch, 0); } }
@Override public void draw (Batch spriteBatch) { setSmoothingUniform(spriteBatch, getSmoothingFactor()); super.draw(spriteBatch); setSmoothingUniform(spriteBatch, 0); }
@Override public void draw (Batch spriteBatch) { setSmoothingUniform(spriteBatch, getSmoothingFactor()); super.draw(spriteBatch); setSmoothingUniform(spriteBatch, 0); }
public void draw (Batch batch, float parentAlpha) { validate(); Color color = tempColor.set(getColor()); color.a *= parentAlpha; if (style.background != null) { batch.setColor(color.r, color.g, color.b, color.a); style.background.draw(batch, getX(), getY(), getWidth(), getHeight()); } if (style.fontColor != null) color.mul(style.fontColor); cache.tint(color); cache.setPosition(getX(), getY()); cache.draw(batch); }
public void draw (Batch batch, float parentAlpha) { validate(); Color color = tempColor.set(getColor()); color.a *= parentAlpha; if (style.background != null) { batch.setColor(color.r, color.g, color.b, color.a); style.background.draw(batch, getX(), getY(), getWidth(), getHeight()); } if (style.fontColor != null) color.mul(style.fontColor); cache.tint(color); cache.setPosition(getX(), getY()); cache.draw(batch); }