示例#1
0
 public static RemoveObject parse2(Parser p) {
   RemoveObject o = new RemoveObject();
   o.depth = p.getUWord();
   return o;
 }
示例#2
0
 public static void skip(Parser p, boolean withAlpha) {
   if (withAlpha) p.skip(4);
   else p.skip(3);
 }
示例#3
0
 /**
  * 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());
 }
示例#4
0
 public static void skip(Parser p) {
   p.skip(3);
 }
示例#5
0
 /**
  * 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());
 }