endPrimitives();
TextRenderer textRenderer = resourceManager.getTextRenderer(font);
textRenderer.begin3DRendering();
applyColor();
setTextTransformation();
textRenderer.draw(text, 0, 0);
textRenderer.end3DRendering();
setTransform();
}
public void getTextBounds(String text, Rectangle2D bounds) {
if (text == null) throw new IllegalArgumentException("text must not be null");