Zeplin.Sprite.Draw C# (CSharp) Method

Draw() public method

Draws the contents of the tile using the tile's transformation
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public void Draw(GameTime gameTime)
        {
            if (AnimationScript != null)
            {
                Rectangle sourceRect;
                //Console.WriteLine("going into ProcessAnimation with {0} {1} {2}", gameTime, FrameSize, Sprite);
                sourceRect = AnimationScript.ProcessAnimation(gameTime, FrameSize, SubRect);
                //Console.WriteLine("drawing tile with subrect {0}", sourceRect);

                Image.Draw(Transformation, sourceRect);
            }
            else
            {
                Image.Draw(Transformation, SubRect);
            }

            if(CollisionVolume != null)
                (CollisionVolume as SATCollisionVolume).Draw();
        }

Same methods

Sprite::Draw ( GameTime gameTime, Color color ) : void