public Spacial SetChild(int i, Spacial child) { Spacial oldChild = fChildList[i]; fChildList[i] = child; return oldChild; }
public int RemoveChild(Spacial child) { int index = fChildList.LastIndexOf(child); fChildList.RemoveAt(index); return index; }
public virtual void Draw(Renderer aRenderer, Spacial aSpacial, int min, int max, VisibleObject[] aVisual) { VisibleObject current = aVisual[0]; for (int i = min; i < max; i++) { Geometry geometry = (Geometry)current.Spacial; geometry.Effects.Add(this); aRenderer.Draw(geometry); geometry.Effects.Remove(this); current = aVisual[i + 1]; } }
public VisibleObject(Spacial spacialObject, Effect anEffect) { fObject = spacialObject; fEffect = anEffect; }
public void Insert(Spacial anObject, Effect anEffect) { VisibleObject aVisible = new VisibleObject(anObject, anEffect); fVisibleObjects.Add(aVisible); }
protected Spacial() { fParent = null; }
public int AddChild(Spacial child) { fChildList.Add(child); return fChildList.Count - 1; }