|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.glutils.ETC1.ETC1Data
public static final class ETC1.ETC1Data
Class for storing ETC1 compressed image data.
Field Summary | |
---|---|
java.nio.ByteBuffer |
compressedData
the optional PKM header and compressed image data |
int |
dataOffset
the offset in bytes to the actual compressed data. |
int |
height
the height in pixels |
int |
width
the width in pixels |
Constructor Summary | |
---|---|
ETC1.ETC1Data(FileHandle pkmFile)
|
Method Summary | |
---|---|
void |
dispose()
Releases the native resources of the ETC1Data instance. |
boolean |
hasPKMHeader()
|
java.lang.String |
toString()
|
void |
write(FileHandle file)
Writes the ETC1Data with a PKM header to the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final int width
public final int height
public final java.nio.ByteBuffer compressedData
public final int dataOffset
Constructor Detail |
---|
public ETC1.ETC1Data(FileHandle pkmFile)
Method Detail |
---|
public boolean hasPKMHeader()
public void write(FileHandle file)
file
- the file.public void dispose()
dispose
in interface Disposable
public java.lang.String toString()
toString
in class java.lang.Object
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |