text: "use strict";  
  
  function TextureRenderable(myTexture) {
      Renderable.call(this);
      Renderable.prototype.setColor.call(this, [1, 1, 1, 0]); 
      Renderable.prototype._setShader.call(this, engine.defaultResources.getTextureShader());
  
      this.mTexture = null;
      this.mTextureInfo = null;
      this.mColorArray = null;
      this.mTexWidth = 0;
      this.mTexHeight = 0;
      this.mTexLeftIndex = 0;
      this.mTexBottomIndex = 0;
  
      this.setTexture(myTexture);     
  }
  engine.core.inheritPrototype(TextureRenderable, Renderable);
  
  
  
  
  TextureRenderable.prototype.draw = function (aCamera) {
      engine.Textures.activateTexture(this.mTexture);
      Renderable.prototype.draw.call(this, aCamera);
  };
  
  TextureRenderable.prototype.getTexture = function () { return this.mTexture; };
  
  TextureRenderable.prototype.setTexture = function (newTexture) {
      this.mTexture = newTexture;
      this.mTextureInfo = engine.Textures.getTextureInfo(newTexture);
      this.mColorArray = null;
      this.mTexWidth = this.mTextureInfo.mWidth;
      this.mTexHeight = this.mTextureInfo.mHeight;
      this.mTexLeftIndex = 0;
      this.mTexBottomIndex = 0;
  };
  
  
  