Rémi Verschelde
0eba81ef79
Merge pull request #876 from Daylily-Zeleen/Daylily-Zeleen/master
...
Add detail infos for binding error message.
2022-10-07 22:25:49 +02:00
Mikael Hermansson
40d181d2f3
Bind enums in built-in types and expose bindings for global constants
2022-10-06 11:16:17 +02:00
Rémi Verschelde
50a534bf55
Merge pull request #880 from aaronfranke/struct
...
Use `struct` instead of `class` for core structures
2022-10-05 10:35:59 +02:00
Rémi Verschelde
91afc08de1
Merge pull request #855 from Zylann/fix_issue854_virtual_methods
...
Fix deriving a custom class with virtual methods
2022-10-05 10:35:54 +02:00
Aaron Franke
0455f72ede
Use struct instead of class for core structures
2022-10-05 01:46:15 -05:00
Rémi Verschelde
d25cae9b61
Merge pull request #859 from aaronfranke/basis-transform-quat
...
Update Basis/Transform3D/Quaternion to match the engine
2022-10-04 16:39:46 +02:00
Aaron Franke
fc879c04c8
Update Vector4/4i to match the engine
2022-10-01 21:09:05 -05:00
Aaron Franke
d479208a8f
Update Vector2/2i/3/3i to match the engine
2022-10-01 21:09:05 -05:00
daylilyzeleen
3e91ec1729
Add detail infos for binding error message.
2022-09-30 15:16:43 +08:00
bruvzg
c001d0e5c7
Implement support for typed arrays.
2022-09-23 09:02:00 +03:00
Marc Gilleron
5de2c059d1
Fix deriving a custom class with virtual methods
2022-09-21 19:31:30 +01:00
Aaron Franke
e83d472c00
Update Basis/Transform3D/Quaternion to match the engine
2022-09-20 01:07:45 -05:00
Aaron Franke
e26a75cd0c
Rename Basis "elements" to "rows"
...
https://github.com/godotengine/godot/pull/60627
2022-09-19 18:22:52 -05:00
Aaron Franke
e30c858c5d
Rename Transform2D "elements" to "columns"
...
https://github.com/godotengine/godot/pull/60627
2022-09-19 18:22:52 -05:00
Aaron Franke
7ba459ae7b
Add integer posmod and rename range_lerp to remap
...
https://github.com/godotengine/godot/pull/23310
https://github.com/godotengine/godot/pull/65361
2022-09-19 03:09:59 -05:00
Aaron Franke
9a2e8d907b
Add pingpong and fract methods to Math
...
https://github.com/godotengine/godot/pull/53819
2022-09-19 03:09:59 -05:00
Aaron Franke
b11ff9d876
Replace stepify with snapped
...
https://github.com/godotengine/godot/pull/44586
2022-09-19 03:09:59 -05:00
Aaron Franke
d20c4200db
Update cubic interpolation methods to match core
...
https://github.com/godotengine/godot/pull/64924
https://github.com/godotengine/godot/pull/63602
https://github.com/godotengine/godot/pull/62458
2022-09-19 03:09:38 -05:00
Aaron Franke
942cd466ed
Split is_equal_approx into float and double versions to match Godot
...
https://github.com/godotengine/godot/pull/48882
2022-09-19 02:47:27 -05:00
Rémi Verschelde
3450a1ab16
Merge pull request #847 from ninfur/issue-65997
...
Add missing Vector4 function bindings
2022-09-19 09:31:23 +02:00
Rémi Verschelde
03d1120d6a
Merge pull request #850 from Zylann/transform_local
...
Add Transform3D `translated_local`, `rotated_local`, `scaled_local`
2022-09-19 09:30:11 +02:00
Rémi Verschelde
d910b72cb7
Merge pull request #851 from Zylann/quat_to_quaternion
...
Use `quaternion` instead of `quat` in method names
2022-09-19 09:29:57 +02:00
Marc Gilleron
c543a3cbe1
Add Transform3D `translated_local`, `rotated_local`, `scaled_local`
2022-09-18 23:04:38 +01:00
Marc Gilleron
a35994ce7b
Use `quaternion` instead of `quat` in method names
2022-09-18 22:44:18 +01:00
Marc Gilleron
99c004f689
Add `Object::cast_to` for `const Object*`
2022-09-18 22:23:49 +01:00
Johannes Sinander
e7372cbe85
Add missing Vector4 function bindings
2022-09-18 11:27:49 +02:00
Rémi Verschelde
3276688c82
Merge pull request #844 from Zylann/fix_get_const
...
Fix issues with `_get` and `_get_property_list`
2022-09-16 08:48:00 +02:00
Marc Gilleron
6f3bdab090
Fix issues with `_get` and `_get_property_list`
...
`_get` was using `_set` internally, and should be `const`.
`_get_property_list` should be `const`.
2022-09-15 23:46:50 +01:00
bruvzg
36273baa7e
Change PropertyInfo members to String.
2022-09-14 08:41:09 +03:00
Ricardo Buring
3e97626b67
Add SelfList template
2022-09-13 11:33:12 +02:00
Fabio Alessandrelli
43cdc2e037
Update hashfuncs, add some missing math funcs.
2022-09-11 13:11:52 +02:00
Rémi Verschelde
862d1f1fdd
Merge pull request #823 from Faless/fix/godot_namespace_requirement
2022-09-02 09:16:59 +02:00
Fabio Alessandrelli
bcf27d8af4
Ensure GDCLASS can be used outside the godot namespace.
...
The `GDCLASS` macro should not assume to be called inside the `godot`
namespace and should thus prefix function calls for that namespace with
`::godot::` to ensure proper namespace referencing.
2022-09-01 04:11:23 +02:00
Zhehang Ding
6d1073d867
Basis constructor: row vectors -> column vectors
...
https://github.com/godotengine/godot-proposals/issues/5295
2022-08-31 19:06:07 -07:00
bruvzg
270ad28931
Add support for `_notification`, `_set`, `_get`, `_get_property_list`, `_property_can_revert`, `_property_get_revert`, and `_to_string` methods.
2022-08-22 12:59:38 +03:00
Yuri Sizov
fa111d7078
Add support for `property_*_revert` methods
2022-08-18 16:43:01 +03:00
Kevin Smith
fd8173f109
Allow GDCLASS in own namespaces
...
The unqualified ClassDB friending was causing (at least for me on
VS2022) an implicit forward declaration of ClassDB in the namespace
of my class, instead of using the godot namespaced one. By qualifying
the namespace, this compiles for me.
Test-Information:
My project builds now.
2022-07-31 11:54:40 +01:00
Fabio Alessandrelli
78cbae910d
Fix "_instance_bindings != nullptr" for Wrapped objects.
...
This is an attempt to make the lifecycle of wrapped objects clearer.
Godot keeps track of bindings' userdata for each object it creates.
This allows allocating the memory of the wrapper only once per object
even if that object is passed multiple times between binding code and
godot code.
The binding information is composed of multiple functions, this includes
a callback for when the userdata is to be allocated (called once) and
for when the userdata is to be deallocated (again, called once).
When allocating data with "memnew" we set the object bindings during the
postinitialize phase, but surely we shouldn't do that when allocating
the userdata as a result of bindings callback themselves.
Additionally, since we let Godot handle (and track) raw memory
allocation and de-allocation, we need to manually call the deconstructor
of the wrapper class during the free callback, to ensure that its
non-trivial members are correctly de-initialized.
2022-07-29 02:36:12 +02:00
Fabio Alessandrelli
8d4de1b537
Merge pull request #677 from lukas-toenne/fix_object_ptr_args
...
Fixed pointer indirection in the PtrToArg template for Object arguments.
2022-07-29 01:17:34 +02:00
DNKpp
95574c1b11
fix: Object::cast_to checks provided object for nullptr
2022-07-26 00:41:57 +02:00
bruvzg
91c56a0ad1
Add bindings for Vector4, Vector4i, Projection built-in types.
2022-07-21 09:36:38 +03:00
Rémi Verschelde
8772a7faca
Merge pull request #686 from ondy-personal/patch-1
2022-07-18 15:48:17 +02:00
bruvzg
713b122b84
Add support for BitField hint, sync API files.
2022-07-11 15:00:17 +03:00
Alessandro Famà
d894f48f25
Fix crash when using static methods without return value
2022-07-03 17:00:43 +02:00
Fabio Alessandrelli
5bbcd42378
Fix GDN_EXPORT define with mingw.
...
This commit changes the platform detection order to detect mingw
compiling for windows (which defines `__GNUC__`).
This commit also wraps the definition around a guard so it can be
overridden via a define at build-time.
2022-06-18 14:38:18 +02:00
bruvzg
e3119e7d05
Sync containers with new HashMap/HashSet, sync API headers.
2022-06-06 12:18:07 +03:00
Teodor Potancok
5c32dc3948
Cast `Variant::Type` to `GDNativeVariantType`
2022-05-17 07:01:43 +02:00
bruvzg
031a83b0ea
[Method Bind] Add support for default argument values and static method binding. Sync headers.
2022-05-06 10:17:51 +03:00
bruvzg
e06d5cd414
Add double precision build support.
2022-05-04 15:56:35 +03:00
bruvzg
8bf5a532de
Change registered initializers / terminators to the single function with level argument.
2022-05-04 11:14:51 +03:00