VECTOR_FIELD_DESC.generated.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Descriptor structure used for initialization of a VectorField.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct VectorFieldOptions
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static VectorFieldOptions Default()
  15. {
  16. VectorFieldOptions value = new VectorFieldOptions();
  17. value.countX = 1;
  18. value.countY = 1;
  19. value.countZ = 1;
  20. value.bounds = new AABox();
  21. return value;
  22. }
  23. /// <summary>Number of entries in the vector field along the X axis.</summary>
  24. public uint countX;
  25. /// <summary>Number of entries in the vector field along the Y axis.</summary>
  26. public uint countY;
  27. /// <summary>Number of entries in the vector field along the Z axis.</summary>
  28. public uint countZ;
  29. /// <summary>Spatial bounds of the vector field.</summary>
  30. public AABox bounds;
  31. }
  32. /** @} */
  33. }