summaryrefslogtreecommitdiff
path: root/doc/classes/LargeTexture.xml
blob: 763b38f49e9e59fe3b354be3d79b0d186c853991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8" ?>
<class name="LargeTexture" inherits="Texture" category="Core" version="3.1">
	<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.
		You can dynamically add pieces([Texture]) to this [code]LargeTexture[/code] using different offsets.
	</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>
				Add another [Texture] to this [code]LargeTexture[/code], starting on offset "ofs".
			</description>
		</method>
		<method name="clear">
			<return type="void">
			</return>
			<description>
				Clears the [code]LargeTexture[/code].
			</description>
		</method>
		<method name="get_piece_count" qualifiers="const">
			<return type="int">
			</return>
			<description>
				Returns the number of pieces currently in this [code]LargeTexture[/code].
			</description>
		</method>
		<method name="get_piece_offset" qualifiers="const">
			<return type="Vector2">
			</return>
			<argument index="0" name="idx" type="int">
			</argument>
			<description>
				Returns the offset of the piece with index "idx".
			</description>
		</method>
		<method name="get_piece_texture" qualifiers="const">
			<return type="Texture">
			</return>
			<argument index="0" name="idx" type="int">
			</argument>
			<description>
				Returns the [Texture] of the piece with index "idx".
			</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>
				Sets the offset of the piece with index "idx" to "ofs".
			</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>
				Sets the [Texture] of the piece with index "idx" to  "ofs".
			</description>
		</method>
		<method name="set_size">
			<return type="void">
			</return>
			<argument index="0" name="size" type="Vector2">
			</argument>
			<description>
				Sets the size of this [code]LargeTexture[/code].
			</description>
		</method>
	</methods>
	<constants>
	</constants>
</class>