TextureCodec
Contenido
[
Ocultar
]Inheritance: java.lang.Object
public class TextureCodec
Clase para gestionar codificadores y decodificadores de texturas.
Constructores
| Constructor | Descripción |
|---|---|
| TextureCodec() |
Métodos
| Método | Descripción |
|---|---|
| decode(Stream stream, boolean reverseY) | Decodificar datos de textura del flujo |
| encode(TextureData texture, Stream stream, String format) | Codificar datos de textura en el flujo usando el formato especificado |
| equals(Object arg0) | |
| getClass() | |
| getSupportedEncoderFormats() | Obtiene todos los formatos de codificador admitidos |
| hashCode() | |
| notify() | |
| notifyAll() | |
| registerCodec(ITextureCodec codec) | Registrar un conjunto de codificadores y decodificadores de textura |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
TextureCodec()
public TextureCodec()
decode(Stream stream, boolean reverseY)
public static TextureData decode(Stream stream, boolean reverseY)
Decodificar datos de textura del flujo
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| stream | Stream | |
| reverseY | boolean |
Returns: TextureData
encode(TextureData texture, Stream stream, String format)
public static void encode(TextureData texture, Stream stream, String format)
Codificar datos de textura en el flujo usando el formato especificado
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| texture | TextureData | La textura a codificar |
| stream | Stream | El flujo de salida |
| formato | java.lang.String | El formato de imagen de los datos codificados, como png/jpg |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getSupportedEncoderFormats()
public static String[] getSupportedEncoderFormats()
Obtiene todos los formatos de codificador admitidos
Returns: java.lang.String[]
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
registerCodec(ITextureCodec codec)
public static void registerCodec(ITextureCodec codec)
Registrar un conjunto de codificadores y decodificadores de textura
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| codec | ITextureCodec |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parámetro | Tipo | Descripción |
|---|---|---|
| arg0 | long | |
| arg1 | int |