RenderTarget.generated.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. [ShowInInspector]
  11. public partial class RenderTarget : ScriptObject
  12. {
  13. private RenderTarget(bool __dummy0) { }
  14. protected RenderTarget() { }
  15. /// <summary>Width of the render target, in pixels.</summary>
  16. [ShowInInspector]
  17. [NativeWrapper]
  18. public uint Width
  19. {
  20. get { return Internal_getWidth(mCachedPtr); }
  21. }
  22. /// <summary>Height of the render target, in pixels.</summary>
  23. [ShowInInspector]
  24. [NativeWrapper]
  25. public uint Height
  26. {
  27. get { return Internal_getHeight(mCachedPtr); }
  28. }
  29. /// <summary>True if pixels written to the render target will be gamma corrected.</summary>
  30. [ShowInInspector]
  31. [NativeWrapper]
  32. public bool GammaCorrection
  33. {
  34. get { return Internal_getGammaCorrection(mCachedPtr); }
  35. }
  36. /// <summary>
  37. /// Controls in what order is the render target rendered to compared to other render targets. Targets with higher
  38. /// priority will be rendered before ones with lower priority.
  39. /// </summary>
  40. [ShowInInspector]
  41. [NativeWrapper]
  42. public int Priority
  43. {
  44. get { return Internal_getPriority(mCachedPtr); }
  45. set { Internal_setPriority(mCachedPtr, value); }
  46. }
  47. /// <summary>Controls how many samples are used for multisampling. (0 or 1 if multisampling is not used).</summary>
  48. [ShowInInspector]
  49. [NativeWrapper]
  50. public uint SampleCount
  51. {
  52. get { return Internal_getSampleCount(mCachedPtr); }
  53. }
  54. [MethodImpl(MethodImplOptions.InternalCall)]
  55. private static extern uint Internal_getWidth(IntPtr thisPtr);
  56. [MethodImpl(MethodImplOptions.InternalCall)]
  57. private static extern uint Internal_getHeight(IntPtr thisPtr);
  58. [MethodImpl(MethodImplOptions.InternalCall)]
  59. private static extern bool Internal_getGammaCorrection(IntPtr thisPtr);
  60. [MethodImpl(MethodImplOptions.InternalCall)]
  61. private static extern int Internal_getPriority(IntPtr thisPtr);
  62. [MethodImpl(MethodImplOptions.InternalCall)]
  63. private static extern void Internal_setPriority(IntPtr thisPtr, int priority);
  64. [MethodImpl(MethodImplOptions.InternalCall)]
  65. private static extern uint Internal_getSampleCount(IntPtr thisPtr);
  66. }
  67. /** @} */
  68. }