예제 #1
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];
            }
        }
예제 #2
0
        public void Insert(Spacial anObject, Effect anEffect)
        {
            VisibleObject aVisible = new VisibleObject(anObject, anEffect);

            fVisibleObjects.Add(aVisible);
        }