Class PNGDecoder
java.lang.Object
zombie.core.textures.PNGDecoder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecideTextureFormat(PNGDecoder.Format format) voiddecode(ByteBuffer byteBuffer, int int5, int int3, PNGDecoder.Format format, int int4) voiddecodeFlipped(ByteBuffer byteBuffer, int int0, int int3, PNGDecoder.Format format, int int4) voiddecodeFrame(MipMapLevel mipMapLevel, ImageDataFrame imageDataFrame, ByteBuffer byteBuffer0, int int0, PNGDecoder.Format format) voidintintintintgetWidth()booleanhasAlpha()booleanbooleanbooleanisRGB()voidoverwriteTRNS(byte byte0, byte byte1, byte byte2)
-
Field Details
-
IDAT
public static final int IDAT- See Also:
-
fdAT
public static final int fdAT- See Also:
-
maskID
public int maskID -
mask
-
bDoMask
public boolean bDoMask -
readTotal
public long readTotal
-
-
Constructor Details
-
PNGDecoder
- Throws:
IOException
-
-
Method Details
-
getHeight
public int getHeight() -
getWidth
public int getWidth() -
hasAlphaChannel
public boolean hasAlphaChannel() -
hasAlpha
public boolean hasAlpha() -
isRGB
public boolean isRGB() -
isAnimated
public boolean isAnimated() -
getNumFrames
public int getNumFrames() -
getNumPlays
public int getNumPlays() -
getCurrentFrame
-
overwriteTRNS
public void overwriteTRNS(byte byte0, byte byte1, byte byte2) -
decideTextureFormat
-
decode
public void decode(ByteBuffer byteBuffer, int int5, int int3, PNGDecoder.Format format, int int4) throws IOException - Throws:
IOException
-
decodeFlipped
public void decodeFlipped(ByteBuffer byteBuffer, int int0, int int3, PNGDecoder.Format format, int int4) throws IOException - Throws:
IOException
-
decodeStartOfNextFrame
- Throws:
IOException
-
decodeFrame
public void decodeFrame(MipMapLevel mipMapLevel, ImageDataFrame imageDataFrame, ByteBuffer byteBuffer0, int int0, PNGDecoder.Format format) throws IOException - Throws:
IOException
-