CSkybox.generated.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. [NativeWrapper]
  21. public RRef<Texture> Texture
  22. {
  23. get { return Internal_getTexture(mCachedPtr); }
  24. set { Internal_setTexture(mCachedPtr, value); }
  25. }
  26. /// <summary>
  27. /// Brightness multiplier that will be applied to skybox values before they're being used. Allows you to make the skybox
  28. /// more or less bright. Equal to one by default.
  29. /// </summary>
  30. [ShowInInspector]
  31. [NativeWrapper]
  32. public float Brightness
  33. {
  34. get { return Internal_getBrightness(mCachedPtr); }
  35. set { Internal_setBrightness(mCachedPtr, value); }
  36. }
  37. [MethodImpl(MethodImplOptions.InternalCall)]
  38. private static extern RRef<Texture> Internal_getTexture(IntPtr thisPtr);
  39. [MethodImpl(MethodImplOptions.InternalCall)]
  40. private static extern void Internal_setTexture(IntPtr thisPtr, RRef<Texture> texture);
  41. [MethodImpl(MethodImplOptions.InternalCall)]
  42. private static extern void Internal_setBrightness(IntPtr thisPtr, float brightness);
  43. [MethodImpl(MethodImplOptions.InternalCall)]
  44. private static extern float Internal_getBrightness(IntPtr thisPtr);
  45. }
  46. /** @} */
  47. }