LargeTexture.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="LargeTexture" inherits="Texture" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. [i]Deprecated.[/i] A [Texture] capable of storing many smaller textures with offsets.
  5. </brief_description>
  6. <description>
  7. [i]Deprecated (will be removed in Godot 4.0).[/i] A [Texture] capable of storing many smaller textures with offsets.
  8. You can dynamically add pieces ([Texture]s) to this [LargeTexture] using different offsets.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="add_piece">
  14. <return type="int" />
  15. <argument index="0" name="ofs" type="Vector2" />
  16. <argument index="1" name="texture" type="Texture" />
  17. <description>
  18. Adds [code]texture[/code] to this [LargeTexture], starting on offset [code]ofs[/code].
  19. </description>
  20. </method>
  21. <method name="clear">
  22. <return type="void" />
  23. <description>
  24. Clears the [LargeTexture].
  25. </description>
  26. </method>
  27. <method name="get_piece_count" qualifiers="const">
  28. <return type="int" />
  29. <description>
  30. Returns the number of pieces currently in this [LargeTexture].
  31. </description>
  32. </method>
  33. <method name="get_piece_offset" qualifiers="const">
  34. <return type="Vector2" />
  35. <argument index="0" name="idx" type="int" />
  36. <description>
  37. Returns the offset of the piece with the index [code]idx[/code].
  38. </description>
  39. </method>
  40. <method name="get_piece_texture" qualifiers="const">
  41. <return type="Texture" />
  42. <argument index="0" name="idx" type="int" />
  43. <description>
  44. Returns the [Texture] of the piece with the index [code]idx[/code].
  45. </description>
  46. </method>
  47. <method name="set_piece_offset">
  48. <return type="void" />
  49. <argument index="0" name="idx" type="int" />
  50. <argument index="1" name="ofs" type="Vector2" />
  51. <description>
  52. Sets the offset of the piece with the index [code]idx[/code] to [code]ofs[/code].
  53. </description>
  54. </method>
  55. <method name="set_piece_texture">
  56. <return type="void" />
  57. <argument index="0" name="idx" type="int" />
  58. <argument index="1" name="texture" type="Texture" />
  59. <description>
  60. Sets the [Texture] of the piece with index [code]idx[/code] to [code]texture[/code].
  61. </description>
  62. </method>
  63. <method name="set_size">
  64. <return type="void" />
  65. <argument index="0" name="size" type="Vector2" />
  66. <description>
  67. Sets the size of this [LargeTexture].
  68. </description>
  69. </method>
  70. </methods>
  71. <members>
  72. <member name="flags" type="int" setter="set_flags" getter="get_flags" overrides="Texture" default="0" />
  73. </members>
  74. <constants>
  75. </constants>
  76. </class>