public static RemoveObject parse2(Parser p) { RemoveObject o = new RemoveObject(); o.depth = p.getUWord(); return o; }
public static void skip(Parser p, boolean withAlpha) { if (withAlpha) p.skip(4); else p.skip(3); }
/** * Parses color as RGBA * * @param p Parser to parse from * @return always AlphaColor */ public static AlphaColor parseRGBA(Parser p) { return new AlphaColor(p.getUByte(), p.getUByte(), p.getUByte(), p.getUByte()); }
public static void skip(Parser p) { p.skip(3); }
/** * Parses color as RGB * * @param p Parser to parse from * @return always Color */ public static Color parseRGB(Parser p) { return new Color(p.getUByte(), p.getUByte(), p.getUByte()); }