MeshTexture.xml 1.0 KB

123456789101112131415161718192021222324252627
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="MeshTexture" inherits="Texture" version="3.2">
  3. <brief_description>
  4. Simple texture that uses a mesh to draw itself.
  5. </brief_description>
  6. <description>
  7. Simple texture that uses a mesh to draw itself. It's limited because flags can't be changed and region drawing is not supported.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="base_texture" type="Texture" setter="set_base_texture" getter="get_base_texture">
  15. Sets the base texture that the Mesh will use to draw.
  16. </member>
  17. <member name="flags" type="int" setter="set_flags" getter="get_flags" override="true" default="0" />
  18. <member name="image_size" type="Vector2" setter="set_image_size" getter="get_image_size" default="Vector2( 0, 0 )">
  19. Sets the size of the image, needed for reference.
  20. </member>
  21. <member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh">
  22. Sets the mesh used to draw. It must be a mesh using 2D vertices.
  23. </member>
  24. </members>
  25. <constants>
  26. </constants>
  27. </class>