TextureCodec
Inhalt
[
Ausblenden
]Inheritance: java.lang.Object
public class TextureCodec
Klasse zur Verwaltung von Encodern und Decodern für Texturen.
Konstruktoren
| Konstruktor | Beschreibung |
|---|---|
| TextureCodec() |
Methoden
| Methode | Beschreibung |
|---|---|
| decode(Stream stream, boolean reverseY) | Texturdaten aus dem Stream dekodieren |
| encode(TextureData texture, Stream stream, String format) | Texturdaten in den Stream mit dem angegebenen Format kodieren |
| equals(Object arg0) | |
| getClass() | |
| getSupportedEncoderFormats() | Alle unterstützten Encoder-Formate abrufen |
| hashCode() | |
| notify() | |
| notifyAll() | |
| registerCodec(ITextureCodec codec) | Ein Set von Textur-Encodern und -Decodern registrieren |
| 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)
Texturdaten aus dem Stream dekodieren
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| stream | Stream | |
| reverseY | boolean |
Returns: TextureData
encode(TextureData texture, Stream stream, String format)
public static void encode(TextureData texture, Stream stream, String format)
Texturdaten in den Stream mit dem angegebenen Format kodieren
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| texture | TextureData | Die zu kodierende Textur |
| stream | Stream | Der Ausgabestream |
| Format | java.lang.String | Das Bildformat der kodierten Daten, z. B. png/jpg |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getSupportedEncoderFormats()
public static String[] getSupportedEncoderFormats()
Alle unterstützten Encoder-Formate abrufen
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)
Ein Set von Textur-Encodern und -Decodern registrieren
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| 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:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |