BackBufferCopy

Inherits: Node2D < CanvasItem < Node < Object

Copia una región de la pantalla (o toda la pantalla) a un búfer para que se pueda acceder a ella en sus shader scripts a través de la función texture(SCREEN_TEXTURE, ...).

Descripción

Node for back-buffering the currently-displayed screen. The region defined in the BackBufferCopy node is buffered with the content of the screen it covers, or the entire screen according to the copy mode set. Use the texture(SCREEN_TEXTURE, ...) function in your shader scripts to access the buffer.

Note: Since this node inherits from Node2D (and not Control), anchors and margins won't apply to child Control-derived nodes. This can be problematic when resizing the window. To avoid this, add Control-derived nodes as siblings to the BackBufferCopy node instead of adding them as children.

Propiedades

CopyMode

copy_mode

1

Rect2

rect

Rect2( -100, -100, 200, 200 )

Enumeraciones

enum CopyMode:

  • COPY_MODE_DISABLED = 0 --- Deshabilita el modo de almacenamiento intermedio. Esto significa que el nodo BackBufferCopy utilizará directamente la parte de la pantalla que cubre.

  • COPY_MODE_RECT = 1 --- BackBufferCopy almacena una región rectangular.

  • COPY_MODE_VIEWPORT = 2 --- BackBufferCopy almacena toda la pantalla.

Descripciones de Propiedades

Default

1

Setter

set_copy_mode(value)

Getter

get_copy_mode()

Modo de búfer. Ver las constantes de CopyMode.


Default

Rect2( -100, -100, 200, 200 )

Setter

set_rect(value)

Getter

get_rect()

El área cubierta por el BackBufferCopy. Sólo se usa si copy_mode es COPY_MODE_RECT.