alexr4_Processing-3_0_1-alpha-Various-Snippet/Processing-301-snippets/GenerativeDesign/3D/s3D_GeometryTextured/s3D_GeometryTextured.pde
object3D obj;
PImage tex;

void setup()
{
  size(600,600, P3D);
  tex = loadImage("berlin-1.jpg");
  obj = new object3D(100);
}

void draw()
{
  background(255);
  translate(width/2, height/2);
  mouseMoved();
  obj.draw3D();
  obj.debug();
}

void mouseMoved()
{
  rotateX(radians(mouseY));
  rotateY(radians(mouseX));
}