File: LargeTexture.xml

package info (click to toggle)
godot 3.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 270,588 kB
  • sloc: cpp: 971,579; ansic: 617,953; xml: 80,302; asm: 17,498; cs: 14,559; python: 11,744; java: 9,681; javascript: 4,654; pascal: 1,176; sh: 896; objc: 529; makefile: 176
file content (76 lines) | stat: -rw-r--r-- 2,699 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8" ?>
<class name="LargeTexture" inherits="Texture" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<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>
	<members>
		<member name="flags" type="int" setter="set_flags" getter="get_flags" overrides="Texture" default="0" />
	</members>
	<constants>
	</constants>
</class>