Commit Graph

1390 Commits (ee9acbcf109486eec3827d84ff033387762bccb7)

Author SHA1 Message Date
Daylily-Zeleen a614f61015 Fix global enum cast and add Varint::Type cast. 2023-02-02 16:42:15 +08:00
Rémi Verschelde f2b97528c1
gdextension: Sync with upstream commit c40020513ac8201a449b5ae2eeb58fef0ce0a2a4 (4.0-beta17) 2023-02-01 22:25:07 +01:00
Rémi Verschelde 6d4d18a4fa
Merge pull request #1026 from bruvzg/typed_arr_ref
Update typed array API to match "GDScript: Fix typed arrays".
2023-01-31 10:41:27 +01:00
bruvzg 37f6e35974
Update typed array API to match "GDScript: Fix typed arrays". 2023-01-31 11:28:55 +02:00
Rémi Verschelde 014eda2535
Revert "gdextension: Sync with upstream commit 551f5191e5dbc1d1a43f99b13d5dbbf7f598dc58 + PR 69248"
This reverts commit 1166783725.

It's not as simple as I thought, needs some local changes too.
2023-01-30 19:42:53 +01:00
Rémi Verschelde 552f1383bf
Merge pull request #977 from asmaloney/binding-cleanup
Binding generator cleanups
2023-01-30 19:39:52 +01:00
Rémi Verschelde 1166783725
gdextension: Sync with upstream commit 551f5191e5dbc1d1a43f99b13d5dbbf7f598dc58 + PR 69248
Needed for that PR to pass CI.
https://github.com/godotengine/godot/pull/69248
2023-01-30 19:39:22 +01:00
Andy Maloney 2d5e5c0fd6 Binding generator cleanups
- remove unused vars
- fix a few f-strings
- remove f-string notation where not used
2023-01-30 10:57:26 -05:00
Rémi Verschelde d177752be1
Merge pull request #982 from WildRackoon/templates-add-LocalVector
Add missing local_vector.hpp template
2023-01-30 12:32:13 +01:00
Rémi Verschelde c1d4fb2b68
Merge pull request #1023 from mashumafi/fix-alloc-order
Move DefaultTypedAllocator after memdelete
2023-01-30 12:32:07 +01:00
Rémi Verschelde f59fd96ab4
Merge pull request #1013 from bruvzg/set_typed_move
Move Array:set_typed to internal GDExtension structure.
2023-01-30 12:31:38 +01:00
Rackoon 1df83331de
Add missing LocalVector template
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-30 12:30:34 +01:00
bruvzg 40d3cfd97b
Move Array:set_typed to internal GDExtension structure. 2023-01-30 13:27:25 +02:00
Rémi Verschelde 2ef10f9754
Merge pull request #956 from DmitriySalnikov/enum_bitfield_cast
Fixed `VARIANT_ENUM/BITFIELD_CAST` to show the correct names
2023-01-30 12:07:15 +01:00
mashumafi a8be6aa8dd Move allocator to after memdelete 2023-01-29 23:29:31 -05:00
Rémi Verschelde 0f3a0913f1
Merge pull request #1018 from vnen/typed-array-constructor
Support typed array default values in extension API
2023-01-28 19:43:04 +01:00
George Marques 1c625befa3
Support typed array default values in extension API
The API JSON has changed syntax for default values of typed arrays. This
detects the new format and use initializer lists (currently empty since
the TypedArray class does not support initializer list construction and
default values are always empty arrays).
2023-01-28 14:01:27 -03:00
George Marques 64be8c1507
Use std type traits instead of intrinsics
This removes warnings and mimics what has been done in Godot itself.
2023-01-28 13:59:34 -03:00
Rémi Verschelde a8d8485060
gdextension: Sync with upstream commit 518b9e5801a19229805fe837d7d0cf92920ad413 (4.0-beta16) 2023-01-27 17:02:22 +01:00
Rémi Verschelde ae1afba8d1
gdextension: Sync with upstream commit 4fa6edc888cfacd5346bf08afa14b5f5a9bd6d0c (4.0-beta15) 2023-01-25 08:34:39 +01:00
Mikael Hermansson 6b92eda819 Added missing `string.hpp` include in `transform2d.cpp` 2023-01-22 17:35:24 +01:00
Mikael Hermansson d174b47e51 Update error macros to match core 2023-01-22 14:24:57 +01:00
Rémi Verschelde 1909113889
gdextension: Sync with upstream commit 28a24639c3c6a95b5b9828f5f02bf0dc2f5ce54b (4.0-beta14) 2023-01-20 23:03:13 +01:00
Rémi Verschelde 00b29630ba
Merge pull request #1003 from akien-mga/fix-sign-0
Change behavior of Math::sign to match Godot builtin
2023-01-20 23:02:13 +01:00
Дмитрий Сальников 6528c7177f Fixed variant casting for enum and bitfield 2023-01-20 21:10:03 +03:00
Fabio Alessandrelli 860182fe01
Merge pull request #1006 from asmaloney/fix-sign-comparisons-class_db
Fix sign comparison warnings in class_db.cpp
2023-01-19 16:11:33 +01:00
Fabio Alessandrelli 12c6099737
Merge pull request #1005 from asmaloney/fix-sign-comparisons
Fix some sign comparison warnings
2023-01-19 15:50:06 +01:00
Andy Maloney 1ae0147aad Fix sign comparison warnings in class_db.cpp
Part of #999
2023-01-19 08:30:08 -05:00
Andy Maloney e6b636cc51 Fix sign comparison warnings in method_bind.hpp
Part of #999
2023-01-19 08:26:02 -05:00
Rémi Verschelde 2a9b21e46a
Merge pull request #1004 from asmaloney/remove-unused-ucaps
Remove unused ucaps header
2023-01-19 13:55:29 +01:00
Rémi Verschelde 07e2e20f7b
Merge pull request #939 from bruvzg/gde_low_level_funcs_cpp
Expose some low level functions and String operators.
2023-01-19 13:55:24 +01:00
Rémi Verschelde 04731d2b78
Merge pull request #965 from WildRackoon/fix-GDCLASS-fwddeclaration
Fix GDCLASS needs explicit ClassDB fwd declaration
2023-01-19 13:55:14 +01:00
Rémi Verschelde 952bde1db3
Merge pull request #1002 from asmaloney/cmake-system-includes
{cmake} Add GODOT_CPP_SYSTEM_HEADERS option to mark includes as SYSTEM
2023-01-19 13:55:08 +01:00
Rémi Verschelde b0f9ca7918
Merge pull request #808 from Calinou/readme-add-branch-warning
Add a more prominent warning about repository branches in README
2023-01-19 13:55:01 +01:00
Fabio Alessandrelli 2eb375e486
Merge pull request #998 from asmaloney/fix-virtual-destructor
"Wrapped" has virtual functions so it should have a virtual destructor.
2023-01-19 13:27:42 +01:00
Andy Maloney 67be0c95e1 Remove unused ucaps header
These static structs were being included in every file string.hpp was included in...

Part of #999
2023-01-19 07:15:40 -05:00
bruvzg abca497b72
Expose some low level functions and String operators. 2023-01-19 13:12:21 +02:00
Andy Maloney 5dd2928790 "Wrapped" has virtual functions so it should have a virtual destructor.
Deleting an object through a pointer to a base class is undefined behaviour unless the destructor in the base class is virtual.
2023-01-19 05:57:17 -05:00
Fabio Alessandrelli 69b525494b
Merge pull request #1001 from Faless/ext/basis_abs
Fix Basis::scaled_orthogonal using incorrect abs function.
2023-01-19 10:16:51 +01:00
Fabio Alessandrelli 3d74e661b7
Merge pull request #1000 from Faless/ext/variant_can_convert
Fix Variant::can_convert[_strict] returning gibberish.
2023-01-19 10:16:10 +01:00
Erik Abair d3f17c1dca
Change behavior of Math::sign to match Godot builtin
Fixes #551.
2023-01-19 09:47:13 +01:00
Andy Maloney 1351710a18 {cmake} Add GODOT_CPP_SYSTEM_HEADERS option to mark includes as SYSTEM
From the cmake docs:

"This may have effects such as suppressing warnings or skipping the contained headers in dependency calculations (see compiler documentation). Additionally, system include directories are searched after normal include directories regardless of the order specified."

Addresses part of #999
2023-01-18 21:15:34 -05:00
Fabio Alessandrelli 72a7c61750 Fix Basis::scaled_orthogonal using incorrect abs function. 2023-01-19 02:53:53 +01:00
Fabio Alessandrelli d64d97cb17 Fix Variant::can_convert[_strict] returning gibberish.
An uninitialized value was being returned instead of the function return
value.
2023-01-19 02:17:53 +01:00
Rémi Verschelde cf3d995e8c
Merge pull request #997 from asmaloney/fix-shadow-eulerorder
Fix a shadowed enum (EulerOrder)
2023-01-18 18:36:21 +01:00
Rémi Verschelde 0dfe0d0166
Merge pull request #983 from rburing/variant_to_from_objectid
Add conversions between `Variant` and `ObjectID`
2023-01-18 11:41:57 +01:00
Andy Maloney dbd43ac107 Fix a shadowed enum (EulerOrder)
Use the global constants.
2023-01-17 18:38:24 -05:00
Rémi Verschelde cb15429e4a
gdextension: Sync with upstream commit caacade569eb7a541aaa7a8cdc3eedffca1422d9 (4.0-beta13) 2023-01-17 18:52:05 +01:00
Rémi Verschelde 6f2bba3630
Merge pull request #991 from asmaloney/fix-spelling
Fix spelling in demo script
2023-01-17 11:32:58 +01:00
Rémi Verschelde b21026e061
Merge pull request #950 from DmitriySalnikov/typed-ptr-method-call-support-and-ref-class-name
Added property info for Object's and Ref's and ported the implementation of the `check` method
2023-01-17 11:31:54 +01:00