public void set(PImage img, int x, int y, int w, int h) { Texture tex = (Texture) pg.getCache(img); set(tex, x, y, w, h); }
public void set(PImage img) { Texture tex = (Texture) pg.getCache(img); set(tex); }