org.jagatoo.loaders.textures.formats
Class TextureImageFormatLoaderSGI
java.lang.Object
org.jagatoo.loaders.textures.formats.TextureImageFormatLoaderSGI
- All Implemented Interfaces:
- TextureImageFormatLoader
public class TextureImageFormatLoaderSGI
- extends java.lang.Object
- implements TextureImageFormatLoader
Loads SGI images to texture objects.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEADER_SIZE
public static final int HEADER_SIZE
- See Also:
- Constant Field Values
MAGIC_NUMBER
public static final short MAGIC_NUMBER
- See Also:
- Constant Field Values
TextureImageFormatLoaderSGI
public TextureImageFormatLoaderSGI()
loadTextureImage
public AbstractTextureImage loadTextureImage(java.io.BufferedInputStream in,
boolean acceptAlpha,
boolean flipVertically,
boolean allowStreching,
TextureFactory texFactory)
throws java.io.IOException
- Description copied from interface:
TextureImageFormatLoader
- Tries to load an
AbstractTextureImage from the InputStream.
Important: No implementation of TextureImageLoader must ever call
mark() on the InputStream in.
- Specified by:
loadTextureImage in interface TextureImageFormatLoader
allowStreching - If true, the image is streched to power-of-two width and height, if necessary.
- Returns:
- the
AbstractTextureImage.
- Throws:
java.io.IOException