Package com.jme3.texture.plugins.ktx
Class KTXWriter
java.lang.Object
com.jme3.texture.plugins.ktx.KTXWriter
This class allows one to write a KTX file.
It doesn't support compressed data yet.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Writes an image with the given params textureType, allows one to write textureArrays, Texture3D, and TextureCubeMaps.void
Writes a 2D image from the given image in a KTX file named from the fileName param Note that the fileName should contain the extension (.ktx sounds like a wise choice)
-
Constructor Details
-
KTXWriter
Creates a KTXWriter that will write files in the given path- Parameters:
path
- the desired filesystem path (alias created)
-
-
Method Details
-
write
Writes a 2D image from the given image in a KTX file named from the fileName param Note that the fileName should contain the extension (.ktx sounds like a wise choice)- Parameters:
image
- the image to writefileName
- the name of the file to write
-
write
Writes an image with the given params textureType, allows one to write textureArrays, Texture3D, and TextureCubeMaps. Texture2D will write a 2D image. Note that the fileName should contain the extension (.ktx sounds like a wise choice)- Parameters:
image
- the image to writetextureType
- the texture typefileName
- the name of the file to write
-