CSkybox.generated.cs 1.6 KB

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