ColorGradientKey.generated.cs 714 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Image
  7. * @{
  8. */
  9. /// <summary>Single key in a ColorGradient.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct ColorGradientKey
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static ColorGradientKey Default()
  15. {
  16. ColorGradientKey value = new ColorGradientKey();
  17. value.color = new Color();
  18. value.time = 0f;
  19. return value;
  20. }
  21. public ColorGradientKey(Color color, float time)
  22. {
  23. this.color = color;
  24. this.time = time;
  25. }
  26. public Color color;
  27. public float time;
  28. }
  29. /** @} */
  30. }