ITextureDecoder
public interface ITextureDecoder
External texture decoder should implement this interface for decoding.
Methods
| Method | Description |
|---|---|
| decode(Stream stream, boolean reverseY) | Decode texture from stream, return null if failed to decode. |
decode(Stream stream, boolean reverseY)
public abstract TextureData decode(Stream stream, boolean reverseY)
Decode texture from stream, return null if failed to decode.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | Stream | Texture data source stream |
| reverseY | boolean | Flip the texture |
Returns: TextureData - Decoded texture data or null if not supported.