Package com.ardor3d.image.util.jogl
Class JoglImageLoader
java.lang.Object
com.ardor3d.image.util.jogl.JoglImageLoader
- All Implemented Interfaces:
ImageLoader
- Direct Known Subclasses:
JoglTgaImageLoader
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copyImageData
(Buffer src, ByteBuffer dest, com.ardor3d.image.util.jogl.JoglImageLoader.TYPE bufferDataType) protected void
flipImageData
(Buffer src, ByteBuffer dest, int dataSizeInBytes, com.ardor3d.image.util.jogl.JoglImageLoader.TYPE bufferDataType, int width, int height) static String[]
boolean
load
(InputStream is, boolean verticalFlipNeeded) Decodes image data from an InputStream.makeArdor3dImage
(com.jogamp.opengl.util.texture.TextureData textureData, boolean verticalFlipNeeded) static void
static void
registerLoader
(JoglImageLoader joglImageLoader, String[] supportedFormats) void
setMipmapsProductionEnabled
(boolean mipmapsProductionEnabled)
-
Field Details
-
createOnHeap
public static boolean createOnHeap -
_capsUtil
-
-
Constructor Details
-
JoglImageLoader
public JoglImageLoader() -
JoglImageLoader
-
-
Method Details
-
getSupportedFormats
-
registerLoader
public static void registerLoader() -
registerLoader
-
makeArdor3dImage
public Image makeArdor3dImage(com.jogamp.opengl.util.texture.TextureData textureData, boolean verticalFlipNeeded) -
load
Description copied from interface:ImageLoader
Decodes image data from an InputStream.- Specified by:
load
in interfaceImageLoader
- 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)
-