Fabio Alessandrelli
c4f1abe3f9
[Bindings] Build profile now strips methods and skip files
...
This allows removing dependencies that are not explicitly unused by the
gdextension being built and is implemented using an intermediate json
API file with the methods and classes stripped (i.e. without touching
the file generators).
2025-01-07 20:33:12 +01:00
Lukas Tenbrink
daef7d48ea
Add variant_internal.hpp.
...
This module contains VariantInternalType, VariantInternal, VariantGetInternalPtr, VariantInternalAccessor and VariantDefaultInitializer, allowing to access and manipulate Variant's internal values.
2024-11-28 15:15:03 +01:00
David Snopek
259c757cce
Merge pull request #1609 from Ivorforce/patch-3
...
Rename Vector4.components -> coords.
2024-10-30 14:51:04 -05:00
Lukas Tenbrink
23c9d41d2a
Rename Vector4.components -> coords.
...
The use of .components is deprecated.
2024-10-30 15:44:44 +01:00
David Snopek
688ed4b388
Merge pull request #1626 from ruffenman/remove-unimplemented-variant-functions
...
Remove unimplemented static variant functions 'blend' and 'interpolate'…
2024-10-30 08:49:38 -05:00
David Snopek
fa3dfa0e3c
Merge pull request #1591 from dsnopek/variant-object-instance-id
...
Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
2024-10-29 13:10:12 -05:00
David Snopek
2004af63a0
Sync `Quaternion` with the version in Godot
2024-10-28 15:37:45 -05:00
David Snopek
0602c32986
Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
2024-10-17 09:58:52 -05:00
ruffenman
42a35a1852
Remove unimplemented static variant functions 'blend' and 'interpolate'. If a user attempts to call either of these it will introduce a linker error and it may not be immediately clear to them why. Also, variant interpolation can already be accessed via 'UtilityFunctions::lerp', making at least the interpolate function unecessary here.
2024-10-14 20:33:20 -04:00
Florent Guiocheau
02fd535454
Add p_use_model_front to Basis::looking_at()
2024-10-14 21:50:12 +02:00
Thaddeus Crews
2ffff669f5
Implement typed dictionaries
2024-09-17 15:05:16 -05:00
Aaron Franke
92e6ea7303
Fix missing type info for PackedVector4Array
2024-08-10 21:21:13 -07:00
David Snopek
99926d8e20
Merge pull request #1483 from AThousandShips/arr_typed_fix
...
Fix sharing of typed arrays from constructor
2024-06-28 07:26:44 -05:00
David Snopek
7d7799b56e
Merge pull request #1504 from Repiteo/pre-commit-hooks
...
Replace legacy hooks with `pre-commit` Python tool
2024-06-25 09:42:55 -05:00
Thaddeus Crews
e0d363aad8
Integrate `.pre-commit-config.yaml`
2024-06-24 15:43:55 -05:00
Chris Cranford
78b63203d4
Add missing enum & ctor for PackedVector4Array implementation
2024-06-19 11:21:11 -04:00
A Thousand Ships
41aa71f8c3
Fix sharing of typed arrays from constructor
2024-06-06 16:40:10 +02:00
David Snopek
43be24f34c
Merge pull request #1437 from AThousandShips/vec_elem_scalar
...
Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
2024-05-07 12:55:23 -05:00
A Thousand Ships
d389171905
[Math] Add `is_finite` methods
2024-04-11 13:30:28 +02:00
A Thousand Ships
b65970860e
Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`
...
Also added `snapped` to the integer vectors for completeness
2024-04-11 10:42:29 +02:00
David Snopek
44d78ec881
Merge pull request #1409 from Repiteo/class-to-typename
...
Enforce template syntax `typename` over `class`
2024-04-02 14:30:01 -05:00
David Snopek
a62f633ceb
Merge pull request #1379 from dsnopek/uninitialized-value-mk2
...
Avoid creating most objects that Godot is going to use placement new to initialize
2024-03-14 11:06:59 -05:00
A Thousand Ships
fb79d5ff98
Add support for getting argument count from `Callable`s
2024-03-14 10:27:39 +01:00
Thaddeus Crews
87f5fb0691
Enforce template syntax `typename` over `class`
2024-03-10 16:02:43 -05:00
David Snopek
c4fde852e6
Avoid creating most objects that Godot is going to use placement new to initialize
2024-02-26 10:36:16 -06:00
Allen Pestaluky
349b5a3146
Added newer Variant types to `typed_array.hpp`
...
This is a companion commit to the godot PR https://github.com/godotengine/godot/pull/87992 which fixes https://github.com/godotengine/godot/issues/87991
Also undefines typed array templates after use to match Godot's typed_array.h
2024-02-06 13:53:38 -05:00
David Snopek
0145e900f3
Merge pull request #1357 from bruvzg/cpp_64
...
Switch to 64-bit ints.
2024-01-19 12:15:55 -06:00
A Thousand Ships
3943e41d2f
Fix `AABB.encloses` failing on shared upper bound
2024-01-12 18:08:40 +01:00
bruvzg
59a5a8b104
Switch to 64-bit ints.
2024-01-10 15:36:36 +02:00
A Thousand Ships
f037a697eb
Add missing `OP_POWER` operator to `Variant`
2024-01-06 21:12:52 +01:00
Jakub Mateusz Marcowski
b733102f4a
Add `Vector2i/3i/4i` methods: `distance_to` and `distance_squared_to`
2024-01-03 11:45:05 +01:00
Aaron Franke
646c71c277
Add PackedRealArray as an alias for PackedFloat(32/64)Array
2023-12-19 04:44:05 -06:00
David Snopek
f426b12b5b
Fix comparison of `Callable`s from callable_mp() of the same method
2023-11-17 12:49:53 -06:00
David Snopek
4439a4a569
Merge pull request #1280 from dsnopek/callable-custom
...
Add `CallableCustom` that devs can use in their GDExtensions
2023-11-17 12:48:39 -06:00
Thaddeus Crews
bcac96c8c2
Add missing int→Variant conversions
2023-11-08 09:45:53 -06:00
David Snopek
d33bd47219
Add `CallableCustom` that devs can use in their GDExtensions
2023-11-06 00:09:06 -06:00
Martin Capitanio
a926b96103
clang: Add CallableCustomMethodPointerBase virtual destructor
...
Fixes #1272
+ clang++ (debian v16/v17) warning:
destructor called on
'godot::CallableCustomMethodPointerBase' that is abstract but has non-virtual destructor
[-Wdelete-abstract-non-virtual-dtor]
2023-10-19 09:37:11 +02:00
Mikael Hermansson
6e05b978b8
Declare explicit specializations for `CharStringT`
2023-10-12 16:00:48 +02:00
David Snopek
c18c1916c3
Implement `callable_mp()` and `callable_mp_static()`
2023-09-21 15:17:50 -05:00
Matthew Murphy
ca3e25de04
Fix variant call compiler error
...
Co-authored-by: David Snopek <dsnopek@gmail.com>
2023-09-09 11:30:29 -05:00
David Snopek
8990d5a40e
Merge pull request #1091 from Daylily-Zeleen/daylily-zeleen/implement_builtin_classes_vararg_methods
...
Implement vararg methods of builtin classes.
2023-09-02 08:04:29 -05:00
A Thousand Ships
52eb77efd4
Add remaining component-wise `min/max` functions to `Vector*`
2023-08-16 13:52:51 +02:00
Daylily-Zeleen
3536803e9e
Implement vararg methods of builtin classes.
2023-07-03 17:30:42 +08:00
David Snopek
4df112cd95
Attempt to fully implement CharString
2023-06-22 21:03:30 -05:00
bruvzg
37f6e35974
Update typed array API to match "GDScript: Fix typed arrays".
2023-01-31 11:28:55 +02: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
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
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