mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
87 lines
4.2 KiB
ReStructuredText
87 lines
4.2 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the BackBufferCopy.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_BackBufferCopy:
|
|
|
|
BackBufferCopy
|
|
==============
|
|
|
|
**Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_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 :ref:`Node2D<class_Node2D>` (and not :ref:`Control<class_Control>`), anchors and margins won't apply to child :ref:`Control<class_Control>`-derived nodes. This can be problematic when resizing the window. To avoid this, add :ref:`Control<class_Control>`-derived nodes as *siblings* to the BackBufferCopy node instead of adding them as children.
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+-----------------------------------------------+-----------------------------------------------------------+-----------------------------------+
|
|
| :ref:`CopyMode<enum_BackBufferCopy_CopyMode>` | :ref:`copy_mode<class_BackBufferCopy_property_copy_mode>` | ``1`` |
|
|
+-----------------------------------------------+-----------------------------------------------------------+-----------------------------------+
|
|
| :ref:`Rect2<class_Rect2>` | :ref:`rect<class_BackBufferCopy_property_rect>` | ``Rect2( -100, -100, 200, 200 )`` |
|
|
+-----------------------------------------------+-----------------------------------------------------------+-----------------------------------+
|
|
|
|
Enumeraciones
|
|
--------------------------
|
|
|
|
.. _enum_BackBufferCopy_CopyMode:
|
|
|
|
.. _class_BackBufferCopy_constant_COPY_MODE_DISABLED:
|
|
|
|
.. _class_BackBufferCopy_constant_COPY_MODE_RECT:
|
|
|
|
.. _class_BackBufferCopy_constant_COPY_MODE_VIEWPORT:
|
|
|
|
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
|
|
--------------------------------------------------------
|
|
|
|
.. _class_BackBufferCopy_property_copy_mode:
|
|
|
|
- :ref:`CopyMode<enum_BackBufferCopy_CopyMode>` **copy_mode**
|
|
|
|
+-----------+----------------------+
|
|
| *Default* | ``1`` |
|
|
+-----------+----------------------+
|
|
| *Setter* | set_copy_mode(value) |
|
|
+-----------+----------------------+
|
|
| *Getter* | get_copy_mode() |
|
|
+-----------+----------------------+
|
|
|
|
Modo de búfer. Ver las constantes de :ref:`CopyMode<enum_BackBufferCopy_CopyMode>`.
|
|
|
|
----
|
|
|
|
.. _class_BackBufferCopy_property_rect:
|
|
|
|
- :ref:`Rect2<class_Rect2>` **rect**
|
|
|
|
+-----------+-----------------------------------+
|
|
| *Default* | ``Rect2( -100, -100, 200, 200 )`` |
|
|
+-----------+-----------------------------------+
|
|
| *Setter* | set_rect(value) |
|
|
+-----------+-----------------------------------+
|
|
| *Getter* | get_rect() |
|
|
+-----------+-----------------------------------+
|
|
|
|
El área cubierta por el BackBufferCopy. Sólo se usa si :ref:`copy_mode<class_BackBufferCopy_property_copy_mode>` es :ref:`COPY_MODE_RECT<class_BackBufferCopy_constant_COPY_MODE_RECT>`.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|