src/graphics/webgl.js
function(compName, shader) {
        this.program = this._drawLayer.getProgramWrapper(compName, shader);

        // Needs to know where in the big array we are!
        this.program.registerEntity(this);
        // Shader program means ready
        this.ready = true;
    }
function(compName, shader) {
        this.program = this._drawLayer.getProgramWrapper(compName, shader);

        // Needs to know where in the big array we are!
        this.program.registerEntity(this);
        // Shader program means ready
        this.ready = true;
    }
function ( compName , shader ) { this . program = this . _drawLayer . getProgramWrapper ( compName , shader ) ; // Needs to know where in the big array we are! this . program . registerEntity ( this ) ; // Shader program means ready this . ready = true ; }
v_src is optional, there's a default vertex shader that works for regular rectangular entities
v_src is optional there s a default vertex shader that works for regular rectangular entities