示例#1
0
 public void add(Rendered r, GLState t) {
   if (curp == null) throw (new RuntimeException("Tried to set up relative slot with no parent"));
   Object seq = null;
   Buffer cos = null;
   if ((t == null) && (curp.statroot == null)) {
     seq = r.staticp();
     curp.cs.copye(cos = new Buffer(cfg), GLState.Slot.Type.SYS);
     Cached c;
     if ((seq != null) && ((c = prevcache.get(new Cached(r, seq, cos, false))) != null)) {
       prevcache.remove(c);
       newcache.put(c, c);
       add(c, curp.cs);
       return;
     }
   }
   Slot s = getslot();
   curp.cs.copy(s.os);
   if (t != null) t.prep(s.os);
   s.os.copy(s.cs);
   if (curp.statroot != null) {
     s.statroot = curp.statroot;
   } else if (seq != null) {
     s.statroot = new Cached(r, seq, cos);
   }
   setup(s, r);
 }
示例#2
0
 public boolean setup(RenderList rl) {
   rl.add(l, null);
   return (false);
 }
示例#3
0
 public boolean setup(RenderList rl) {
   changes();
   for (Model mod : this.mod) rl.add(mod, null);
   for (Equ equ : this.equ) rl.add(equ, equ.et);
   return (false);
 }
示例#4
0
 public boolean setup(RenderList r) {
   m.setup(r);
   for (Layer lay : this.lay) r.add(lay, null);
   return (false);
 }