CReflectionProbe.generated.cs 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>
  10. /// Specifies a location at which a pre-computed texture containing scene radiance will be generated. This texture will
  11. /// then be used by the renderer to provide specular reflections.
  12. /// </summary>
  13. [ShowInInspector]
  14. public partial class ReflectionProbe : Component
  15. {
  16. private ReflectionProbe(bool __dummy0) { }
  17. protected ReflectionProbe() { }
  18. /// <summary>Changes the type of the probe.</summary>
  19. [ShowInInspector]
  20. [NativeWrapper]
  21. public ReflectionProbeType Type
  22. {
  23. get { return Internal_getType(mCachedPtr); }
  24. set { Internal_setType(mCachedPtr, value); }
  25. }
  26. /// <summary>Sets the radius of a sphere reflection probe.</summary>
  27. [ShowInInspector]
  28. [NativeWrapper]
  29. public float Radius
  30. {
  31. get { return Internal_getRadius(mCachedPtr); }
  32. set { Internal_setRadius(mCachedPtr, value); }
  33. }
  34. /// <summary>Sets the extents of a box reflection probe. Determines range of influence.</summary>
  35. [ShowInInspector]
  36. [NativeWrapper]
  37. public Vector3 Extents
  38. {
  39. get
  40. {
  41. Vector3 temp;
  42. Internal_getExtents(mCachedPtr, out temp);
  43. return temp;
  44. }
  45. set { Internal_setExtents(mCachedPtr, ref value); }
  46. }
  47. /// <summary>
  48. /// Allows you assign a custom texture to use as a reflection map. This will disable automatic generation of reflections.
  49. /// To re-enable auto-generation call this with a null parameter.
  50. /// </summary>
  51. [ShowInInspector]
  52. [NativeWrapper]
  53. public RRef<Texture> CustomTexture
  54. {
  55. get { return Internal_getCustomTexture(mCachedPtr); }
  56. set { Internal_setCustomTexture(mCachedPtr, value); }
  57. }
  58. /// <summary>
  59. /// Captures the scene at the current location and generates a filtered reflection cubemap. No action is taken if a
  60. /// custom texture is set.
  61. /// </summary>
  62. public void Capture()
  63. {
  64. Internal_capture(mCachedPtr);
  65. }
  66. [MethodImpl(MethodImplOptions.InternalCall)]
  67. private static extern ReflectionProbeType Internal_getType(IntPtr thisPtr);
  68. [MethodImpl(MethodImplOptions.InternalCall)]
  69. private static extern void Internal_setType(IntPtr thisPtr, ReflectionProbeType type);
  70. [MethodImpl(MethodImplOptions.InternalCall)]
  71. private static extern float Internal_getRadius(IntPtr thisPtr);
  72. [MethodImpl(MethodImplOptions.InternalCall)]
  73. private static extern void Internal_setRadius(IntPtr thisPtr, float radius);
  74. [MethodImpl(MethodImplOptions.InternalCall)]
  75. private static extern void Internal_getExtents(IntPtr thisPtr, out Vector3 __output);
  76. [MethodImpl(MethodImplOptions.InternalCall)]
  77. private static extern void Internal_setExtents(IntPtr thisPtr, ref Vector3 extents);
  78. [MethodImpl(MethodImplOptions.InternalCall)]
  79. private static extern RRef<Texture> Internal_getCustomTexture(IntPtr thisPtr);
  80. [MethodImpl(MethodImplOptions.InternalCall)]
  81. private static extern void Internal_setCustomTexture(IntPtr thisPtr, RRef<Texture> texture);
  82. [MethodImpl(MethodImplOptions.InternalCall)]
  83. private static extern void Internal_capture(IntPtr thisPtr);
  84. }
  85. /** @} */
  86. }