org.jagatoo.loaders.textures.formats
Class TextureFormatLoaderDDS
java.lang.Object
org.jagatoo.loaders.textures.formats.TextureFormatLoaderDDS
- All Implemented Interfaces:
- TextureFormatLoader
public class TextureFormatLoaderDDS
- extends java.lang.Object
- implements TextureFormatLoader
Reads compressed DDS files.
Uncompressed file are currently not supported.
|
Field Summary |
protected static byte[] |
tab2
|
protected static byte[] |
tab3
|
protected static byte[] |
tab4
|
protected static byte[] |
tab5
|
protected static byte[] |
tab6
|
protected byte[] |
tmpReadBuffer
|
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tmpReadBuffer
protected byte[] tmpReadBuffer
tab2
protected static final byte[] tab2
tab3
protected static final byte[] tab3
tab4
protected static final byte[] tab4
tab5
protected static final byte[] tab5
tab6
protected static final byte[] tab6
TextureFormatLoaderDDS
public TextureFormatLoaderDDS()
- Creates a new instance of TextureStreamLoaderDDS
loadTexture
public AbstractTexture loadTexture(java.io.BufferedInputStream in,
boolean acceptAlpha,
boolean flipVertically,
boolean loadMipmaps,
boolean allowStreching,
TextureFactory texFactory)
throws java.io.IOException
- Description copied from interface:
TextureFormatLoader
- Tries to load the Texture from the InputStream.
Important: No implementation of TextureStreamLoader may ever call
mark() on the InputStream in.
- Specified by:
loadTexture in interface TextureFormatLoader
- Parameters:
in - the InputStream to load the Texture fromallowStreching - If true, the image is streched to power-of-two width and height, if necessary.
- Returns:
- the Texture, loaded from the InputStream or null, if the
loader wasn't able to decode the stream.
- Throws:
java.io.IOException