Package com.ardor3d.image.util.dds
Class DdsLoader
java.lang.Object
com.ardor3d.image.util.dds.DdsLoader
- All Implemented Interfaces:
ImageLoader
DdsLoader
is an image loader that reads in a DirectX DDS file.
Compressed:
- DXT1A
- DXT3
- DXT5
- LATC
- RGB
- RGBA
- Luminance
- LuminanceAlpha
- Alpha
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionload
(InputStream is, boolean flipVertically) Decodes image data from an InputStream.
-
Constructor Details
-
DdsLoader
public DdsLoader()
-
-
Method Details
-
load
Description copied from interface:ImageLoader
Decodes image data from an InputStream.- Specified by:
load
in interfaceImageLoader
- Parameters:
is
- The InputStream to create the image from. The input stream should be closed before this method returns.flipVertically
-true
if the image is vertically flipped- Returns:
- The decoded Image.
- Throws:
IOException
- if something wrong occurs while loading the image from the input stream
-