mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add Stretch Modes for Splash Screen
Co-authored-by: Samuel Pedrajas <samuelpedrajaspz@gmail.com>
This commit is contained in:
parent
c7b1767560
commit
b6b3e1ef9e
16 changed files with 178 additions and 46 deletions
|
|
@ -45,6 +45,11 @@ RendererCompositor *RendererCompositor::create() {
|
|||
return _create_func();
|
||||
}
|
||||
|
||||
void RendererCompositor::set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter) {
|
||||
RenderingServer::SplashStretchMode stretch_mode = RenderingServer::map_scaling_option_to_stretch_mode(p_scale);
|
||||
set_boot_image_with_stretch(p_image, p_color, stretch_mode, p_use_filter);
|
||||
}
|
||||
|
||||
bool RendererCompositor::is_xr_enabled() const {
|
||||
return xr_enabled;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue