public AsRenderTexture(int width, int height, bool persistent, float scale) : base(mActiveTexture = AsTexture.empty(width, height, PMA, true, scale = scale <= 0 ? AsStarling.getContentScaleFactor() : scale), new AsRectangle(0, 0, width, height), true) { int nativeWidth = AsGlobal.getNextPowerOfTwo((int)(width * scale)); int nativeHeight = AsGlobal.getNextPowerOfTwo((int)(height * scale)); mSupport = new AsRenderSupport(); mSupport.setOrthographicProjection(0, 0, nativeWidth / scale, nativeHeight / scale); if (persistent) { mBufferTexture = AsTexture.empty(width, height, PMA, true, scale); mHelperImage = new AsImage(mBufferTexture); mHelperImage.setSmoothing(AsTextureSmoothing.NONE); } }
public virtual void setSmoothing(String _value) { mHelperImage.setSmoothing(_value); }