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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String[]load(InputStream is, boolean verticalFlipNeeded) Decodes image data from an InputStream.static voidstatic voidregisterLoader(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:ImageLoaderDecodes image data from an InputStream.- Specified by:
loadin interfaceImageLoader- Overrides:
loadin classJoglImageLoader- Parameters:
is- The InputStream to create the image from. The input stream should be closed before this method returns.verticalFlipNeeded-trueif 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
-