|
public class ImageFormat
{
public final static int TARGA_TRUE_COLOR = 0;
public final static int TARGA16 = 1;
public final static int PNG = 2;
public final static int PVR = 3;
private final static String name[] = new String[]{"TARGA32", "Targa16", "PNG", "PVR"};
private final static String nameLong[] = new String[]{"Targa True Color", "16-bit Targa", "PNG", "PVR"};
static String getNameLong(int index) { return nameLong[index]; }
static String getName(int index) { return name[index]; }
static int getType(String inName)
{
for (int n = 0; n < name.length; n++)
{
if (name[n].equals(inName)) return n;
}
return 0;
}
// private int type;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
After working in the software industry for many years, I've started my own
games company that specialises in strategy games for mobile platforms.