public override RenderOperation[] GetRenderOperation() { RenderOperation[] rop = ModelL0.GetRenderOperation(); if (rop != null) { for (int i = 0; i < rop.Length; i++) { rop[i].Sender = this; } } return(rop); }
public override RenderOperation[] GetRenderOperation() { if (ResVisible != null) { ResVisible(this); } opBuffer.FastClear(); if (Visiblity > 0) { RenderOperation[] ops = board.GetRenderOperation(); if (ops != null) { for (int i = 0; i < ops.Length; i++) { ops[i].Sender = this; } opBuffer.Add(ops); } } if (ModelL0 != null) { RenderOperation[] ops = ModelL0.GetRenderOperation(); if (ops != null) { for (int i = 0; i < ops.Length; i++) { ops[i].Sender = this; } opBuffer.Add(ops); } } opBuffer.Trim(); return(opBuffer.Elements); }