2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-11-05 14:02:42 +00:00
|
|
|
<class name="LargeTexture" inherits="Texture" version="3.5">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2021-04-28 14:21:43 +00:00
|
|
|
[i]Deprecated.[/i] A [Texture] capable of storing many smaller textures with offsets.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2021-04-28 14:21:43 +00:00
|
|
|
[i]Deprecated (will be removed in Godot 4.0).[/i] A [Texture] capable of storing many smaller textures with offsets.
|
2019-06-21 23:04:47 +00:00
|
|
|
You can dynamically add pieces ([Texture]s) to this [LargeTexture] using different offsets.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_piece">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="ofs" type="Vector2" />
|
|
|
|
<argument index="1" name="texture" type="Texture" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Adds [code]texture[/code] to this [LargeTexture], starting on offset [code]ofs[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-03-29 22:37:35 +00:00
|
|
|
Clears the [LargeTexture].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_count" qualifiers="const">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="int" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-03-29 22:37:35 +00:00
|
|
|
Returns the number of pieces currently in this [LargeTexture].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_offset" qualifiers="const">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="Vector2" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Returns the offset of the piece with the index [code]idx[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_texture" qualifiers="const">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="Texture" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Returns the [Texture] of the piece with the index [code]idx[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_offset">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<argument index="1" name="ofs" type="Vector2" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Sets the offset of the piece with the index [code]idx[/code] to [code]ofs[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_texture">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<argument index="1" name="texture" type="Texture" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-06-21 23:04:47 +00:00
|
|
|
Sets the [Texture] of the piece with index [code]idx[/code] to [code]texture[/code].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_size">
|
2021-07-30 13:28:05 +00:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="size" type="Vector2" />
|
2017-09-12 20:42:36 +00:00
|
|
|
<description>
|
2019-03-29 22:37:35 +00:00
|
|
|
Sets the size of this [LargeTexture].
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
2019-09-03 10:44:58 +00:00
|
|
|
<members>
|
2021-12-02 20:15:17 +00:00
|
|
|
<member name="flags" type="int" setter="set_flags" getter="get_flags" overrides="Texture" default="0" />
|
2019-09-03 10:44:58 +00:00
|
|
|
</members>
|
2017-09-12 20:42:36 +00:00
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|