public static Texture CreateForTextureRegionSize(TextureRegion pTextureRegion, TextureOptions pTextureOptions) { int loadingScreenWidth = pTextureRegion.GetWidth(); int loadingScreenHeight = pTextureRegion.GetHeight(); return(new Texture(MathUtils.NextPowerOfTwo(loadingScreenWidth), MathUtils.NextPowerOfTwo(loadingScreenHeight), pTextureOptions)); }
protected override float GetX2() { TextureRegion textureRegion = this.GetTextureRegion(); return((float)(textureRegion.GetTexturePositionX() + textureRegion.GetWidth()) / textureRegion.GetTexture().GetWidth()); }