Package com.ardor3d.image.util.awt
Class AWTTextureUtil
java.lang.Object
com.ardor3d.image.util.awt.AWTTextureUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Texture
loadTexture
(BufferedImage image, Texture.MinificationFilter minFilter, TextureStoreFormat storeFormat, boolean flipVertically) Convenience Utility for loading a BufferedImage as an Ardor3D Texture.
-
Constructor Details
-
AWTTextureUtil
public AWTTextureUtil()
-
-
Method Details
-
loadTexture
public static final Texture loadTexture(BufferedImage image, Texture.MinificationFilter minFilter, TextureStoreFormat storeFormat, boolean flipVertically) Convenience Utility for loading a BufferedImage as an Ardor3D Texture.- Parameters:
image
- our buffered imageminFilter
- the filter for the near values. Used to determine if we should generate mipmaps.storeFormat
- the specific format to use when storing this texture on the card.flipVertically
- If true, the image is flipped vertically during image conversion.- Returns:
- our new Texture.
-