public class KTXWriter
extends java.lang.Object
Constructor and Description |
---|
KTXWriter(java.lang.String path)
Creates a KTXWriter that will write files in the given path
|
Modifier and Type | Method and Description |
---|---|
void |
write(Image image,
java.lang.Class<? extends Texture> textureType,
java.lang.String fileName)
Writes an image with the given params
textureType, allows one to write textureArrays, Texture3D, and TextureCubeMaps.
|
void |
write(Image image,
java.lang.String fileName)
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)
|
public KTXWriter(java.lang.String path)
path
- the desired filesystem path (alias created)public void write(Image image, java.lang.String fileName)
image
- the image to writefileName
- the name of the file to writepublic void write(Image image, java.lang.Class<? extends Texture> textureType, java.lang.String fileName)
image
- the image to writetextureType
- the texture typefileName
- the name of the file to write