mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server. Other parts of Godot can interact with this to obtain images from the camera as textures. This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			359 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			359 B
		
	
	
	
		
			Python
		
	
	
	
	
	
#!/usr/bin/env python
 | 
						|
 | 
						|
Import('env')
 | 
						|
 | 
						|
env.servers_sources = []
 | 
						|
env.add_source_files(env.servers_sources, "*.cpp")
 | 
						|
 | 
						|
SConscript('arvr/SCsub')
 | 
						|
SConscript('camera/SCsub')
 | 
						|
SConscript('physics/SCsub')
 | 
						|
SConscript('physics_2d/SCsub')
 | 
						|
SConscript('visual/SCsub')
 | 
						|
SConscript('audio/SCsub')
 | 
						|
 | 
						|
lib = env.add_library("servers", env.servers_sources)
 | 
						|
 | 
						|
env.Prepend(LIBS=[lib])
 |