public AsConcreteTexture(AsTextureBase _base, String format, int width, int height, bool mipMapping, bool premultipliedAlpha, bool optimizedForRenderTexture, float scale)
 {
     mScale = scale <= 0 ? 1.0f : scale;
     mBase = _base;
     mFormat = format;
     mWidth = width;
     mHeight = height;
     mMipMapping = mipMapping;
     mPremultipliedAlpha = premultipliedAlpha;
     mOptimizedForRenderTexture = optimizedForRenderTexture;
 }
 public virtual void setTextureAt(int sampler, AsTextureBase texture)
 {
     throw new AsNotImplementedError();
 }
 public virtual void setRenderToTexture(AsTextureBase texture)
 {
     setRenderToTexture(texture, false, 0, 0);
 }
 public virtual void setRenderToTexture(AsTextureBase texture, bool enableDepthAndStencil)
 {
     setRenderToTexture(texture, enableDepthAndStencil, 0, 0);
 }
 public virtual void setRenderToTexture(AsTextureBase texture, bool enableDepthAndStencil, int antiAlias)
 {
     setRenderToTexture(texture, enableDepthAndStencil, antiAlias, 0);
 }
 public virtual void setRenderToTexture(AsTextureBase texture, bool enableDepthAndStencil, int antiAlias, int surfaceSelector)
 {
     throw new AsNotImplementedError();
 }
 public AsConcreteTexture(AsTextureBase _base, String format, int width, int height, bool mipMapping, bool premultipliedAlpha)
     : this(_base, format, width, height, mipMapping, premultipliedAlpha, false, 1)
 {
 }
 public AsConcreteTexture(AsTextureBase _base, String format, int width, int height, bool mipMapping, bool premultipliedAlpha, bool optimizedForRenderTexture)
     : this(_base, format, width, height, mipMapping, premultipliedAlpha, optimizedForRenderTexture, 1)
 {
 }
 private void onContextCreated(AsEvent _event)
 {
     AsContext3D context = AsStarling.getContext();
     AsBitmapData bitmapData = mData as AsBitmapData;
     AsAtfData atfData = mData as AsAtfData;
     bc.flash.display3D.textures.AsTexture nativeTexture = null;
     if(bitmapData != null)
     {
         nativeTexture = context.createTexture(mWidth, mHeight, AsContext3DTextureFormat.BGRA, mOptimizedForRenderTexture);
         AsTexture.uploadBitmapData(nativeTexture, bitmapData, mMipMapping);
     }
     else
     {
         if(atfData != null)
         {
             nativeTexture = context.createTexture(atfData.getWidth(), atfData.getHeight(), atfData.getFormat(), mOptimizedForRenderTexture);
             AsTexture.uploadAtfData(nativeTexture, atfData.getData());
         }
     }
     mBase = nativeTexture;
 }