aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic-extension/Utilities.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic-extension/Utilities.hpp')
-rw-r--r--extension/src/openvic-extension/Utilities.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/extension/src/openvic-extension/Utilities.hpp b/extension/src/openvic-extension/Utilities.hpp
index 68e72d2..f789f84 100644
--- a/extension/src/openvic-extension/Utilities.hpp
+++ b/extension/src/openvic-extension/Utilities.hpp
@@ -22,7 +22,11 @@ namespace OpenVic::Utilities {
}
inline godot::Color to_godot_color(colour_t colour) {
- return { colour_byte_to_float((colour >> 16) & 0xFF), colour_byte_to_float((colour >> 8) & 0xFF), colour_byte_to_float(colour & 0xFF) };
+ return {
+ colour_byte_to_float((colour >> 16) & 0xFF),
+ colour_byte_to_float((colour >> 8) & 0xFF),
+ colour_byte_to_float(colour & 0xFF)
+ };
}
inline godot::Vector2i to_godot_ivec2(ivec2_t vec) {
@@ -31,9 +35,10 @@ namespace OpenVic::Utilities {
godot::Ref<godot::Image> load_godot_image(godot::String const& path);
- void draw_pie_chart(godot::Ref<godot::Image> image,
- godot::Array const& stopAngles, godot::Array const& colours, float radius,
+ void draw_pie_chart(
+ godot::Ref<godot::Image> image, godot::Array const& stopAngles, godot::Array const& colours, float radius,
godot::Vector2 shadow_displacement, float shadow_tightness, float shadow_radius, float shadow_thickness,
- godot::Color trim_colour, float trim_size, float gradient_falloff, float gradient_base,
- bool donut, bool donut_inner_trim, float donut_inner_radius);
+ godot::Color trim_colour, float trim_size, float gradient_falloff, float gradient_base, bool donut,
+ bool donut_inner_trim, float donut_inner_radius
+ );
}