2
0

RenderTarget.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.CompilerServices;
  5. using System.Text;
  6. namespace BansheeEngine
  7. {
  8. public class RenderTarget : ScriptObject
  9. {
  10. public int Width
  11. {
  12. get
  13. {
  14. int value;
  15. Internal_GetWidth(mCachedPtr, out value);
  16. return value;
  17. }
  18. }
  19. public int Height
  20. {
  21. get
  22. {
  23. int value;
  24. Internal_GetHeight(mCachedPtr, out value);
  25. return value;
  26. }
  27. }
  28. public bool GammaCorrection
  29. {
  30. get
  31. {
  32. bool value;
  33. Internal_GetGammaCorrection(mCachedPtr, out value);
  34. return value;
  35. }
  36. }
  37. public int SampleCount
  38. {
  39. get
  40. {
  41. int value;
  42. Internal_GetSampleCount(mCachedPtr, out value);
  43. return value;
  44. }
  45. }
  46. public int Priority
  47. {
  48. get
  49. {
  50. int value;
  51. Internal_GetPriority(mCachedPtr, out value);
  52. return value;
  53. }
  54. set
  55. {
  56. Internal_SetPriority(mCachedPtr, value);
  57. }
  58. }
  59. [MethodImpl(MethodImplOptions.InternalCall)]
  60. private static extern void Internal_GetWidth(IntPtr thisPtr, out int value);
  61. [MethodImpl(MethodImplOptions.InternalCall)]
  62. private static extern void Internal_GetHeight(IntPtr thisPtr, out int value);
  63. [MethodImpl(MethodImplOptions.InternalCall)]
  64. private static extern void Internal_GetGammaCorrection(IntPtr thisPtr, out bool value);
  65. [MethodImpl(MethodImplOptions.InternalCall)]
  66. private static extern void Internal_GetSampleCount(IntPtr thisPtr, out int value);
  67. [MethodImpl(MethodImplOptions.InternalCall)]
  68. private static extern void Internal_GetPriority(IntPtr thisPtr, out int value);
  69. [MethodImpl(MethodImplOptions.InternalCall)]
  70. private static extern void Internal_SetPriority(IntPtr thisPtr, int value);
  71. }
  72. }