class_backbuffercopy.rst 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Variables
  13. ----------------
  14. .. _class_BackBufferCopy_copy_mode:
  15. - :ref:`CopyMode<enum_backbuffercopy_copymode>` **copy_mode** - Buffer mode. See ``COPY_MODE_*`` constants.
  16. .. _class_BackBufferCopy_rect:
  17. - :ref:`Rect2<class_rect2>` **rect** - The area covered by the BackBufferCopy. Only used if ``copy_mode`` is ``COPY_MODE_RECT``.
  18. Enums
  19. -----
  20. .. _enum_BackBufferCopy_CopyMode:
  21. enum **CopyMode**
  22. - **COPY_MODE_DISABLED** = **0** --- Disables the buffering mode. This means the BackBufferCopy node will directly use the portion of screen it covers.
  23. - **COPY_MODE_RECT** = **1** --- BackBufferCopy buffers a rectangular region.
  24. - **COPY_MODE_VIEWPORT** = **2** --- BackBufferCopy buffers the entire screen.
  25. Description
  26. -----------
  27. 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.