code: function draw(texture, width, height) {
    if (!this._.isInitialized || texture._.width != this.width || texture._.height != this.height) {
      initialize.call(this, width ? width : texture._.width, height ? height : texture._.height);
    }
  
    texture._.use();
    this._.texture.drawTo(function() {
      Shader.getDefaultShader().drawRect();
    });
  
    return this;
  }
docs: /*
  Draw a texture to the canvas, with an optional width and height to scale to.
  If no width and height are given then the original texture width and height
  are used.