| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
					
						
							| 
									
										
										
										
											2020-02-12 09:59:06 +01:00
										 |  |  | <class name="CameraTexture" inherits="Texture2D" version="4.0"> | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 	<brief_description> | 
					
						
							| 
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 |  |  | 		Texture provided by a [CameraFeed]. | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 	</brief_description> | 
					
						
							|  |  |  | 	<description> | 
					
						
							| 
									
										
										
										
											2020-01-23 11:14:14 +01:00
										 |  |  | 		This texture gives access to the camera texture provided by a [CameraFeed]. | 
					
						
							|  |  |  | 		[b]Note:[/b] Many cameras supply YCbCr images which need to be converted in a shader. | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 	</description> | 
					
						
							|  |  |  | 	<tutorials> | 
					
						
							|  |  |  | 	</tutorials> | 
					
						
							|  |  |  | 	<methods> | 
					
						
							|  |  |  | 	</methods> | 
					
						
							|  |  |  | 	<members> | 
					
						
							| 
									
										
										
										
											2019-06-29 12:38:01 +02:00
										 |  |  | 		<member name="camera_feed_id" type="int" setter="set_camera_feed_id" getter="get_camera_feed_id" default="0"> | 
					
						
							| 
									
										
										
										
											2019-06-22 01:04:47 +02:00
										 |  |  | 			The ID of the [CameraFeed] for which we want to display the image. | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2019-06-29 12:38:01 +02:00
										 |  |  | 		<member name="camera_is_active" type="bool" setter="set_camera_active" getter="get_camera_active" default="false"> | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 			Convenience property that gives access to the active property of the [CameraFeed]. | 
					
						
							|  |  |  | 		</member> | 
					
						
							| 
									
										
										
										
											2019-06-29 12:38:01 +02:00
										 |  |  | 		<member name="which_feed" type="int" setter="set_which_feed" getter="get_which_feed" enum="CameraServer.FeedImage" default="0"> | 
					
						
							| 
									
										
										
										
											2017-08-21 00:17:24 +10:00
										 |  |  | 			Which image within the [CameraFeed] we want access to, important if the camera image is split in a Y and CbCr component. | 
					
						
							|  |  |  | 		</member> | 
					
						
							|  |  |  | 	</members> | 
					
						
							|  |  |  | 	<constants> | 
					
						
							|  |  |  | 	</constants> | 
					
						
							|  |  |  | </class> |