mirror of
https://github.com/godotengine/godot
synced 2024-09-05 06:08:26 +00:00
![BastiaanOlij](/assets/img/avatar_default.png)
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.
18 lines
359 B
Python
18 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])
|