1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #96439 from darksylinc/matias-TheForge-pr03-rebased

Add Swappy & Pre-Transformed Swapchain
This commit is contained in:
Clay John
2024-10-29 12:34:40 -07:00
committed by GitHub
23 changed files with 1064 additions and 14 deletions

View File

@@ -216,6 +216,14 @@ DisplayServer::ScreenOrientation DisplayServerAndroid::screen_get_orientation(in
return (ScreenOrientation)orientation;
}
int DisplayServerAndroid::screen_get_internal_current_rotation(int p_screen) const {
GodotIOJavaWrapper *godot_io_java = OS_Android::get_singleton()->get_godot_io_java();
ERR_FAIL_NULL_V(godot_io_java, 0);
const int rotation = godot_io_java->get_internal_current_screen_rotation();
return rotation;
}
int DisplayServerAndroid::get_screen_count() const {
return 1;
}