Package zombie.core.textures
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 int1, PNGDecoder.Format format) voiddecodeFlipped(ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) intintgetWidth()booleanhasAlpha()booleanbooleanisRGB()voidoverwriteTRNS(byte byte1, byte byte2, byte byte3)
-
Field Details
-
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() -
overwriteTRNS
public void overwriteTRNS(byte byte1, byte byte2, byte byte3) -
decideTextureFormat
-
decode
- Throws:
IOException
-
decodeFlipped
public void decodeFlipped(ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) throws IOException - Throws:
IOException
-