CSkybox.generated.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>Allows you to specify an environment map to use for sampling radiance of the sky.</summary>
  10. [ShowInInspector]
  11. public partial class Skybox : Component
  12. {
  13. private Skybox(bool __dummy0) { }
  14. protected Skybox() { }
  15. /// <summary>
  16. /// Determines an environment map to use for sampling skybox radiance. Must be a cube-map texture, and should ideally
  17. /// contain HDR data.
  18. /// </summary>
  19. [ShowInInspector]
  20. public RRef<Texture> Texture
  21. {
  22. get { return Internal_getTexture(mCachedPtr); }
  23. set { Internal_setTexture(mCachedPtr, value); }
  24. }
  25. /// <summary>
  26. /// Brightness multiplier that will be applied to skybox values before they're being used. Allows you to make the skybox
  27. /// more or less bright. Equal to one by default.
  28. /// </summary>
  29. [ShowInInspector]
  30. public float Brightness
  31. {
  32. get { return Internal_getBrightness(mCachedPtr); }
  33. set { Internal_setBrightness(mCachedPtr, value); }
  34. }
  35. [MethodImpl(MethodImplOptions.InternalCall)]
  36. private static extern RRef<Texture> Internal_getTexture(IntPtr thisPtr);
  37. [MethodImpl(MethodImplOptions.InternalCall)]
  38. private static extern void Internal_setTexture(IntPtr thisPtr, RRef<Texture> texture);
  39. [MethodImpl(MethodImplOptions.InternalCall)]
  40. private static extern void Internal_setBrightness(IntPtr thisPtr, float brightness);
  41. [MethodImpl(MethodImplOptions.InternalCall)]
  42. private static extern float Internal_getBrightness(IntPtr thisPtr);
  43. }
  44. /** @} */
  45. }