mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
02ea99129e
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])
|