aboutsummaryrefslogtreecommitdiff
path: root/extension/src/Utilities.hpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-14 09:52:25 +0200
committer Hop311 <hop3114@gmail.com>2023-09-14 09:52:25 +0200
commit70c040d042cb536e5ce16b0cfff0e0afa39e8ed7 (patch)
tree559681d5a2569adc307409d818311760edc12654 /extension/src/Utilities.hpp
parent9dc8c3c89a86b8be2084890f3207adc6c9cda496 (diff)
Logger::warning, format cleanup + req comments
Diffstat (limited to 'extension/src/Utilities.hpp')
-rw-r--r--extension/src/Utilities.hpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/extension/src/Utilities.hpp b/extension/src/Utilities.hpp
deleted file mode 100644
index afd65c0..0000000
--- a/extension/src/Utilities.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-
-#include <godot_cpp/classes/image.hpp>
-
-#include "openvic-simulation/types/Colour.hpp"
-
-#define ERR(x) ((x) ? OK : FAILED)
-
-namespace OpenVic {
-
- inline std::string godot_to_std_string(godot::String const& str) {
- return str.ascii().get_data();
- }
-
- inline godot::String std_to_godot_string(std::string const& str) {
- return str.c_str();
- }
-
- 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) };
- }
-
- 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,
- 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);
-}