예제 #1
0
 public virtual bool isStateChange(bool tinted, float parentAlpha, AsTexture texture, String smoothing, String blendMode, int numQuads)
 {
     if(mNumQuads == 0)
     {
         return false;
     }
     else
     {
         if(mNumQuads + numQuads > 8192)
         {
             return true;
         }
         else
         {
             if(mTexture == null && texture == null)
             {
                 return false;
             }
             else
             {
                 if(mTexture != null && texture != null)
                 {
                     return mTexture.get_base() != texture.get_base() || mTexture.getRepeat() != texture.getRepeat() || mSmoothing != smoothing || mTinted != (tinted || parentAlpha != 1.0f) || this.getBlendMode() != blendMode;
                 }
                 else
                 {
                     return true;
                 }
             }
         }
     }
 }
 public virtual void setRenderTarget(AsTexture target)
 {
     mRenderTarget = target;
     if(target != null)
     {
         AsStarling.getContext().setRenderToTexture(target.get_base());
     }
     else
     {
         AsStarling.getContext().setRenderToBackBuffer();
     }
 }
 public override AsTextureBase get_base()
 {
     return(mParent.get_base());
 }
 public override AsTextureBase get_base()
 {
     return(mActiveTexture.get_base());
 }