ParticleGpuSimulationSettings.generated.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Particles
  7. * @{
  8. */
  9. /// <summary>Settings used for controlling particle system GPU simulation.</summary>
  10. [ShowInInspector]
  11. public partial class ParticleGpuSimulationSettings : ScriptObject
  12. {
  13. private ParticleGpuSimulationSettings(bool __dummy0) { }
  14. protected ParticleGpuSimulationSettings() { }
  15. [ShowInInspector]
  16. [NativeWrapper]
  17. public ParticleVectorFieldSettings VectorField
  18. {
  19. get { return Internal_getvectorField(mCachedPtr); }
  20. set { Internal_setvectorField(mCachedPtr, value); }
  21. }
  22. /// <summary>Determines particle color, evaluated over the particle lifetime.</summary>
  23. [ShowInInspector]
  24. [NativeWrapper]
  25. public ColorDistribution ColorOverLifetime
  26. {
  27. get { return Internal_getcolorOverLifetime(mCachedPtr); }
  28. set { Internal_setcolorOverLifetime(mCachedPtr, value); }
  29. }
  30. /// <summary>
  31. /// Determines particle size, evaluated over the particle lifetime. Multiplied by the initial particle size.
  32. /// </summary>
  33. [ShowInInspector]
  34. [NativeWrapper]
  35. public Vector2Distribution SizeScaleOverLifetime
  36. {
  37. get { return Internal_getsizeScaleOverLifetime(mCachedPtr); }
  38. set { Internal_setsizeScaleOverLifetime(mCachedPtr, value); }
  39. }
  40. /// <summary>Constant acceleration to apply for each step of the simulation.</summary>
  41. [ShowInInspector]
  42. [NativeWrapper]
  43. public Vector3 Acceleration
  44. {
  45. get
  46. {
  47. Vector3 temp;
  48. Internal_getacceleration(mCachedPtr, out temp);
  49. return temp;
  50. }
  51. set { Internal_setacceleration(mCachedPtr, ref value); }
  52. }
  53. /// <summary>Amount of resistance to apply in the direction opposite of the particle's velocity.</summary>
  54. [ShowInInspector]
  55. [NativeWrapper]
  56. public float Drag
  57. {
  58. get { return Internal_getdrag(mCachedPtr); }
  59. set { Internal_setdrag(mCachedPtr, value); }
  60. }
  61. /// <summary>Settings controlling particle depth buffer collisions.</summary>
  62. [ShowInInspector]
  63. [NativeWrapper]
  64. public ParticleDepthCollisionSettings DepthCollision
  65. {
  66. get { return Internal_getdepthCollision(mCachedPtr); }
  67. set { Internal_setdepthCollision(mCachedPtr, value); }
  68. }
  69. [MethodImpl(MethodImplOptions.InternalCall)]
  70. private static extern ParticleVectorFieldSettings Internal_getvectorField(IntPtr thisPtr);
  71. [MethodImpl(MethodImplOptions.InternalCall)]
  72. private static extern void Internal_setvectorField(IntPtr thisPtr, ParticleVectorFieldSettings value);
  73. [MethodImpl(MethodImplOptions.InternalCall)]
  74. private static extern ColorDistribution Internal_getcolorOverLifetime(IntPtr thisPtr);
  75. [MethodImpl(MethodImplOptions.InternalCall)]
  76. private static extern void Internal_setcolorOverLifetime(IntPtr thisPtr, ColorDistribution value);
  77. [MethodImpl(MethodImplOptions.InternalCall)]
  78. private static extern Vector2Distribution Internal_getsizeScaleOverLifetime(IntPtr thisPtr);
  79. [MethodImpl(MethodImplOptions.InternalCall)]
  80. private static extern void Internal_setsizeScaleOverLifetime(IntPtr thisPtr, Vector2Distribution value);
  81. [MethodImpl(MethodImplOptions.InternalCall)]
  82. private static extern void Internal_getacceleration(IntPtr thisPtr, out Vector3 __output);
  83. [MethodImpl(MethodImplOptions.InternalCall)]
  84. private static extern void Internal_setacceleration(IntPtr thisPtr, ref Vector3 value);
  85. [MethodImpl(MethodImplOptions.InternalCall)]
  86. private static extern float Internal_getdrag(IntPtr thisPtr);
  87. [MethodImpl(MethodImplOptions.InternalCall)]
  88. private static extern void Internal_setdrag(IntPtr thisPtr, float value);
  89. [MethodImpl(MethodImplOptions.InternalCall)]
  90. private static extern ParticleDepthCollisionSettings Internal_getdepthCollision(IntPtr thisPtr);
  91. [MethodImpl(MethodImplOptions.InternalCall)]
  92. private static extern void Internal_setdepthCollision(IntPtr thisPtr, ParticleDepthCollisionSettings value);
  93. }
  94. /** @} */
  95. }