ParticleRenderingOrder.cs 830 B

12345678910111213141516171819202122232425
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. namespace MonoGame.Extended.Particles;
  5. /// <summary>
  6. /// Specifies the order in which particles are rendered within the particle system.
  7. /// </summary>
  8. /// <remarks>
  9. /// This enumeration defines the rendering order strategies that can be applied to particles to control how they are
  10. /// layered visually. The chosen rendering order affects which particles appear in front of others when they overlap.
  11. /// </remarks>
  12. public enum ParticleRenderingOrder
  13. {
  14. /// <summary>
  15. /// Particles are rendered from front to back.
  16. /// </summary>
  17. FrontToBack,
  18. /// <summary>
  19. /// Particles are rendered from back to front.
  20. /// </summary>
  21. BackToFront
  22. }