Package com.ardor3d.image.util.jogl
Class JoglImageUtil
java.lang.Object
com.ardor3d.image.util.jogl.JoglImageUtil
Utility methods for converting Ardor3D Images to JOGL texture data.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<com.jogamp.opengl.util.texture.TextureData> convertToJogl
(CapsUtil capsUtil, Image input) Convert the given Ardor3D Image to a List of TextureData instances.static List
<com.jogamp.opengl.util.texture.TextureData> convertToJogl
(Image input) Convert the given Ardor3D Image to a List of TextureData instances.
-
Constructor Details
-
JoglImageUtil
public JoglImageUtil()
-
-
Method Details
-
convertToJogl
Convert the given Ardor3D Image to a List of TextureData instances. It is a List because Ardor3D Images may contain multiple layers (for example, in the case of cube maps or 3D textures).- Parameters:
input
- the Ardor3D Image to convert- Returns:
- the TextureData instance(s) created in the conversion
-
convertToJogl
public static List<com.jogamp.opengl.util.texture.TextureData> convertToJogl(CapsUtil capsUtil, Image input) Convert the given Ardor3D Image to a List of TextureData instances. It is a List because Ardor3D Images may contain multiple layers (for example, in the case of cube maps or 3D textures).- Parameters:
capsUtil
- capabilities utilityinput
- the Ardor3D Image to convert- Returns:
- the TextureData instance(s) created in the conversion
-