classref: Sync with current master branch (f87858a8f)

This commit is contained in:
Yuri Sizov
2022-12-05 20:38:58 +03:00
parent 913ff5e602
commit a7745c4cc4
843 changed files with 158186 additions and 80821 deletions

View File

@@ -14,66 +14,84 @@ MeshTexture
Simple texture that uses a mesh to draw itself.
.. rst-class:: classref-introduction-group
Description
-----------
Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
.. rst-class:: classref-reftable-group
Properties
----------
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`base_texture<class_MeshTexture_property_base_texture>` | |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | ``Vector2(0, 0)`` |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | resource_local_to_scene | ``false`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
.. table::
:widths: auto
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`base_texture<class_MeshTexture_property_base_texture>` | |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | ``Vector2(0, 0)`` |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | resource_local_to_scene | ``false`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
Property Descriptions
---------------------
.. _class_MeshTexture_property_base_texture:
- :ref:`Texture2D<class_Texture2D>` **base_texture**
.. rst-class:: classref-property
+----------+-------------------------+
| *Setter* | set_base_texture(value) |
+----------+-------------------------+
| *Getter* | get_base_texture() |
+----------+-------------------------+
:ref:`Texture2D<class_Texture2D>` **base_texture**
.. rst-class:: classref-property-setget
- void **set_base_texture** **(** :ref:`Texture2D<class_Texture2D>` value **)**
- :ref:`Texture2D<class_Texture2D>` **get_base_texture** **(** **)**
Sets the base texture that the Mesh will use to draw.
.. rst-class:: classref-item-separator
----
.. _class_MeshTexture_property_image_size:
- :ref:`Vector2<class_Vector2>` **image_size**
.. rst-class:: classref-property
+-----------+-----------------------+
| *Default* | ``Vector2(0, 0)`` |
+-----------+-----------------------+
| *Setter* | set_image_size(value) |
+-----------+-----------------------+
| *Getter* | get_image_size() |
+-----------+-----------------------+
:ref:`Vector2<class_Vector2>` **image_size** = ``Vector2(0, 0)``
.. rst-class:: classref-property-setget
- void **set_image_size** **(** :ref:`Vector2<class_Vector2>` value **)**
- :ref:`Vector2<class_Vector2>` **get_image_size** **(** **)**
Sets the size of the image, needed for reference.
.. rst-class:: classref-item-separator
----
.. _class_MeshTexture_property_mesh:
- :ref:`Mesh<class_Mesh>` **mesh**
.. rst-class:: classref-property
+----------+-----------------+
| *Setter* | set_mesh(value) |
+----------+-----------------+
| *Getter* | get_mesh() |
+----------+-----------------+
:ref:`Mesh<class_Mesh>` **mesh**
.. rst-class:: classref-property-setget
- void **set_mesh** **(** :ref:`Mesh<class_Mesh>` value **)**
- :ref:`Mesh<class_Mesh>` **get_mesh** **(** **)**
Sets the mesh used to draw. It must be a mesh using 2D vertices.