Closed barelief closed 8 years ago
FreeTransform quads;
PGraphics offscreenTexture;
PImage img;
(...)
void setup()
{
quads = new FreeTransform();
(...)
}
void draw()
{
(...)
offscreenTexture.beginDraw();
offscreenTexture.background(255);
offscreenTexture.ellipse(x, y, 10, 10);
offscreenTexture.endDraw();
quads[0].render(offscreenTexture);
quads[1].render(img);
(...)
}
Needed for transforming many textures in one sketch