.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_LargeTexture: LargeTexture ============ **Inherits:** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- A Texture capable of storing many smaller Textures with offsets. Member Functions ---------------- +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`add_piece` **(** :ref:`Vector2` ofs, :ref:`Texture` texture **)** | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_piece_count` **(** **)** const | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_piece_offset` **(** :ref:`int` idx **)** const | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_piece_texture` **(** :ref:`int` idx **)** const | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_piece_offset` **(** :ref:`int` idx, :ref:`Vector2` ofs **)** | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_piece_texture` **(** :ref:`int` idx, :ref:`Texture` texture **)** | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_size` **(** :ref:`Vector2` size **)** | +--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Array` **_data** Description ----------- A Texture capable of storing many smaller Textures with offsets. You can dynamically add pieces(Textures) to this fLargeTexture] using different offsets. Member Function Description --------------------------- .. _class_LargeTexture_add_piece: - :ref:`int` **add_piece** **(** :ref:`Vector2` ofs, :ref:`Texture` texture **)** Add another :ref:`Texture` to this :ref:`LargeTexture`, starting on offset "ofs". .. _class_LargeTexture_clear: - void **clear** **(** **)** Clear the :ref:`LargeTexture`. .. _class_LargeTexture_get_piece_count: - :ref:`int` **get_piece_count** **(** **)** const Return the number of pieces currently in this :ref:`LargeTexture`. .. _class_LargeTexture_get_piece_offset: - :ref:`Vector2` **get_piece_offset** **(** :ref:`int` idx **)** const Return the offset of the piece with index "idx". .. _class_LargeTexture_get_piece_texture: - :ref:`Texture` **get_piece_texture** **(** :ref:`int` idx **)** const Return the :ref:`Texture` of the piece with index "idx". .. _class_LargeTexture_set_piece_offset: - void **set_piece_offset** **(** :ref:`int` idx, :ref:`Vector2` ofs **)** Set the offset of the piece with index "idx" to "ofs". .. _class_LargeTexture_set_piece_texture: - void **set_piece_texture** **(** :ref:`int` idx, :ref:`Texture` texture **)** Set the :ref:`Texture` of the piece with index "idx" to "ofs". .. _class_LargeTexture_set_size: - void **set_size** **(** :ref:`Vector2` size **)** Set the size of this :ref:`LargeTexture`.