class_largetexture.rst 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_LargeTexture:
  4. LargeTexture
  5. ============
  6. **Inherits:** :ref:`Texture<class_texture>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. A Texture capable of storing many smaller Textures with offsets.
  11. Member Functions
  12. ----------------
  13. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`add_piece<class_LargeTexture_add_piece>` **(** :ref:`Vector2<class_vector2>` ofs, :ref:`Texture<class_texture>` texture **)** |
  15. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`clear<class_LargeTexture_clear>` **(** **)** |
  17. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`get_piece_count<class_LargeTexture_get_piece_count>` **(** **)** const |
  19. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`Vector2<class_vector2>` | :ref:`get_piece_offset<class_LargeTexture_get_piece_offset>` **(** :ref:`int<class_int>` idx **)** const |
  21. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  22. | :ref:`Texture<class_texture>` | :ref:`get_piece_texture<class_LargeTexture_get_piece_texture>` **(** :ref:`int<class_int>` idx **)** const |
  23. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  24. | void | :ref:`set_piece_offset<class_LargeTexture_set_piece_offset>` **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` ofs **)** |
  25. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  26. | void | :ref:`set_piece_texture<class_LargeTexture_set_piece_texture>` **(** :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` texture **)** |
  27. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  28. | void | :ref:`set_size<class_LargeTexture_set_size>` **(** :ref:`Vector2<class_vector2>` size **)** |
  29. +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
  30. Description
  31. -----------
  32. A Texture capable of storing many smaller Textures with offsets.
  33. You can dynamically add pieces(Textures) to this fLargeTexture] using different offsets.
  34. Member Function Description
  35. ---------------------------
  36. .. _class_LargeTexture_add_piece:
  37. - :ref:`int<class_int>` **add_piece** **(** :ref:`Vector2<class_vector2>` ofs, :ref:`Texture<class_texture>` texture **)**
  38. Add another :ref:`Texture<class_texture>` to this :ref:`LargeTexture<class_largetexture>`, starting on offset "ofs".
  39. .. _class_LargeTexture_clear:
  40. - void **clear** **(** **)**
  41. Clear the :ref:`LargeTexture<class_largetexture>`.
  42. .. _class_LargeTexture_get_piece_count:
  43. - :ref:`int<class_int>` **get_piece_count** **(** **)** const
  44. Return the number of pieces currently in this :ref:`LargeTexture<class_largetexture>`.
  45. .. _class_LargeTexture_get_piece_offset:
  46. - :ref:`Vector2<class_vector2>` **get_piece_offset** **(** :ref:`int<class_int>` idx **)** const
  47. Return the offset of the piece with index "idx".
  48. .. _class_LargeTexture_get_piece_texture:
  49. - :ref:`Texture<class_texture>` **get_piece_texture** **(** :ref:`int<class_int>` idx **)** const
  50. Return the :ref:`Texture<class_texture>` of the piece with index "idx".
  51. .. _class_LargeTexture_set_piece_offset:
  52. - void **set_piece_offset** **(** :ref:`int<class_int>` idx, :ref:`Vector2<class_vector2>` ofs **)**
  53. Set the offset of the piece with index "idx" to "ofs".
  54. .. _class_LargeTexture_set_piece_texture:
  55. - void **set_piece_texture** **(** :ref:`int<class_int>` idx, :ref:`Texture<class_texture>` texture **)**
  56. Set the :ref:`Texture<class_texture>` of the piece with index "idx" to "ofs".
  57. .. _class_LargeTexture_set_size:
  58. - void **set_size** **(** :ref:`Vector2<class_vector2>` size **)**
  59. Set the size of this :ref:`LargeTexture<class_largetexture>`.