Class XPIO

java.lang.Object
com.github.yellowstonegames.glyph.rexpaint.XPIO

public class XPIO extends Object
Allows importing REXPaint's .xp files to a format SquidGlyph can read and display. Imported from biscon's xpreader project. The saveXP(FileHandle, GlyphGrid) method was adapted from CosPlay Engine's Scala code.
Created by bison on 02-01-2016.
  • Constructor Details

    • XPIO

      public XPIO()
  • Method Details

    • saveXP

      public static void saveXP(com.badlogic.gdx.files.FileHandle file, GlyphGrid data)
      Adapted from CosPlay Engine's Scala code.
      Parameters:
      file - the FileHandle to write to
      data - a GlyphGrid to write as a .xp file
    • loadXP

      public static XPFile loadXP(com.badlogic.gdx.files.FileHandle file)
    • pack

      public static int pack(int r, int g, int b, int a)