Class XPIO
java.lang.Object
com.github.yellowstonegames.glyph.rexpaint.XPIO
Allows importing REXPaint's .xp files to a format SquidGlyph can read and display.
Imported from biscon's xpreader project.
The
Created by bison on 02-01-2016.
saveXP(FileHandle, GlyphGrid) method was adapted from
CosPlay Engine's Scala code.
Created by bison on 02-01-2016.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
XPIO
public XPIO()
-
-
Method Details
-
saveXP
Adapted from CosPlay Engine's Scala code.- Parameters:
file- the FileHandle to write todata- a GlyphGrid to write as a .xp file
-
loadXP
-
pack
public static int pack(int r, int g, int b, int a)
-