Package gaiasky.util.gdx.loader
Class PFMReader
java.lang.Object
gaiasky.util.gdx.loader.PFMReader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PFMData
constructPFMData
(int width, int height, Function<Float, Float> f) static PFMData
static List
<gaiasky.util.gdx.loader.PFMReader.Quad> generateMesh
(float[] d, int w, int h) static PFMData
readPFMData
(com.badlogic.gdx.files.FileHandle file, boolean normalize, boolean invert) static com.badlogic.gdx.graphics.Pixmap
readPFMPixmap
(com.badlogic.gdx.files.FileHandle file, boolean invert) static com.badlogic.gdx.graphics.TextureData
readPFMTextureData
(com.badlogic.gdx.files.FileHandle file, boolean invert) static void
writePFMFile
(Path file, boolean grayscale, boolean bigEndian, PFMData data) Writes the given PFM data to the given file.
-
Constructor Details
-
PFMReader
public PFMReader()
-
-
Method Details
-
readPFMTextureData
public static com.badlogic.gdx.graphics.TextureData readPFMTextureData(com.badlogic.gdx.files.FileHandle file, boolean invert) -
readPFMData
public static PFMData readPFMData(com.badlogic.gdx.files.FileHandle file, boolean normalize, boolean invert) -
writePFMFile
Writes the given PFM data to the given file.- Parameters:
file
- The file to write.grayscale
- Whether the PFM is grayscale (true) or color (false).bigEndian
- Whether the PFM is big endian (true) or little endian (false).data
- The PFM data.
-
readPFMPixmap
public static com.badlogic.gdx.graphics.Pixmap readPFMPixmap(com.badlogic.gdx.files.FileHandle file, boolean invert) -
constructPFMData
-
constructPFMData
-
generateMesh
-