org.jagatoo.loaders.textures.formats
Interface TextureImageFormatLoader

All Known Implementing Classes:
TextureImageFormatLoaderBMP, TextureImageFormatLoaderGIF, TextureImageFormatLoaderImageIOBufferedImage, TextureImageFormatLoaderImageIOImageInputStream, TextureImageFormatLoaderPCX, TextureImageFormatLoaderSGI, TextureImageFormatLoaderTGA

public interface TextureImageFormatLoader

Loads an image component.


Method Summary
 AbstractTextureImage loadTextureImage(java.io.BufferedInputStream in, boolean acceptAlpha, boolean flipVertically, boolean allowStreching, TextureFactory texFactory)
          Tries to load an AbstractTextureImage from the InputStream.
 

Method Detail

loadTextureImage

AbstractTextureImage loadTextureImage(java.io.BufferedInputStream in,
                                      boolean acceptAlpha,
                                      boolean flipVertically,
                                      boolean allowStreching,
                                      TextureFactory texFactory)
                                      throws java.io.IOException
Tries to load an AbstractTextureImage from the InputStream.

Important: No implementation of TextureImageLoader must ever call mark() on the InputStream in.

Parameters:
in -
acceptAlpha -
flipVertically -
allowStreching - If true, the image is streched to power-of-two width and height, if necessary.
texFactory -
Returns:
the AbstractTextureImage.
Throws:
java.io.IOException