de.matthiasmann.twl.renderer.lwjgl
Interface TextureDecoder

All Superinterfaces:
java.io.Closeable

public interface TextureDecoder
extends java.io.Closeable

A texture decoder interface. Return an instance of this interface from URLConnection.getContent(java.lang.Class[]) when queried for TextureDecoder.class

See Also:
URLStreamHandler, URLConnection

Method Summary
 LWJGLTexture.Format decideTextureFormat(LWJGLTexture.Format fmt)
           
 void decode(java.nio.ByteBuffer buf, int stride, LWJGLTexture.Format fmt)
           
 int getHeight()
           
 int getWidth()
           
 void open()
           
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

open

void open()
          throws java.io.IOException
Throws:
java.io.IOException

getWidth

int getWidth()

getHeight

int getHeight()

decideTextureFormat

LWJGLTexture.Format decideTextureFormat(LWJGLTexture.Format fmt)
                                        throws java.io.IOException
Throws:
java.io.IOException

decode

void decode(java.nio.ByteBuffer buf,
            int stride,
            LWJGLTexture.Format fmt)
            throws java.io.IOException
Throws:
java.io.IOException