public class TextureCodec
extends java.lang.Object
| Constructor and Description |
|---|
TextureCodec() |
| Modifier and Type | Method and Description |
|---|---|
static TextureData |
decode(Stream stream,
boolean reverseY)
Decode texture data from stream
|
static void |
encode(TextureData texture,
Stream stream,
java.lang.String format)
Encode texture data into stream using specified format
|
static java.lang.String[] |
getSupportedEncoderFormats()
Gets all supported encoder formats
|
static void |
registerCodec(ITextureCodec codec)
Register a set of texture encoders and decoders
|
public static java.lang.String[] getSupportedEncoderFormats()
public static void registerCodec(ITextureCodec codec)
public static void encode(TextureData texture, Stream stream, java.lang.String format)
texture - The texture to be encodedstream - The output streamformat - The image format of encoded data, like png/jpgpublic static TextureData decode(Stream stream, boolean reverseY)