A Thousand Ships
34349b4ce0
Add support for getting argument count from `Callable`s
2024-02-13 12:12:19 +01: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
Andy Maloney
dbd43ac107
Fix a shadowed enum (EulerOrder)
...
Use the global constants.
2023-01-17 18:38:24 -05:00
Rémi Verschelde
931f1a3f34
Sync license copyright with upstream GH-70885
2023-01-10 16:15:31 +01:00
Ricardo Buring
d4e1dfe5dc
Add conversions between Variant and ObjectID
2023-01-01 21:27:08 +01:00
Rémi Verschelde
bab247dcb6
Rename godot-headers to gdextension, move header to top folder
...
Changes the `<godot/gdextension_interface.h>` include to simply
`<gdextension_interface.h>`.
Refactor and better document the SCons and CMake logic around setting
the paths to the header and API JSON file.
2022-12-14 12:36:59 +01:00
Gilles Roudière
c02e644679
Rename GDNative to GDExtension
...
Non-exhaustive list of case-sensitive renames:
GDExtension -> GDNative
GDNATIVE -> GDEXTENSION
gdextension -> gdnative
ExtensionExtension -> Extension (for where there was GDNativeExtension)
EXTENSION_EXTENSION -> EXTENSION (for where there was GDNATIVE_EXTENSION)
gdnlib -> gdextension
gdn_interface -> gde_interface
gdni -> gde_interface
2022-12-12 11:06:38 +01:00
Emmanuel Leblond
fe86a94dcf
Fix const qualifier for parameters in GDExtension api functions
2022-12-03 00:27:07 +01:00
Andy Maloney
c7e34c2f9d
Basic static analysis fixes
...
- remove extraneous semicolons
- use "nullptr" instead of "0"
- remove "break" after "return"
- use <cstdio> instead of <stdio.h>
2022-11-18 17:46:13 -05:00
Aaron Franke
1858e349c8
Update named colors to be in sync with the engine
2022-11-12 00:31:06 -06:00
Aaron Franke
592bd15c7a
Run scripts to format and make headers consistent
2022-10-09 01:47:07 -05:00
Aaron Franke
65eeb94f75
Update core data structures to match the engine
2022-10-07 11:27:41 -05: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
bruvzg
c001d0e5c7
Implement support for typed arrays.
2022-09-23 09:02:00 +03: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
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
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
Johannes Sinander
e7372cbe85
Add missing Vector4 function bindings
2022-09-18 11:27:49 +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