src/program.js
/**
   * Use the program with the given draw function
   * @param  {Function} fn Function to handle the actual drawing.
   *                       The programs attributes and uniforms will
   *                       be passed to the draw function for use.
   * @return {void}
   */
Use the program with the given draw function
@param  {Function} fn Function to handle the actual drawing.
The programs attributes and uniforms will
be passed to the draw function for use.
@return {void}
Use the program with the given draw function @param { Function } fn Function to handle the actual drawing . The programs attributes and uniforms will be passed to the draw function for use . @return { void }
use(fn) {
    var gl = this._gl;
    if(!this.program)
    {
      this.init();
    }
    else
    {
      gl.useProgram(this.program);
    }
    fn(this.attributes, this.uniforms);
  }
use ( fn ) { var gl = this . _gl ; if ( ! this . program ) { this . init ( ) ; } else { gl . useProgram ( this . program ) ; } fn ( this . attributes , this . uniforms ) ; }
Use the program with the given draw function
 @param  {Function} fn Function to handle the actual drawing.
Use the program with the given draw function @param { Function } fn Function to handle the actual drawing .
//gl.useProgram(0);