Class DdsLoader

java.lang.Object
com.ardor3d.image.util.dds.DdsLoader
All Implemented Interfaces:
ImageLoader

public class DdsLoader extends Object implements ImageLoader

DdsLoader is an image loader that reads in a DirectX DDS file.

Supports 2D images, volume images and cubemaps in the following formats:
Compressed:
  • DXT1A
  • DXT3
  • DXT5
  • LATC
Uncompressed:
  • RGB
  • RGBA
  • Luminance
  • LuminanceAlpha
  • Alpha
Note that Cubemaps must have all 6 faces defined to load properly. FIXME: Needs a software inflater for compressed formats in cases where support is not present? Maybe JSquish?
  • Constructor Details

    • DdsLoader

      public DdsLoader()
  • Method Details

    • load

      public Image load(InputStream is, boolean flipVertically) throws IOException
      Description copied from interface: ImageLoader
      Decodes image data from an InputStream.
      Specified by:
      load in interface ImageLoader
      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