2022-03-15 13:29:32 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2023-08-26 22:41:21 +02:00
|
|
|
<class name="LargeTexture" inherits="Texture" version="4.1">
|
2022-03-15 13:29:32 +01:00
|
|
|
<brief_description>
|
|
|
|
[i]Deprecated.[/i] A [Texture] capable of storing many smaller textures with offsets.
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
[i]Deprecated (will be removed in Godot 4.0).[/i] A [Texture] capable of storing many smaller textures with offsets.
|
|
|
|
You can dynamically add pieces ([Texture]s) to this [LargeTexture] using different offsets.
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_piece">
|
|
|
|
<return type="int" />
|
|
|
|
<argument index="0" name="ofs" type="Vector2" />
|
|
|
|
<argument index="1" name="texture" type="Texture" />
|
|
|
|
<description>
|
|
|
|
Adds [code]texture[/code] to this [LargeTexture], starting on offset [code]ofs[/code].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear">
|
|
|
|
<return type="void" />
|
|
|
|
<description>
|
|
|
|
Clears the [LargeTexture].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_count" qualifiers="const">
|
|
|
|
<return type="int" />
|
|
|
|
<description>
|
|
|
|
Returns the number of pieces currently in this [LargeTexture].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_offset" qualifiers="const">
|
|
|
|
<return type="Vector2" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<description>
|
|
|
|
Returns the offset of the piece with the index [code]idx[/code].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_texture" qualifiers="const">
|
|
|
|
<return type="Texture" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<description>
|
|
|
|
Returns the [Texture] of the piece with the index [code]idx[/code].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_offset">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<argument index="1" name="ofs" type="Vector2" />
|
|
|
|
<description>
|
|
|
|
Sets the offset of the piece with the index [code]idx[/code] to [code]ofs[/code].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_texture">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="idx" type="int" />
|
|
|
|
<argument index="1" name="texture" type="Texture" />
|
|
|
|
<description>
|
|
|
|
Sets the [Texture] of the piece with index [code]idx[/code] to [code]texture[/code].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_size">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="size" type="Vector2" />
|
|
|
|
<description>
|
|
|
|
Sets the size of this [LargeTexture].
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
2023-06-13 15:22:43 +02:00
|
|
|
<members>
|
|
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="false" />
|
|
|
|
</members>
|
2022-03-15 13:29:32 +01:00
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|