public static final class ETC1.ETC1Data extends Object implements Disposable
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ETC1.ETC1Data(FileHandle pkmFile) |
ETC1.ETC1Data(int width,
int height,
ByteBuffer compressedData,
int dataOffset) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the native resources of the ETC1Data instance.
|
boolean |
hasPKMHeader() |
String |
toString() |
void |
write(FileHandle file)
Writes the ETC1Data with a PKM header to the given file.
|
public final int width
public final int height
public final ByteBuffer compressedData
public final int dataOffset
public ETC1.ETC1Data(int width, int height, ByteBuffer compressedData, int dataOffset)
public ETC1.ETC1Data(FileHandle pkmFile)
public boolean hasPKMHeader()
public void write(FileHandle file)
file
- the file.public void dispose()
dispose
in interface Disposable
Copyright © 2015. All rights reserved.