MrGravity.Game_Objects.Physics_Objects.Player.Draw C# (CSharp) Method

Draw() public method

Draw the player, with rotation due to gravity taken into affect
public Draw ( SpriteBatch canvas, GameTime gametime ) : void
canvas Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas SpriteBatch
gametime Microsoft.Xna.Framework.GameTime Current gametime
return void
        public override void Draw(SpriteBatch canvas, GameTime gametime)
        {
            canvas.Draw(MCurrentTexture, new Rectangle((int)MPosition.X + (int)(MSize.X / 2), (int)MPosition.Y + (int)(MSize.Y / 2), (int)MSize.X, (int)MSize.Y),
                new Rectangle(0, 0, MCurrentTexture.Width, MCurrentTexture.Height), Color.White, _mFaceRotation, new Vector2((MSize.X / 2), (MSize.Y / 2)), SpriteEffects.None, 0);
        }