/Utilities/Graphics/TextureFilterMode.cs

# · C# · 20 lines · 8 code · 1 blank · 11 comment · 0 complexity · 279d270211e07cd902ce42d0a38968c7 MD5 · raw file

  1. namespace Delta.Utilities.Graphics
  2. {
  3. /// <summary>
  4. /// Texture filter modes for textures.
  5. /// </summary>
  6. public enum TextureFilterMode
  7. {
  8. /// <summary>
  9. /// Basic filtering which just picks the nearest pixel value, without
  10. /// any interpolation
  11. /// </summary>
  12. Nearest,
  13. /// <summary>
  14. /// Takes an average of surrounding pixels, looses some sharpness,
  15. /// but looks better most of the time. (Except for 2D un-scaled images)
  16. /// </summary>
  17. Linear,
  18. }
  19. }