Package com.ardor3d.image.util.jogl
Class JoglTgaImageLoader
java.lang.Object
com.ardor3d.image.util.jogl.JoglImageLoader
com.ardor3d.image.util.jogl.JoglTgaImageLoader
- All Implemented Interfaces:
ImageLoader
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
-
Field Summary
Fields inherited from class com.ardor3d.image.util.jogl.JoglImageLoader
_capsUtil, createOnHeap
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
load
(InputStream is, boolean verticalFlipNeeded) Decodes image data from an InputStream.static void
static void
registerLoader
(JoglTgaImageLoader joglTgaImageLoader, String[] supportedFormats) Methods inherited from class com.ardor3d.image.util.jogl.JoglImageLoader
copyImageData, flipImageData, isMipmapsProductionEnabled, makeArdor3dImage, registerLoader, setMipmapsProductionEnabled
-
Constructor Details
-
JoglTgaImageLoader
public JoglTgaImageLoader()
-
-
Method Details
-
load
Description copied from interface:ImageLoader
Decodes image data from an InputStream.- Specified by:
load
in interfaceImageLoader
- Overrides:
load
in classJoglImageLoader
- 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
-
registerLoader
public static void registerLoader() -
registerLoader
-