Adding a new Camera Server implementation to Godot.
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.
This commit is contained in:
parent
0a3c21d999
commit
02ea99129e
67 changed files with 2384 additions and 5 deletions
|
|
@ -176,6 +176,9 @@ Error OS_Android::initialize(const VideoMode &p_desired, int p_video_driver, int
|
|||
input = memnew(InputDefault);
|
||||
input->set_fallback_mapping("Default Android Gamepad");
|
||||
|
||||
///@TODO implement a subclass for Android and instantiate that instead
|
||||
camera_server = memnew(CameraServer);
|
||||
|
||||
//power_manager = memnew(PowerAndroid);
|
||||
|
||||
return OK;
|
||||
|
|
@ -193,6 +196,9 @@ void OS_Android::delete_main_loop() {
|
|||
}
|
||||
|
||||
void OS_Android::finalize() {
|
||||
|
||||
memdelete(camera_server);
|
||||
|
||||
memdelete(input);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue