/** Returns {@code sourceWidth} rounded up to a POT if necessary. */ public int toTexWidth (int sourceWidth) { return (repeatX || mipmaps) ? nextPOT(sourceWidth) : sourceWidth; } /** Returns {@code sourceHeight} rounded up to a POT if necessary. */
/** Returns {@code sourceWidth} rounded up to a POT if necessary. */ public int toTexWidth (int sourceWidth) { return (repeatX || mipmaps) ? nextPOT(sourceWidth) : sourceWidth; } /** Returns {@code sourceHeight} rounded up to a POT if necessary. */
/** Returns {@code sourceHeight} rounded up to a POT if necessary. */ public int toTexHeight (int sourceHeight) { return (repeatY || mipmaps) ? nextPOT(sourceHeight) : sourceHeight; }
/** Returns {@code sourceHeight} rounded up to a POT if necessary. */ public int toTexHeight (int sourceHeight) { return (repeatY || mipmaps) ? nextPOT(sourceHeight) : sourceHeight; }