MCPcopy Create free account
hub / github.com/Card-Forge/forge / drawText

Method drawText

forge-gui-mobile/src/forge/Graphics.java:1460–1465  ·  view source on GitHub ↗
(String text, BitmapFont bitmapFont, float x, float y, Color color, float alpha)

Source from the content-addressed store, hash-verified

1458 }
1459
1460 public void drawText(String text, BitmapFont bitmapFont, float x, float y, Color color, float alpha) {
1461 if (text == null || bitmapFont == null || text.isEmpty())
1462 return;
1463 bitmapFont.setColor(color.r, color.g, color.b, alpha);
1464 bitmapFont.draw(batch, text, x, y);
1465 }
1466
1467 public void drawText(BitmapFont bitmapFont, GlyphLayout layout, float x, float y) {
1468 if (bitmapFont == null || layout == null)

Callers 1

drawOutlinedTextMethod · 0.95

Calls 14

alphaColorMethod · 0.95
startClipMethod · 0.95
adjustXMethod · 0.95
adjustYMethod · 0.95
endClipMethod · 0.95
getMultiLineBoundsMethod · 0.80
canShrinkMethod · 0.80
shrinkMethod · 0.80
isEmptyMethod · 0.65
drawMethod · 0.65
getColorMethod · 0.65

Tested by

no test coverage detected