75 Commits

Author SHA1 Message Date
e72bc1a12f Merge pull request #1028 from asmaloney/fix-improper-conversion
Fix improper implicit conversion
2023-02-07 13:48:54 +01:00
b01f0cf99b ExampleRef::get_id() should be const 2023-02-02 13:01:31 -05:00
f2cb5a7414 Fix improper implicit conversion 2023-02-02 11:30:37 -05:00
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
40d3cfd97b Move Array:set_typed to internal GDExtension structure. 2023-01-30 13:27:25 +02:00
6528c7177f Fixed variant casting for enum and bitfield 2023-01-20 21:10:03 +03:00
abca497b72 Expose some low level functions and String operators. 2023-01-19 13:12:21 +02:00
c721b62c2f Fix spelling in demo script 2023-01-10 12:02:46 -05:00
931f1a3f34 Sync license copyright with upstream GH-70885 2023-01-10 16:15:31 +01:00
9fd33b5cde Allow method binds to take Object subclasses as arguments
As done in upstream Godot via GH-57205.

Add a test that ensures it works also for "gdextended" objects.
2023-01-10 12:55:41 +01:00
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
49a478a879 Merge pull request #949 from BastiaanOlij/fix_tests_refcounting
Change example code to properly test refcounted objects
2022-12-13 12:13:39 +01:00
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
f24ee56c5d Change example code to properly represent test cases with refcounted objects 2022-12-05 22:28:28 +11:00
fe86a94dcf Fix const qualifier for parameters in GDExtension api functions 2022-12-03 00:27:07 +01:00
fbf7f7bc36 Fix some type warnings in example 2022-11-16 16:43:44 -05:00
6e7a24d390 Fix Android build on macOS. 2022-11-10 15:20:15 +02:00
01960ffc9f Add support for virtual and abstract classes 2022-10-15 13:15:05 +02:00
592bd15c7a Run scripts to format and make headers consistent 2022-10-09 01:47:07 -05:00
64b2c9be0b [SCons] Refactor targets, symbols, optimizations.
Now matches Godot `master` target names and supports the same flags with
the following notable exceptions:
- The default target is "template_debug", since it's compatible with
  editor builds (and TOOLS_ENABLED is never used internally).
- separate_debug_symbols is still not supported, and will be done in a
  separate commit.
2022-10-04 16:05:40 +02:00
c001d0e5c7 Implement support for typed arrays. 2022-09-23 09:02:00 +03:00
36273baa7e Change PropertyInfo members to String. 2022-09-14 08:41:09 +03:00
3e97626b67 Add SelfList template 2022-09-13 11:33:12 +02:00
081d425277 [MSVC] Add NOMINMAX flag to scons and cmake.
Ensures user inclusion of windows.h do not define "min" and "max"
macros.
2022-09-12 13:12:55 +02:00
e272d92827 [Test] Add minimal test for templates inclusion.
We probably want to test more than just them being able to compile, but
this is a start.
2022-09-12 13:12:55 +02:00
446cacde15 Merge pull request #817 from akien-mga/test-project-public-domain 2022-09-07 13:07:57 +02:00
9220e9dd34 Relicense integration testing project under public domain/Unlicense
Fixes #813.
2022-08-22 18:20:11 +02:00
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
4c85682c9d Fix wrong filepaths in .gdextension, breaking the export 2022-08-07 16:48:00 +02:00
3cc1409210 Merge pull request #793 from bruvzg/v4_v4i_proj 2022-07-25 11:14:45 +02:00
91c56a0ad1 Add bindings for Vector4, Vector4i, Projection built-in types. 2022-07-21 09:36:38 +03:00
0ee980abae Rename OSX to macOS. 2022-07-20 11:01:47 +03:00
713b122b84 Add support for BitField hint, sync API files. 2022-07-11 15:00:17 +03:00
a0fcd8a735 Add windows x86_32 library to example gdextension. 2022-06-27 20:44:12 +02:00
e5c4351bc7 Unify bits, android_arch, macos_arch ios_arch into arch, support non-x86
Unify arguments and add support for ARM64 and RV64 Linux
2022-06-01 13:00:25 -05:00
031a83b0ea [Method Bind] Add support for default argument values and static method binding. Sync headers. 2022-05-06 10:17:51 +03:00
8bf5a532de Change registered initializers / terminators to the single function with level argument. 2022-05-04 11:14:51 +03:00
057a771fda Add support for variadic method binds with the typed return. Sync headers. 2022-03-30 15:11:28 +03:00
82bc102581 Sync misc/ scripts and hooks with upstream Godot 2022-03-15 10:18:33 +01:00
1632322ce0 Update copyright year 2022-03-15 10:17:53 +01:00
101d61b64a [master] Run black format on SConstruct files and bindings generator 2022-02-26 15:04:11 -06:00
df87396cf3 Merge branch 'master' of https://github.com/godotengine/godot-cpp into test_cmake_windows 2022-02-20 22:59:56 +01:00
b6b64bcd70 [macOS] Restore demo library output names. 2022-02-14 08:57:35 +02:00
dcc52f4321 Library SCons boilerplate to build projects.
Works by executing project `SConstruct`s file in a cloned env (a bit
like Godot does for modules) so you don't have to worry about platform
and toolchain setup.

Convert the project test file to work as submodule, add it to CI

Run with:

```
scons build_projects=test,/path/to/other/project
```
2022-02-10 01:44:48 +01:00
f227a0179f Fix Test CMake project for Windows and parametrize paths 2022-01-26 20:12:05 +01:00
a263344653 [Demo Project] Add macOS framework templates, update Scons build script and ".gdextension" file. 2022-01-11 10:42:04 +02:00
c5fd3d00d2 Test CMake project with CI (#518) 2021-12-24 01:29:21 +01:00
b008810c01 Implementing dictionary operators 2021-11-23 19:44:53 +11:00
5cacce7a26 Merge pull request #650 from BastiaanOlij/fix_compile_warnings 2021-11-22 12:22:24 +01:00
94efe3d410 Fixing compiler warnings around implicit type casting loosing precision 2021-11-22 21:48:20 +11:00