RenderTarget.generated.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>Render target is a frame buffer or a texture that the render system renders the scene to.</summary>
  10. public partial class RenderTarget : ScriptObject
  11. {
  12. private RenderTarget(bool __dummy0) { }
  13. protected RenderTarget() { }
  14. /// <summary>Width of the render target, in pixels.</summary>
  15. public uint Width
  16. {
  17. get { return Internal_getWidth(mCachedPtr); }
  18. }
  19. /// <summary>Height of the render target, in pixels.</summary>
  20. public uint Height
  21. {
  22. get { return Internal_getHeight(mCachedPtr); }
  23. }
  24. /// <summary>True if pixels written to the render target will be gamma corrected.</summary>
  25. public bool GammaCorrection
  26. {
  27. get { return Internal_getGammaCorrection(mCachedPtr); }
  28. }
  29. /// <summary>
  30. /// Controls in what order is the render target rendered to compared to other render targets. Targets with higher
  31. /// priority will be rendered before ones with lower priority.
  32. /// </summary>
  33. public int Priority
  34. {
  35. get { return Internal_getPriority(mCachedPtr); }
  36. set { Internal_setPriority(mCachedPtr, value); }
  37. }
  38. /// <summary>Controls how many samples are used for multisampling. (0 or 1 if multisampling is not used).</summary>
  39. public uint SampleCount
  40. {
  41. get { return Internal_getSampleCount(mCachedPtr); }
  42. }
  43. [MethodImpl(MethodImplOptions.InternalCall)]
  44. private static extern uint Internal_getWidth(IntPtr thisPtr);
  45. [MethodImpl(MethodImplOptions.InternalCall)]
  46. private static extern uint Internal_getHeight(IntPtr thisPtr);
  47. [MethodImpl(MethodImplOptions.InternalCall)]
  48. private static extern bool Internal_getGammaCorrection(IntPtr thisPtr);
  49. [MethodImpl(MethodImplOptions.InternalCall)]
  50. private static extern int Internal_getPriority(IntPtr thisPtr);
  51. [MethodImpl(MethodImplOptions.InternalCall)]
  52. private static extern void Internal_setPriority(IntPtr thisPtr, int priority);
  53. [MethodImpl(MethodImplOptions.InternalCall)]
  54. private static extern uint Internal_getSampleCount(IntPtr thisPtr);
  55. }
  56. /** @} */
  57. }