VectorField.generated.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. [ShowInInspector]
  14. public partial class VectorField : Resource
  15. {
  16. private VectorField(bool __dummy0) { }
  17. protected VectorField() { }
  18. /// <summary>Creates a new vector field.</summary>
  19. /// <param name="desc">Description of the vector field to create.</param>
  20. /// <param name="values">
  21. /// Values to assign to the vector field. Number of entries must match countX * countY * countZ.
  22. /// </param>
  23. public VectorField(VectorFieldOptions desc, Vector3[] values)
  24. {
  25. Internal_create(this, ref desc, values);
  26. }
  27. /// <summary>Returns a reference wrapper for this resource.</summary>
  28. public RRef<VectorField> Ref
  29. {
  30. get { return Internal_GetRef(mCachedPtr); }
  31. }
  32. /// <summary>Returns a reference wrapper for this resource.</summary>
  33. public static implicit operator RRef<VectorField>(VectorField x)
  34. { return Internal_GetRef(x.mCachedPtr); }
  35. [MethodImpl(MethodImplOptions.InternalCall)]
  36. private static extern RRef<VectorField> Internal_GetRef(IntPtr thisPtr);
  37. [MethodImpl(MethodImplOptions.InternalCall)]
  38. private static extern void Internal_create(VectorField managedInstance, ref VectorFieldOptions desc, Vector3[] values);
  39. }
  40. /** @} */
  41. }