예제 #1
0
파일: Node.cs 프로젝트: Wiladams/NewTOAPIA
        public Spacial SetChild(int i, Spacial child)
        {
            Spacial oldChild = fChildList[i];
            fChildList[i] = child;

            return oldChild;
        }
예제 #2
0
파일: Node.cs 프로젝트: Wiladams/NewTOAPIA
        public int RemoveChild(Spacial child)
        {
            int index = fChildList.LastIndexOf(child);
            fChildList.RemoveAt(index);

            return index;
        }
예제 #3
0
        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];
            }
        }
예제 #4
0
 public VisibleObject(Spacial spacialObject, Effect anEffect)
 {
     fObject = spacialObject;
     fEffect = anEffect;
 }
예제 #5
0
        public void Insert(Spacial anObject, Effect anEffect)
        {
            VisibleObject aVisible = new VisibleObject(anObject, anEffect);

            fVisibleObjects.Add(aVisible);
        }
예제 #6
0
 protected Spacial()
 {
     fParent = null;
 }
예제 #7
0
파일: Node.cs 프로젝트: Wiladams/NewTOAPIA
        public int AddChild(Spacial child)
        {
            fChildList.Add(child);

            return fChildList.Count - 1;
        }