VectorField.generated.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>
  10. /// Represents a three dimensional field of vectors. It is represented by spatial bounds which are split into a grid of
  11. /// values with user-defined density, where each grid cell is assigned a vector.
  12. /// </summary>
  13. public partial class VectorField : Resource
  14. {
  15. private VectorField(bool __dummy0) { }
  16. protected VectorField() { }
  17. /// <summary>Creates a new vector field.</summary>
  18. /// <param name="desc">Description of the vector field to create.</param>
  19. /// <param name="values">
  20. /// Values to assign to the vector field. Number of entries must match countX * countY * countZ.
  21. /// </param>
  22. public VectorField(VectorFieldOptions desc, Vector3[] values)
  23. {
  24. Internal_create(this, ref desc, values);
  25. }
  26. /// <summary>Returns a reference wrapper for this resource.</summary>
  27. public RRef<VectorField> Ref
  28. {
  29. get { return Internal_GetRef(mCachedPtr); }
  30. }
  31. /// <summary>Returns a reference wrapper for this resource.</summary>
  32. public static implicit operator RRef<VectorField>(VectorField x)
  33. { return Internal_GetRef(x.mCachedPtr); }
  34. [MethodImpl(MethodImplOptions.InternalCall)]
  35. private static extern RRef<VectorField> Internal_GetRef(IntPtr thisPtr);
  36. [MethodImpl(MethodImplOptions.InternalCall)]
  37. private static extern void Internal_create(VectorField managedInstance, ref VectorFieldOptions desc, Vector3[] values);
  38. }
  39. /** @} */
  40. }