diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-03 14:17:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-03 14:17:05 +0100 |
commit | fa82664419f644c410980a045839ccbc7f483c22 (patch) | |
tree | d6d3f34cb68c0ff56b9dea8989589d27067295f9 /core | |
parent | b300411740fec6a761fd238dedbeb1e367945126 (diff) | |
parent | 1591677eb8b8a08a8e9c1308b73171f59c24d2b8 (diff) |
Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fix
Fixed antialiasing option for Polygon2D with concave/hollow shapes
Diffstat (limited to 'core')
-rw-r--r-- | core/class_db.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/class_db.h b/core/class_db.h index 01c4d341c6..34301d6cba 100644 --- a/core/class_db.h +++ b/core/class_db.h @@ -297,6 +297,15 @@ public: return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, ptr, 7); } + template <class N, class M> + static MethodBind *bind_method(N p_method_name, M p_method, const Variant &p_def1, const Variant &p_def2, const Variant &p_def3, const Variant &p_def4, const Variant &p_def5, const Variant &p_def6, const Variant &p_def7, const Variant &p_def8) { + + MethodBind *bind = create_method_bind(p_method); + const Variant *ptr[8] = { &p_def1, &p_def2, &p_def3, &p_def4, &p_def5, &p_def6, &p_def7, &p_def8 }; + + return bind_methodfi(METHOD_FLAGS_DEFAULT, bind, p_method_name, ptr, 8); + } + template <class M> static MethodBind *bind_vararg_method(uint32_t p_flags, StringName p_name, M p_method, const MethodInfo &p_info = MethodInfo(), const Vector<Variant> &p_default_args = Vector<Variant>(), bool p_return_nil_is_variant = true) { |