diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2023-12-19 04:17:20 -0600 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2023-12-19 04:44:05 -0600 |
commit | 646c71c2773b859b2e5f62d400dfe439164fe933 (patch) | |
tree | 0ef1729b60b2384599dd257db0c25e11a192f2ec /include | |
parent | 48afa82f29354668c12cffaf6a2474dabfd395ed (diff) | |
download | redot-cpp-646c71c2773b859b2e5f62d400dfe439164fe933.tar.gz |
Add PackedRealArray as an alias for PackedFloat(32/64)Array
Diffstat (limited to 'include')
-rw-r--r-- | include/godot_cpp/variant/variant.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/godot_cpp/variant/variant.hpp b/include/godot_cpp/variant/variant.hpp index fc41014..4b58642 100644 --- a/include/godot_cpp/variant/variant.hpp +++ b/include/godot_cpp/variant/variant.hpp @@ -356,6 +356,12 @@ String vformat(const String &p_text, const VarArgs... p_args) { #include <godot_cpp/variant/builtin_vararg_methods.hpp> +#ifdef REAL_T_IS_DOUBLE +using PackedRealArray = PackedFloat64Array; +#else +using PackedRealArray = PackedFloat32Array; +#endif // REAL_T_IS_DOUBLE + } // namespace godot #endif // GODOT_VARIANT_HPP |