예제 #1
0
        public void Draw(IGraphicsBatch renderer)
        {
            Matrix transform = this.CalculateTransformMatrix();
            renderer.DrawSprite(this.Sheet, this.frame, transform, this.Color);

            if (this.children != null && this.children.Count > 0)
            {
                renderer.PushMatrix(transform);

                for (int i = 0; i < this.children.Count; i++)
                    this.children[i].Draw(renderer);

                renderer.PopMatrix();
            }
        }
예제 #2
0
 public void Draw(IGraphicsBatch graphics)
 {
     graphics.DrawSprite(this.sprite);
 }