mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Window transparency support on Android
Implements per-pixel transparency feature on Android. Allows plugins to do specific rendering and render godot UI on top (useful for camera support with drawing on top).
This commit is contained in:
parent
1cbb1f2796
commit
52fdb4ece9
7 changed files with 28 additions and 7 deletions
|
@ -2552,6 +2552,11 @@ void EditorExportPlatformAndroid::get_command_line_flags(const Ref<EditorExportP
|
|||
command_line_strings.push_back("--debug_opengl");
|
||||
}
|
||||
|
||||
bool translucent = ProjectSettings::get_singleton()->get("display/window/per_pixel_transparency/enabled");
|
||||
if (translucent) {
|
||||
command_line_strings.push_back("--translucent");
|
||||
}
|
||||
|
||||
if (command_line_strings.size()) {
|
||||
r_command_line_flags.resize(4);
|
||||
encode_uint32(command_line_strings.size(), &r_command_line_flags.write[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue