texture.js
function( unit ){
    var gl = this.gl;
    if( unit !== undefined ){
      gl.activeTexture( gl.TEXTURE0 + (0|unit) );
    }
    gl.bindTexture( T2D, this.id );
  }
function( unit ){
    var gl = this.gl;
    if( unit !== undefined ){
      gl.activeTexture( gl.TEXTURE0 + (0|unit) );
    }
    gl.bindTexture( T2D, this.id );
  }
function ( unit ) { var gl = this . gl ; if ( unit !== undefined ) { gl . activeTexture ( gl . TEXTURE0 + ( 0 | unit ) ) ; } gl . bindTexture ( T2D , this . id ) ; }
Bind the texture
@param {uint} [unit=undefined] optional texture unit to make active before binding
Bind the texture