docs: function SpriteRenderer(renderer)
  {
      ObjectRenderer.call(this, renderer);
  
      /**
       *
       *
       * @member {number}
       */
      this.vertSize = 5;
  
      /**
       *
       *
       * @member {number}
       */
      this.vertByteSize = this.vertSize * 4;
  
      /**
       * The number of images in the SpriteBatch before it flushes.
       *
       * @member {number}
       */
      this.size = CONST.SPRITE_BATCH_SIZE; // 2000 is a nice balance between mobile / desktop
  
      // the total number of bytes in our batch
      var numVerts = this.size * 4 * this.vertByteSize;
      // the total number of indices in our batch
      var numIndices = this.size * 6;
  
      /**
       * Holds the vertices
       *
       * @member {ArrayBuffer}
       */
      this.vertices = new ArrayBuffer(numVerts);
  
      /**
       * View on the vertices as a Float32Array
       *
       * @member {Float32Array}
       */
      this.positions = new Float32Array(this.vertices);
  
      /**
       * Holds the color components
       *
       * @member {Uint32Array}
       */
      this.colors = new Uint32Array(this.vertices);
  
      /**
       * Holds the indices
       *
       * @member {Uint16Array}
       */
      this.indices = new Uint16Array(numIndices);
  
      /**
       *
       *
       * @member {number}
       */
      this.lastIndexCount = 0;
  
      for (var i=0, j=0; i < numIndices; i += 6, j += 4)
      {
          this.indices[i + 0] = j + 0;
          this.indices[i + 1] = j + 1;
          this.indices[i + 2] = j + 2;
          this.indices[i + 3] = j + 0;
          this.indices[i + 4] = j + 2;
          this.indices[i + 5] = j + 3;
      }
  
      /**
       *
       *
       * @member {boolean}
       */
      this.drawing = false;
  
      /**
       *
       *
       * @member {number}
       */
      this.currentBatchSize = 0;
  
      /**
       *
       *
       * @member {BaseTexture}
       */
      this.currentBaseTexture = null;
  
      /**
       *
       *
       * @member {Array}
       */
      this.textures = [];
  
      /**
       *
       *
       * @member {Array}
       */
      this.blendModes = [];
  
      /**
       *
       *
       * @member {Array}
       */
      this.shaders = [];
  
      /**
       *
       *
       * @member {Array}
       */
      this.sprites = [];
  
      /**
       * The default shader that is used if a sprite doesn't have a more specific one.
       *
       * @member {Shader}
       */
      this.shader = null;
  
  }