RomualdRousseau_Processing/RayCaster/RayCaster.pde
public static _ScriptFactory  ScriptFactory;
public static _Input          Input;
public static _Scene          Scene;

HUD hud = new HUD();

void setup() {
  size(800, 600, P3D);
  //fullScreen(P3D);
  frameRate(60);
  
  ScriptFactory = this.new _ScriptFactory();
  Input = this.new _Input();
  Scene = this.new _Scene(this);

  ScriptFactory.init();
  Input.init();
  Scene.init(320, 200);
  
  Scene.start();
}

void draw() {
  Scene.update(1.0 / max(30, frameRate));
  Input.update();
  Scene.draw();
  hud.draw();
  
  //pushMatrix();
  //translate(width / 2, height / 2, 50); 
  //rotateY(0.5);
  //noFill();
  //box(40);
  //popMatrix();
}
