class_backbuffercopy.rst 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the BackBufferCopy.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_BackBufferCopy:
  5. BackBufferCopy
  6. ==============
  7. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Copies a region of the screen (or the whole screen) to a buffer so it can be accessed with the texscreen() shader instruction.
  12. Member Functions
  13. ----------------
  14. +----------------------------+--------------------------------------------------------------------------------------------------------+
  15. | :ref:`int<class_int>` | :ref:`get_copy_mode<class_BackBufferCopy_get_copy_mode>` **(** **)** const |
  16. +----------------------------+--------------------------------------------------------------------------------------------------------+
  17. | :ref:`Rect2<class_rect2>` | :ref:`get_rect<class_BackBufferCopy_get_rect>` **(** **)** const |
  18. +----------------------------+--------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_copy_mode<class_BackBufferCopy_set_copy_mode>` **(** :ref:`int<class_int>` copy_mode **)** |
  20. +----------------------------+--------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`set_rect<class_BackBufferCopy_set_rect>` **(** :ref:`Rect2<class_rect2>` rect **)** |
  22. +----------------------------+--------------------------------------------------------------------------------------------------------+
  23. Member Variables
  24. ----------------
  25. - :ref:`int<class_int>` **copy_mode** - Buffer mode. See [code]COPY_MODE_*[/code] constants.
  26. - :ref:`Rect2<class_rect2>` **rect** - The area covered by the BackBufferCopy. Only used if [code]copy_mode[/code] is [code]COPY_MODE_RECT[/code].
  27. Numeric Constants
  28. -----------------
  29. - **COPY_MODE_DISABLED** = **0** --- Disables the buffering mode. This means the BackBufferCopy node will directly use the portion of screen it covers.
  30. - **COPY_MODE_RECT** = **1** --- BackBufferCopy buffers a rectangular region.
  31. - **COPY_MODE_VIEWPORT** = **2** --- BackBufferCopy buffers the entire screen.
  32. Description
  33. -----------
  34. 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.
  35. Member Function Description
  36. ---------------------------
  37. .. _class_BackBufferCopy_get_copy_mode:
  38. - :ref:`int<class_int>` **get_copy_mode** **(** **)** const
  39. Return the copy mode currently applied to the BackBufferCopy. See ``COPY_MODE\_\*`` constants.
  40. .. _class_BackBufferCopy_get_rect:
  41. - :ref:`Rect2<class_rect2>` **get_rect** **(** **)** const
  42. Return the area covered by the BackBufferCopy.
  43. .. _class_BackBufferCopy_set_copy_mode:
  44. - void **set_copy_mode** **(** :ref:`int<class_int>` copy_mode **)**
  45. Set the copy mode of the BackBufferCopy. See ``COPY_MODE\_\*`` constants.
  46. .. _class_BackBufferCopy_set_rect:
  47. - void **set_rect** **(** :ref:`Rect2<class_rect2>` rect **)**
  48. Defines the area covered by the BackBufferCopy.