com.mojang.blaze3d.platform

public final class NativeImage

implements AutoCloseable

ffs
com.mojang.blaze3d.platform.NativeImage
net.minecraft.class_1011
net.minecraft.client.texture.NativeImage

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_21684
LOGGER
private static final com.mojang.jtracy.MemoryPool
b
MEMORY_POOL
field_54265
MEMORY_POOL
private static final Set<StandardOpenOption>
c
OPEN_OPTIONS
field_4992
WRITE_TO_FILE_OPEN_OPTIONS
private final NativeImage$Format
d
format
field_4986
format
private final int
e
width
field_4991
width
private final int
f
height
field_4989
height
private final boolean
g
useStbFree
field_4990
isStbImage
private long
h
pixels
field_4988
pointer
private final long
i
size
field_4987
sizeBytes

Constructor summary

ModifierConstructor
public (int width, int height, boolean useStb)
public (NativeImage$Format format, int width, int height, boolean useStb)
private (NativeImage$Format format, int width, int height, boolean useStb, long pointer)

Method summary

Modifier and TypeMethod
private boolean
c(int arg0, int arg1)
isOutsideBounds(int arg0, int arg1)
method_36559(int arg0, int arg1)
isOutOfBounds(int x, int y)
public static NativeImage
a(InputStream arg0)
read(InputStream arg0)
method_4309(InputStream arg0)
read(InputStream stream)
public static NativeImage
a(ffs$a arg0, InputStream arg1)
read(NativeImage$Format arg0, InputStream arg1)
method_4310(class_1011$class_1012 arg0, InputStream arg1)
read(NativeImage$Format format, InputStream stream)
public static NativeImage
a(ByteBuffer arg0)
read(ByteBuffer arg0)
method_4324(ByteBuffer arg0)
read(ByteBuffer buffer)
public static NativeImage
a(byte[] arg0)
read(byte[] arg0)
method_49277(byte[] arg0)
read(byte[] bytes)
public static NativeImage
a(ffs$a arg0, ByteBuffer arg1)
read(NativeImage$Format arg0, ByteBuffer arg1)
method_4303(class_1011$class_1012 arg0, ByteBuffer arg1)
read(NativeImage$Format format, ByteBuffer buffer)
private static void
a(boolean arg0, boolean arg1)
setFilter(boolean arg0, boolean arg1)
method_4308(boolean arg0, boolean arg1)
setTextureFilter(boolean blur, boolean mipmap)
private void
j()
checkAllocated()
method_4320()
checkAllocated()
public void
close()
close()
public int
a()
getWidth()
method_4307()
getWidth()
public int
b()
getHeight()
method_4323()
getHeight()
public NativeImage$Format
c()
format()
method_4318()
getFormat()
private int
d(int arg0, int arg1)
getPixelABGR(int arg0, int arg1)
method_4315(int arg0, int arg1)
getColor(int x, int y)
public int
a(int arg0, int arg1)
getPixel(int arg0, int arg1)
method_61940(int arg0, int arg1)
getColorArgb(int x, int y)
private void
b(int arg0, int arg1, int arg2)
setPixelABGR(int arg0, int arg1, int arg2)
method_4305(int arg0, int arg1, int arg2)
setColor(int x, int y, int color)
public void
a(int arg0, int arg1, int arg2)
setPixel(int arg0, int arg1, int arg2)
method_61941(int arg0, int arg1, int arg2)
setColorArgb(int x, int y, int color)
public NativeImage
a(IntUnaryOperator arg0)
mappedCopy(IntUnaryOperator arg0)
method_48462(IntUnaryOperator arg0)
applyToCopy(IntUnaryOperator operator)
public void
b(IntUnaryOperator arg0)
applyToAllPixels(IntUnaryOperator arg0)
method_51596(IntUnaryOperator arg0)
apply(IntUnaryOperator operator)
public int[]
d()
getPixelsABGR()
method_48463()
copyPixelsAbgr()
public int[]
e()
getPixels()
method_61942()
copyPixelsArgb()
public byte
b(int arg0, int arg1)
getLuminanceOrAlpha(int arg0, int arg1)
method_4311(int arg0, int arg1)
getOpacity(int x, int y)
public int[]
f()
makePixelArray()
method_4322()
makePixelArray()
public void
a(int arg0, int arg1, int arg2, boolean arg3)
upload(int arg0, int arg1, int arg2, boolean arg3)
method_4301(int arg0, int arg1, int arg2, boolean arg3)
upload(int level, int offsetX, int offsetY, boolean close)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
method_4312(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
upload(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean mipmap, boolean close)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
method_22619(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
upload(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean blur, boolean clamp, boolean mipmap, boolean close)
private void
b(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
_upload(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
method_4321(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8, boolean arg9, boolean arg10)
uploadInternal(int level, int offsetX, int offsetY, int unpackSkipPixels, int unpackSkipRows, int width, int height, boolean blur, boolean clamp, boolean mipmap, boolean close)
public void
a(int arg0, boolean arg1)
downloadTexture(int arg0, boolean arg1)
method_4327(int arg0, boolean arg1)
loadFromTextureImage(int level, boolean removeAlpha)
public void
a(float arg0)
downloadDepthBuffer(float arg0)
method_35620(float arg0)
readDepthComponent(float unused)
public void
g()
drawPixels()
method_35627()
drawPixels()
public void
a(File arg0)
writeToFile(File arg0)
method_4325(File arg0)
writeTo(File path)
public boolean
a(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
copyFromFont(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
method_4316(org.lwjgl.util.freetype.FT_Face arg0, int arg1)
makeGlyphBitmapSubpixel(org.lwjgl.util.freetype.FT_Face face, int glyphIndex)
public void
a(Path arg0)
writeToFile(Path arg0)
method_4314(Path arg0)
writeTo(Path path)
private boolean
a(WritableByteChannel arg0)
writeToChannel(WritableByteChannel arg0)
method_24032(WritableByteChannel arg0)
write(WritableByteChannel channel)
public void
a(ffs arg0)
copyFrom(NativeImage arg0)
method_4317(class_1011 arg0)
copyFrom(NativeImage image)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4)
fillRect(int arg0, int arg1, int arg2, int arg3, int arg4)
method_4326(int arg0, int arg1, int arg2, int arg3, int arg4)
fillRect(int x, int y, int width, int height, int color)
public void
a(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
copyRect(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
method_4304(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, boolean arg6, boolean arg7)
copyRect(int x, int y, int translateX, int translateY, int width, int height, boolean flipX, boolean flipY)
public void
a(ffs arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
copyRect(NativeImage arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
method_47594(class_1011 arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, boolean arg7, boolean arg8)
copyRect(NativeImage image, int x, int y, int destX, int destY, int width, int height, boolean flipX, boolean flipY)
public void
h()
flipY()
method_4319()
mirrorVertically()
public void
a(int arg0, int arg1, int arg2, int arg3, ffs arg4)
resizeSubRectTo(int arg0, int arg1, int arg2, int arg3, NativeImage arg4)
method_4300(int arg0, int arg1, int arg2, int arg3, class_1011 arg4)
resizeSubRectTo(int x, int y, int width, int height, NativeImage targetImage)
public void
i()
untrack()
method_4302()
untrack()