| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2020-01-26 16:01:49 +01:00
										 |  |  | <class name="LargeTexture" inherits="Texture" version="3.2"> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 		A [Texture] capable of storing many smaller textures with offsets. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 		A [Texture] capable of storing many smaller textures with offsets. | 
					
						
							|  |  |  | 		You can dynamically add pieces ([Texture]s) to this [LargeTexture] using different offsets. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<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> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 				Adds [code]texture[/code] to this [LargeTexture], starting on offset [code]ofs[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="clear"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2019-03-29 23:37:35 +01:00
										 |  |  | 				Clears the [LargeTexture]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_piece_count" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="int"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2019-03-29 23:37:35 +01:00
										 |  |  | 				Returns the number of pieces currently in this [LargeTexture]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_piece_offset" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="Vector2"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="idx" type="int"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 				Returns the offset of the piece with the index [code]idx[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="get_piece_texture" qualifiers="const"> | 
					
						
							|  |  |  | 			<return type="Texture"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="idx" type="int"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 				Returns the [Texture] of the piece with the index [code]idx[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03: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> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 				Sets the offset of the piece with the index [code]idx[/code] to [code]ofs[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03: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> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 				Sets the [Texture] of the piece with index [code]idx[/code] to [code]texture[/code]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 		<method name="set_size"> | 
					
						
							|  |  |  | 			<return type="void"> | 
					
						
							|  |  |  | 			</return> | 
					
						
							|  |  |  | 			<argument index="0" name="size" type="Vector2"> | 
					
						
							|  |  |  | 			</argument> | 
					
						
							|  |  |  | 			<description> | 
					
						
							| 
									
										
										
										
											2019-03-29 23:37:35 +01:00
										 |  |  | 				Sets the size of this [LargeTexture]. | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 			</description> | 
					
						
							|  |  |  | 		</method> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							| 
									
										
										
										
											2019-09-03 13:44:58 +03:00
										 |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2019-09-24 13:34:03 +02:00
										 |  |  | 		<member name="flags" type="int" setter="set_flags" getter="get_flags" override="true" default="0" /> | 
					
						
							| 
									
										
										
										
											2019-09-03 13:44:58 +03:00
										 |  |  | 	</members> | 
					
						
							| 
									
										
										
										
											2017-09-12 17:42:36 -03:00
										 |  |  | 	<constants> | 
					
						
							|  |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |