Class JoglImageLoader

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

public class JoglImageLoader extends Object implements ImageLoader
  • Field Details

    • createOnHeap

      public static boolean createOnHeap
    • _capsUtil

      protected final CapsUtil _capsUtil
  • Constructor Details

    • JoglImageLoader

      public JoglImageLoader()
    • JoglImageLoader

      public JoglImageLoader(CapsUtil capsUtil)
  • Method Details

    • getSupportedFormats

      public static String[] getSupportedFormats()
    • registerLoader

      public static void registerLoader()
    • registerLoader

      public static void registerLoader(JoglImageLoader joglImageLoader, String[] supportedFormats)
    • makeArdor3dImage

      public Image makeArdor3dImage(com.jogamp.opengl.util.texture.TextureData textureData, boolean verticalFlipNeeded)
    • 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
      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
    • copyImageData

      protected void copyImageData(Buffer src, ByteBuffer dest, com.ardor3d.image.util.jogl.JoglImageLoader.TYPE bufferDataType)
    • flipImageData

      protected void flipImageData(Buffer src, ByteBuffer dest, int dataSizeInBytes, com.ardor3d.image.util.jogl.JoglImageLoader.TYPE bufferDataType, int width, int height)
    • isMipmapsProductionEnabled

      public boolean isMipmapsProductionEnabled()
    • setMipmapsProductionEnabled

      public void setMipmapsProductionEnabled(boolean mipmapsProductionEnabled)