diff options
author | hop311 <hop3114@gmail.com> | 2023-11-16 00:54:57 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-11-16 00:54:57 +0100 |
commit | 3490e740a7235dce236fc2ce973e5cbf64d6e727 (patch) | |
tree | 283c52e391c09ca8c4fb7ab6d81f4351c0fa7025 /extension/src/openvic-extension/utility/Utilities.hpp | |
parent | bc0b3c61ae0b742da304cada451fba1df72bb0ad (diff) |
Striped mapmodes
Diffstat (limited to 'extension/src/openvic-extension/utility/Utilities.hpp')
-rw-r--r-- | extension/src/openvic-extension/utility/Utilities.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/src/openvic-extension/utility/Utilities.hpp b/extension/src/openvic-extension/utility/Utilities.hpp index fc106db..752f495 100644 --- a/extension/src/openvic-extension/utility/Utilities.hpp +++ b/extension/src/openvic-extension/utility/Utilities.hpp @@ -42,6 +42,10 @@ namespace OpenVic::Utilities { return { vec.x, vec.y }; } + inline godot::Vector2 to_godot_fvec2(fvec2_t vec) { + return { vec.x, vec.y }; + } + godot::Ref<godot::Image> load_godot_image(godot::String const& path); godot::Ref<godot::FontFile> load_godot_font(godot::String const& fnt_path, godot::Ref<godot::Image> const& image); |