com.mojang.blaze3d.platform

public class TextureUtil

com.mojang.blaze3d.platform.TextureUtil
com.mojang.blaze3d.platform.TextureUtil
com.mojang.blaze3d.platform.TextureUtil

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
public static final int
MIN_MIPMAP_LEVEL
private static final int
DEFAULT_IMAGE_BUFFER_SIZE
private static final int[][]
DIRECTIONS

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static ByteBuffer
readResource(InputStream inputStream)
private static ByteBuffer
readResource(ReadableByteChannel channel, int expectedSize)
readResource(ReadableByteChannel arg0, int arg1)
readResource(ReadableByteChannel arg0, int bufSize)
public static void
writeAsPNG(Path dir, String prefix, GpuTexture texture, int maxMipLevel, IntUnaryOperator pixelModifier)
writeAsPNG(Path arg0, String arg1, GpuTexture arg2, int arg3, IntUnaryOperator arg4)
writeAsPNG(Path directory, String arg1, GpuTexture arg2, int scales, IntUnaryOperator colorFunction)
public static Path
getDebugTexturePath(Path root)
getDebugTexturePath(Path arg0)
getDebugTexturePath(Path path)
public static Path
getDebugTexturePath()
public static void
solidify(NativeImage image)
public static void
fillEmptyAreasWithDarkColor(NativeImage image)
private static int
pack(int x, int y, int width)
private static int
x(int packed, int width)
private static int
y(int packed, int width)
private static void
lambda$writeAsPNG$2(AtomicInteger arg0, int arg1, Runnable arg2)
private static void
lambda$writeAsPNG$1(GpuBuffer arg0, int arg1, GpuTexture arg2, IntUnaryOperator arg3, Path arg4, String arg5)
private static String
lambda$writeAsPNG$0()