 
     @_linkProgram()
 
+    @_setData()
+
     @_render()
 
-  _render: ->
-
-
-
-    @gl.clearColor 0, 0, 0, 1
-    @gl.clear @gl.COLOR_BUFFER_BIT
-    @gl.drawArrays @gl.POINTS, 0, @vertexCount
-
-
-
-  ##
-  ## Scene construction functions that implement the resource management graph (see
-  ## diagram on class comment)
+
+
+  ##
+  ## Functions for each step in the resource management graph (see diagram on class comment)
   ##
 
   _createContext: ->

      error = gl.getProgramInfoLog(@_program)
      @trace.log 'Failed to link program: ' + error




  _createGeometry: =>

    gl = @gl


    #gl.viewport 0, 0, width, height

    # Create vertex buffer
    vertices = new Float32Array(@vertexCount)

    gl.attachShader @_program, @_vertexShader
    gl.attachShader @_program, @_fragmentShader

    gl.bindAttribLocation(@_program, VERTEX_INDEX_ATTRIBUTE_LOCATION, "a_VertexIndex")
    # Link the program object
    gl.linkProgram @_program
    # Check the result of linking
