Class JoglTgaImageLoader

java.lang.Object
com.ardor3d.image.util.jogl.JoglImageLoader
com.ardor3d.image.util.jogl.JoglTgaImageLoader
All Implemented Interfaces:
ImageLoader

public class JoglTgaImageLoader extends JoglImageLoader
Ardor3D loader using the build-in JOGL TGA loader. As this format has no magic number, it cannot use the detection mechanism implemented in JoglImageLoader
  • Constructor Details

    • JoglTgaImageLoader

      public JoglTgaImageLoader()
  • Method Details

    • load

      public Image load(InputStream is, boolean verticalFlipNeeded) throws IOException
      Description copied from interface: ImageLoader
      Decodes image data from an InputStream.
      Specified by:
      load in interface ImageLoader
      Overrides:
      load in class JoglImageLoader
      Parameters:
      is - The InputStream to create the image from. The input stream should be closed before this method returns.
      verticalFlipNeeded - 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
    • getSupportedFormats

      public static String[] getSupportedFormats()
    • registerLoader

      public static void registerLoader()
    • registerLoader

      public static void registerLoader(JoglTgaImageLoader joglTgaImageLoader, String[] supportedFormats)