2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2018-01-25 08:50:56 +01:00
|
|
|
<class name="LargeTexture" inherits="Texture" category="Core" version="3.0-stable">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
|
|
|
A Texture capable of storing many smaller Textures with offsets.
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
A Texture capable of storing many smaller Textures with offsets.
|
2017-10-09 12:49:12 +02:00
|
|
|
You can dynamically add pieces([Texture]) to this [code]LargeTexture[/code] using different offsets.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<demos>
|
|
|
|
</demos>
|
|
|
|
<methods>
|
|
|
|
<method name="add_piece">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="ofs" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="texture" type="Texture">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Add another [Texture] to this [code]LargeTexture[/code], starting on offset "ofs".
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="clear">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Clears the [code]LargeTexture[/code].
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_count" qualifiers="const">
|
|
|
|
<return type="int">
|
|
|
|
</return>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Returns the number of pieces currently in this [code]LargeTexture[/code].
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_offset" qualifiers="const">
|
|
|
|
<return type="Vector2">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Returns the offset of the piece with index "idx".
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="get_piece_texture" qualifiers="const">
|
|
|
|
<return type="Texture">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Returns the [Texture] of the piece with index "idx".
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_offset">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="ofs" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Sets the offset of the piece with index "idx" to "ofs".
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_piece_texture">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="idx" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="texture" type="Texture">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Sets the [Texture] of the piece with index "idx" to "ofs".
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_size">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="size" type="Vector2">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2017-10-09 12:49:12 +02:00
|
|
|
Sets the size of this [code]LargeTexture[/code].
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|