text: var sys = require('pex-sys');
  var glu = require('pex-glu');
  var materials = require('pex-materials');
  var color = require('pex-color');
  var gen = require('pex-gen');
  
  var Cube = gen.Cube;
  var Mesh = glu.Mesh;
  var ShowNormals = materials.ShowNormals;
  var PerspectiveCamera = glu.PerspectiveCamera;
  var Arcball = glu.Arcball;
  var Color = color.Color;
  
  sys.Window.create({
    settings: {
      width: 1280,
      height: 720,
      type: '3d',
      fullscreen: sys.Platform.isBrowser
    },
    init: function() {
      var cube = new Cube();
      this.mesh = new Mesh(cube, new ShowNormals());
  
      this.camera = new PerspectiveCamera(60, this.width / this.height);
      this.arcball = new Arcball(this, this.camera);
    },
    draw: function() {
      glu.clearColorAndDepth(Color.Red);
      glu.enableDepthReadAndWrite(true);
      this.mesh.draw(this.camera);
    }
  });
  