CReflectionProbe.generated.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. public partial class ReflectionProbe : Component
  14. {
  15. private ReflectionProbe(bool __dummy0) { }
  16. protected ReflectionProbe() { }
  17. /// <summary>Changes the type of the probe.</summary>
  18. [ShowInInspector]
  19. public ReflectionProbeType Type
  20. {
  21. get { return Internal_getType(mCachedPtr); }
  22. set { Internal_setType(mCachedPtr, value); }
  23. }
  24. /// <summary>Sets the radius of a sphere reflection probe.</summary>
  25. [ShowInInspector]
  26. public float Radius
  27. {
  28. get { return Internal_getRadius(mCachedPtr); }
  29. set { Internal_setRadius(mCachedPtr, value); }
  30. }
  31. /// <summary>Sets the extents of a box reflection probe. Determines range of influence.</summary>
  32. [ShowInInspector]
  33. public Vector3 Extents
  34. {
  35. get
  36. {
  37. Vector3 temp;
  38. Internal_getExtents(mCachedPtr, out temp);
  39. return temp;
  40. }
  41. set { Internal_setExtents(mCachedPtr, ref value); }
  42. }
  43. /// <summary>
  44. /// Allows you assign a custom texture to use as a reflection map. This will disable automatic generation of reflections.
  45. /// To re-enable auto-generation call this with a null parameter.
  46. /// </summary>
  47. [ShowInInspector]
  48. public Texture CustomTexture
  49. {
  50. get { return Internal_getCustomTexture(mCachedPtr); }
  51. set { Internal_setCustomTexture(mCachedPtr, value); }
  52. }
  53. /// <summary>
  54. /// Captures the scene at the current location and generates a filtered reflection cubemap. No action is taken if a
  55. /// custom texture is set.
  56. /// </summary>
  57. public void Capture()
  58. {
  59. Internal_capture(mCachedPtr);
  60. }
  61. [MethodImpl(MethodImplOptions.InternalCall)]
  62. private static extern ReflectionProbeType Internal_getType(IntPtr thisPtr);
  63. [MethodImpl(MethodImplOptions.InternalCall)]
  64. private static extern void Internal_setType(IntPtr thisPtr, ReflectionProbeType type);
  65. [MethodImpl(MethodImplOptions.InternalCall)]
  66. private static extern float Internal_getRadius(IntPtr thisPtr);
  67. [MethodImpl(MethodImplOptions.InternalCall)]
  68. private static extern void Internal_setRadius(IntPtr thisPtr, float radius);
  69. [MethodImpl(MethodImplOptions.InternalCall)]
  70. private static extern void Internal_getExtents(IntPtr thisPtr, out Vector3 __output);
  71. [MethodImpl(MethodImplOptions.InternalCall)]
  72. private static extern void Internal_setExtents(IntPtr thisPtr, ref Vector3 extents);
  73. [MethodImpl(MethodImplOptions.InternalCall)]
  74. private static extern Texture Internal_getCustomTexture(IntPtr thisPtr);
  75. [MethodImpl(MethodImplOptions.InternalCall)]
  76. private static extern void Internal_setCustomTexture(IntPtr thisPtr, Texture texture);
  77. [MethodImpl(MethodImplOptions.InternalCall)]
  78. private static extern void Internal_capture(IntPtr thisPtr);
  79. }
  80. /** @} */
  81. }