Class PFMReader

java.lang.Object
gaiasky.util.gdx.loader.PFMReader

public class PFMReader extends Object
  • 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

      public static void writePFMFile(Path file, boolean grayscale, boolean bigEndian, PFMData data)
      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

      public static PFMData constructPFMData(int width, int height, Function<Float,Float> fx, Function<Float,Float> fy)
    • constructPFMData

      public static PFMData constructPFMData(int width, int height, Function<Float,Float> f)
    • generateMesh

      public static List<gaiasky.util.gdx.loader.PFMReader.Quad> generateMesh(float[] d, int w, int h)