BackBufferCopy.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="BackBufferCopy" inherits="Node2D" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. Copies a region of the screen (or the whole screen) to a buffer so it can be accessed with the texscreen() shader instruction.
  5. </brief_description>
  6. <description>
  7. Node for back-buffering the currently displayed screen. The region defined in the BackBufferCopy node is bufferized with the content of the screen it covers, or the entire screen according to the copy mode set. Accessing this buffer is done with the texscreen() shader instruction.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_copy_mode" qualifiers="const">
  15. <return type="int" enum="BackBufferCopy.CopyMode">
  16. </return>
  17. <description>
  18. Return the copy mode currently applied to the BackBufferCopy. See [code]COPY_MODE_*[/code] constants.
  19. </description>
  20. </method>
  21. <method name="get_rect" qualifiers="const">
  22. <return type="Rect2">
  23. </return>
  24. <description>
  25. Return the area covered by the BackBufferCopy.
  26. </description>
  27. </method>
  28. <method name="set_copy_mode">
  29. <return type="void">
  30. </return>
  31. <argument index="0" name="copy_mode" type="int" enum="BackBufferCopy.CopyMode">
  32. </argument>
  33. <description>
  34. Set the copy mode of the BackBufferCopy. See [code]COPY_MODE_*[/code] constants.
  35. </description>
  36. </method>
  37. <method name="set_rect">
  38. <return type="void">
  39. </return>
  40. <argument index="0" name="rect" type="Rect2">
  41. </argument>
  42. <description>
  43. Defines the area covered by the BackBufferCopy.
  44. </description>
  45. </method>
  46. </methods>
  47. <members>
  48. <member name="copy_mode" type="int" setter="set_copy_mode" getter="get_copy_mode" enum="BackBufferCopy.CopyMode">
  49. Buffer mode. See [code]COPY_MODE_*[/code] constants.
  50. </member>
  51. <member name="rect" type="Rect2" setter="set_rect" getter="get_rect">
  52. The area covered by the BackBufferCopy. Only used if [code]copy_mode[/code] is [code]COPY_MODE_RECT[/code].
  53. </member>
  54. </members>
  55. <constants>
  56. <constant name="COPY_MODE_DISABLED" value="0">
  57. Disables the buffering mode. This means the BackBufferCopy node will directly use the portion of screen it covers.
  58. </constant>
  59. <constant name="COPY_MODE_RECT" value="1">
  60. BackBufferCopy buffers a rectangular region.
  61. </constant>
  62. <constant name="COPY_MODE_VIEWPORT" value="2">
  63. BackBufferCopy buffers the entire screen.
  64. </constant>
  65. </constants>
  66. </class>