public void paint(bool shadow, I3dsTaken c) { obj_type aux = null; foreach (obj_type o in objects.Values) { if (o.name == "glass") { aux = o; } else if (c.Actions(o, shadow, Rot, Trans, Scl)) { } else { o.paint(shadow, Rot, Trans, Scl); } } if (aux != null) { if (c.Actions(aux, shadow, Rot, Trans, Scl)) { } else { aux.paint(shadow, Rot, Trans, Scl); } } }
public void paint(bool shadow,I3dsTaken c) { obj_type aux=null; foreach (obj_type o in objects.Values) { if(o.name=="glass") { aux=o; } else if(c.Actions(o,shadow, Rot, Trans, Scl)) { } else o.paint(shadow, Rot, Trans, Scl); } if(aux!=null) { if(c.Actions(aux,shadow, Rot, Trans, Scl)) { } else aux.paint(shadow, Rot, Trans, Scl); } }