summaryrefslogtreecommitdiff
path: root/core/extension
AgeCommit message (Collapse)Author
2023-03-13Fix crash when dumping extension API in a non-writable directoryHaoyu Qiu
(cherry picked from commit 49400e0c1c2c745942133cd63daefad82608958c)
2023-02-08GDExtension: array_set_typed() accepts enum instead of uint32_tJan Haller
2023-02-08Use GDExtensionBool in GDExtension interfaceHaoyu Qiu
2023-02-07Expose `_err_print_error` with message parameter to GDExtensionMikael Hermansson
2023-02-06Remove unnecessary stdio.h from gdextension interfaceHaoyu Qiu
2023-01-31GDScript: Fix issues with typed arraysDmitrii Maganov
2023-01-30Move Array:set_typed to internal GDExtension structure and unexposed it.bruvzg
2023-01-26Add `GodotTypeInfo::Metadata` to `MethodInfo`Raul Santos
2023-01-19Fix use of `bool` in extension headerJan Haller
2023-01-19[GDExtension] Expose some low level functions and String operators.bruvzg
2023-01-14Add missing is_bitfield field for global enum in extension_api_dumpEmmanuel Leblond
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-19Merge pull request #65990 from ↵Rémi Verschelde
touilleMan/gdextension-expose-builtins-members-real-types Expose in builtins' members internal type & size (on top of offset) in extension_api.json
2022-12-15Expose in builtins' members internal type & size (on top of offset) in ↵Emmanuel Leblond
extension_api.json
2022-12-14Extension header: amend const correctness of `p_args` parametersJan Haller
A while ago, argument arrays were passed as const GDNativeTypePtr* (void* const*) This was changed to GDNativeConstTypePtr* (void const**), adding const on the value but removing it on the pointer level. This commit changes argument types to const GDExtensionConstTypePtr* (void const* const*). Besides object pointers, the same change is applied to variant pointers.
2022-12-13Improve logic around using Ref<T> with GDExtension virtual functionsBastiaan Olij
2022-12-12Rename all gdnative occurences to gdextensionGilles Roudière
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-06Merge pull request #67906 from groud/simpler_gdextension_configRémi Verschelde
Remove unnecessary checks when exporting gdextension binaries and allow using a prefix to auto-detect files
2022-12-02Fix const qualifier for parameters in GDExtension api functionsEmmanuel Leblond
2022-12-01Allow specifying a prefix to automatically detect library files for ↵Gilles Roudière
gdextension exports
2022-12-01Merge pull request #64427 from ↵Rémi Verschelde
touilleMan/gdextension-skip-undefined-field-in-properties [GDExtension] Skip unset getter/setter/index fields in class property
2022-12-01Merge pull request #64360 from ↵Rémi Verschelde
touilleMan/gdextension-correct-rect2-members-offsets-declaration [GDExtension] Correct Rect2 members offsets declaration in extension_api.json generator
2022-11-16Extension header: fix typos, documentation and member orderJan Haller
2022-11-12Skip unset getter/setter/index fields in class property when generating ↵Emmanuel Leblond
extension_api.json
2022-11-12Correct Rect2 members offsets declaration in extension_api.json generatorEmmanuel Leblond
2022-11-12Revert removal of ↵Emmanuel Leblond
GDNativeExtensionScriptInstanceInfo::get_property_type_func in GDExtension This function pointer is needed to stay close to internal Godot's ScriptInstance class. Besides, by removing this function pointer, we had to do property list create/free each time we want to access type which is quadratic complexity :/
2022-11-08Use StringName in the whole GDExtension API instead of const char *Emmanuel Leblond
2022-11-08Uses `StringName` in GDExtension perf critical instance creation & ↵Emmanuel Leblond
method/properties setter/getter
2022-11-07GDExtension: Ensure newline at EOFRémi Verschelde
2022-10-31Merge pull request #67309 from groud/implement_gdnative_interface_h_dumpRémi Verschelde
Implement a way to dump the gdnative_interface.h file from the executable
2022-10-16GDExtension: add support for abstract and virtual classesRicardo Buring
2022-10-13Merge pull request #67138 from touilleMan/gdextension-typed-enum-in-structRémi Verschelde
Use enum type in GDExtension info structs for better readability
2022-10-13Implement a way to dump the gdnative_interface.h file from the executableGilles Roudière
2022-10-10Fix extension_api.json Variant types incorrectly displayed as `Nil`Emmanuel Leblond
2022-10-10Remove unused `GDNativeExtensionClassObjectInstance` type def from GDExtensionEmmanuel Leblond
2022-10-09Use enum type in GDExtension info structs for better readabilityEmmanuel Leblond
2022-09-29Use `constexpr` in the conditions with template parameters and `sizeof`s to ↵bruvzg
suppress C4127 warnings.
2022-09-28[GDExtension] Use function names with underscore for TextServer extension, ↵bruvzg
add macros to generate wrappers for module functions.
2022-09-23Merge pull request #65817 from bruvzg/typed_arrayRémi Verschelde
2022-09-22[GDExtension] Implement support for typed arrays.bruvzg
2022-09-22Fix various -Wmaybe-uninitialized warnings from GCC 12.2.1Rémi Verschelde
Not sure why I didn't get those before, it may be due to upstream changes (12.2.1 is a moving target, it's basically 12.3-dev), or simply rebuilding Godot from scratch with different options.
2022-09-21Merge pull request #66181 from touilleMan/extension_api_dump-correct-keyedRémi Verschelde
Fix is_keyed param in extension_api.json
2022-09-21Fix hash mismatch error print in gdextension's gdnative_classdb_get_method_bindEmmanuel Leblond
2022-09-21Fix is_keyed param in extension_api.jsonEmmanuel Leblond
2022-09-15Move some methods to Animation from Variant for refactoringSilc Renew
2022-08-29Rename String `plus_file` to `path_join`Aaron Franke
2022-08-23Merge pull request #64690 from ↵Rémi Verschelde
touilleMan/projection-members-offsets-in-gdentension-api
2022-08-22Ignore fake properties in classes when generating extension_api.jsonEmmanuel Leblond
In extension_api.json we want to expose properties that are meant to access a class attribute from script (i.e. `Node2D.position`). However property system is also used in Godot to declare attributes accessible from the node editor: - property with '/' in their name - property array with NIL type that represents an array
2022-08-21Add missing Projection's members offsets to gdextension_api.jsonEmmanuel Leblond