コード例 #1
0
ファイル: Sprite.cs プロジェクト: smack0007/Snowball_v1
        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
ファイル: Ship.cs プロジェクト: smack0007/Snowball_v1
 public void Draw(IGraphicsBatch graphics)
 {
     graphics.DrawSprite(this.sprite);
 }