/// <summary>
 /// Set the current render properties to those specified in the given packet.
 /// </summary>
 /// <param name="packet"></param>
 public void SetRenderProperties(
     SpriteBatchPropertiesPacket packet, bool ignoreDefaults = true, bool applyMatrix = false)
 {
     SetRenderProperties(
         packet.SpriteSortMode,
         packet.BlendState,
         packet.SamplerState,
         packet.DepthStencilState,
         packet.RasterizerState,
         packet.Effect,
         packet.Matrix,
         ignoreDefaults,
         applyMatrix);
 }