class_meshtexture.rst 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the MeshTexture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_MeshTexture:
  6. MeshTexture
  7. ===========
  8. **Inherits:** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Simple texture that uses a mesh to draw itself.
  10. Description
  11. -----------
  12. Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
  13. Properties
  14. ----------
  15. +-------------------------------+--------------------------------------------------------------+---------------------------+
  16. | :ref:`Texture<class_Texture>` | :ref:`base_texture<class_MeshTexture_property_base_texture>` | |
  17. +-------------------------------+--------------------------------------------------------------+---------------------------+
  18. | :ref:`int<class_int>` | flags | ``0`` *(parent override)* |
  19. +-------------------------------+--------------------------------------------------------------+---------------------------+
  20. | :ref:`Vector2<class_Vector2>` | :ref:`image_size<class_MeshTexture_property_image_size>` | ``Vector2( 0, 0 )`` |
  21. +-------------------------------+--------------------------------------------------------------+---------------------------+
  22. | :ref:`Mesh<class_Mesh>` | :ref:`mesh<class_MeshTexture_property_mesh>` | |
  23. +-------------------------------+--------------------------------------------------------------+---------------------------+
  24. Property Descriptions
  25. ---------------------
  26. .. _class_MeshTexture_property_base_texture:
  27. - :ref:`Texture<class_Texture>` **base_texture**
  28. +----------+-------------------------+
  29. | *Setter* | set_base_texture(value) |
  30. +----------+-------------------------+
  31. | *Getter* | get_base_texture() |
  32. +----------+-------------------------+
  33. Sets the base texture that the Mesh will use to draw.
  34. ----
  35. .. _class_MeshTexture_property_image_size:
  36. - :ref:`Vector2<class_Vector2>` **image_size**
  37. +-----------+-----------------------+
  38. | *Default* | ``Vector2( 0, 0 )`` |
  39. +-----------+-----------------------+
  40. | *Setter* | set_image_size(value) |
  41. +-----------+-----------------------+
  42. | *Getter* | get_image_size() |
  43. +-----------+-----------------------+
  44. Sets the size of the image, needed for reference.
  45. ----
  46. .. _class_MeshTexture_property_mesh:
  47. - :ref:`Mesh<class_Mesh>` **mesh**
  48. +----------+-----------------+
  49. | *Setter* | set_mesh(value) |
  50. +----------+-----------------+
  51. | *Getter* | get_mesh() |
  52. +----------+-----------------+
  53. Sets the mesh used to draw. It must be a mesh using 2D vertices.
  54. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  55. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  56. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`