Esempio n. 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();
            }
        }
Esempio n. 2
0
 public void Draw(IGraphicsBatch graphics)
 {
     graphics.DrawSprite(this.sprite);
 }