org.jagatoo.loaders.textures.formats
Interface TextureFormatLoader

All Known Implementing Classes:
TextureFormatLoaderDDS

public interface TextureFormatLoader

Loads a Texture stream.

Important: No implementation of TextureStreamLoader may ever call mark() on the InputStream.


Method Summary
 AbstractTexture loadTexture(java.io.BufferedInputStream in, boolean acceptAlpha, boolean flipVertically, boolean loadMipmaps, boolean allowStreching, TextureFactory texFactory)
          Tries to load the Texture from the InputStream.
 

Method Detail

loadTexture

AbstractTexture loadTexture(java.io.BufferedInputStream in,
                            boolean acceptAlpha,
                            boolean flipVertically,
                            boolean loadMipmaps,
                            boolean allowStreching,
                            TextureFactory texFactory)
                            throws java.io.IOException
Tries to load the Texture from the InputStream.

Important: No implementation of TextureStreamLoader may ever call mark() on the InputStream in.

Parameters:
in - the InputStream to load the Texture from
acceptAlpha -
flipVertically -
loadMipmaps -
allowStreching - If true, the image is streched to power-of-two width and height, if necessary.
texFactory -
Returns:
the Texture, loaded from the InputStream or null, if the loader wasn't able to decode the stream.
Throws:
java.io.IOException