Package zombie.core.textures
Class PNGDecoder
java.lang.Object
zombie.core.textures.PNGDecoder
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecideTextureFormat
(PNGDecoder.Format format) void
decode
(ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) void
decodeFlipped
(ByteBuffer byteBuffer, int int1, PNGDecoder.Format format) int
int
getWidth()
boolean
hasAlpha()
boolean
boolean
isRGB()
void
overwriteTRNS
(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
-