 Mat4 = require 'gl-matrix-mat4'
 Teapot = require 'teapot'
 
-WIREFRAME = location.hash.split('#')[1] == 'wireframe'
+POINTS = location.search == '?points'
+WIREFRAME = location.search == '?wireframe'
+SOLID = location.search == '?solid'
+AHHHHH = location.search == '?AHHHHH'
 
 # http://blogs.msdn.com/b/davrous/archive/2013/06/13/tutorial-series-learning-how-to-write-a-3d-soft-engine-from-scratch-in-c-typescript-or-javascript.aspx
 


  drawScanLine: (x1, x2, y, z, color) ->
    [x1, x2] = [x2, x1] if x1 > x2
    for x in [(x1 | 0)..(x2 | 0)] by 1
      @drawPoint(Vec3.fromValues(x, y, z), color)


  [ 4, 5, 6 ]
  [ 4, 6, 7 ]
]
# cubeMesh.computeNormals()
# meshes.push cubeMesh

mesh = new Mesh('Teapot')
