You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Add new scaling modes for splash screen
Removes the `fullsize` option which is superseded by `stretch_mode`. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
4979d9fc7b
commit
fcc9f5ce39
@@ -1510,7 +1510,16 @@ public:
|
||||
virtual void mesh_add_surface_from_mesh_data(RID p_mesh, const Geometry3D::MeshData &p_mesh_data);
|
||||
virtual void mesh_add_surface_from_planes(RID p_mesh, const Vector<Plane> &p_planes);
|
||||
|
||||
virtual void set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter = true) = 0;
|
||||
enum SplashStretchMode {
|
||||
SPLASH_STRETCH_MODE_DISABLED,
|
||||
SPLASH_STRETCH_MODE_KEEP,
|
||||
SPLASH_STRETCH_MODE_KEEP_WIDTH,
|
||||
SPLASH_STRETCH_MODE_KEEP_HEIGHT,
|
||||
SPLASH_STRETCH_MODE_COVER,
|
||||
SPLASH_STRETCH_MODE_EXPAND,
|
||||
};
|
||||
|
||||
virtual void set_boot_image(const Ref<Image> &p_image, const Color &p_color, RenderingServer::SplashStretchMode p_stretch_mode, bool p_use_filter = true) = 0;
|
||||
virtual void set_default_clear_color(const Color &p_color) = 0;
|
||||
|
||||
enum Features {
|
||||
@@ -1624,6 +1633,7 @@ VARIANT_ENUM_CAST(RenderingServer::CanvasLightShadowFilter);
|
||||
VARIANT_ENUM_CAST(RenderingServer::CanvasOccluderPolygonCullMode);
|
||||
VARIANT_ENUM_CAST(RenderingServer::GlobalVariableType);
|
||||
VARIANT_ENUM_CAST(RenderingServer::RenderingInfo);
|
||||
VARIANT_ENUM_CAST(RenderingServer::SplashStretchMode);
|
||||
VARIANT_ENUM_CAST(RenderingServer::Features);
|
||||
VARIANT_ENUM_CAST(RenderingServer::CanvasTextureChannel);
|
||||
VARIANT_ENUM_CAST(RenderingServer::BakeChannels);
|
||||
|
||||
Reference in New Issue
Block a user