CReflectionProbe.generated.cs 3.0 KB

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