public void atext(String text, Coord c, double ax, double ay) { Text t = Text.render(text); Tex T = t.tex(); Coord sz = t.sz(); image(T, c.add((int) ((double) sz.x * -ax), (int) ((double) sz.y * -ay))); T.dispose(); checkerr(); }
public void image(BufferedImage img, Coord c) { if (img == null) return; Tex tex = new TexI(img); image(tex, c); tex.dispose(); }