Commit Graph

1286 Commits (77f1d228cd84051bcd60ce7792e25884902920a9)

Author SHA1 Message Date
Bastiaan Olij bcc39bbf4b
Merge pull request #212 from BastiaanOlij/fix_sconstruct
Fixing a few typos in SConstruct
2018-11-28 11:06:32 +11:00
Bastiaan Olij d3d78df0b5 Fixing a few typos in SConstruct 2018-11-28 11:05:27 +11:00
bruvzg 0af05a45ce
Fix tags/cast_to for custom subclasses. 2018-11-28 00:08:45 +02:00
Bastiaan Olij 295950efd4
Merge pull request #208 from willnationsdev/scons
Replace ARGUMENTS with opts.Add/env and some cleanup
2018-11-28 08:52:38 +11:00
Bastiaan Olij 6fb835c312
Merge pull request #174 from marcelofg55/profiling_data
Profiling support
2018-11-28 08:50:42 +11:00
Marcelo Fernandez 209dd56cb0 Profiling support 2018-11-27 09:45:56 -03:00
Bastiaan Olij f4476351f0
Merge pull request #207 from bruvzg/more_nulls
Fix NULL dereferencing in get_from_variant and cast_to
2018-11-27 09:25:47 +11:00
bruvzg be5a012ff7
Fix NULL dereferencing in get_from_variant and cast_to 2018-11-26 08:11:31 +02:00
Will Nations 7dff130849 Replace ARGUMENTS with opts.Add/env and some cleanup 2018-11-25 23:29:30 -06:00
Bastiaan Olij 5225ab2bac
Merge pull request #206 from BastiaanOlij/add_clang_format
Implementing clang-format and applying it to all classes
2018-11-26 11:24:59 +11:00
Bastiaan Olij fc20fa3fce Implementing clang-format and applying it to all classes 2018-11-24 09:09:41 +11:00
Bastiaan Olij 0a6f5d052a
Merge pull request #205 from BastiaanOlij/advance_godot_headers
Hopefully last time for awhile, new godot_headers
2018-11-24 07:58:22 +11:00
Bastiaan Olij 73b661cd6c Hopefully last time for awhile, new godot_headers 2018-11-24 07:56:19 +11:00
Bastiaan Olij 1d3dbf2c51
Merge pull request #204 from bruvzg/fix_ref_2_variant
Fix NULL pointer dereferencing on uninstantiated Ref<T>() conversion to Variant
2018-11-24 07:54:02 +11:00
bruvzg c2b59773af
Fix NULL pointer dereferencing on uninstantiated Ref<T>() conversion to Variant 2018-11-22 23:41:33 +02:00
Bastiaan Olij f10ce0a6be
Merge pull request #203 from BastiaanOlij/new_godot_headers
Update submodule to latest godot_headers
2018-11-22 22:24:03 +11:00
Bastiaan Olij e7de09f1ce Update submodule to latest godot_headers 2018-11-22 22:23:24 +11:00
Bastiaan Olij 5ce458b50a
Merge pull request #202 from BastiaanOlij/redo_190
Redid PR 190 for master now that nativescript 1.1 has been merged
2018-11-22 22:19:17 +11:00
Bastiaan Olij d7982cfac3 Redid PR 190 for master now that nativescript 1.1 has been merged 2018-11-22 22:14:28 +11:00
Bastiaan Olij 8ffda12b83
Merge pull request #201 from bruvzg/ptrcall_fix_null_args
Fix passing NULL pointers as arguments via ptrcall
2018-11-22 21:29:44 +11:00
bruvzg 715d1dc82b
Fix passing NULL pointers as arguments via ptrcall 2018-11-19 22:40:31 +02:00
Bastiaan Olij 5f3d6bc233
Merge pull request #198 from bruvzg/fix_str_find_and_cmp
Add missing String::find from argument, and missing String::casecmp_to functions
2018-11-19 21:29:39 +11:00
Bastiaan Olij cec7c2a223
Merge pull request #197 from bruvzg/fix_icall_int64_and_tagbd_reg
Fix ptrcall int size and TagDB registration for classes with "_" in the name.
2018-11-19 21:29:03 +11:00
Bastiaan Olij e83fd994f8
Merge pull request #199 from BastiaanOlij/fix_xform
Redid kirsanium xform fix
2018-11-19 21:20:18 +11:00
Bastiaan Olij 987cca0d4d Redid kirsanium xform fix 2018-11-19 21:16:01 +11:00
bruvzg 39445f144c
Add missing String::(r)find(n) form argument
Add missing String::(*)casecmp_to functions
2018-11-18 14:37:06 +02:00
bruvzg ec5d718191
Fix TagDB registration for classes with underscore in the name. 2018-11-17 18:25:12 +02:00
bruvzg 700310c8c3
Fix ptrcall passing invalid size int. 2018-11-17 18:23:52 +02:00
Bastiaan Olij d6a8885e31
Merge pull request #195 from BastiaanOlij/branch_info
Added info about the older branches to the README.md
2018-11-07 21:49:53 +11:00
Bastiaan Olij b7ee774a59 Added info about the older branches to the README.md 2018-11-07 21:48:16 +11:00
Bastiaan Olij d0d18ca704
Merge pull request #194 from BastiaanOlij/nativescript-1.1-rebased
Nativescript 1.1 rebased
2018-11-07 21:29:40 +11:00
karroffel 200bf226bf Nativescript 1.1
implemented instance binding data usage

This commit changes the way C++ wrapper classes work.
Previously, wrapper classes were merely wrapper *interfaces*.
They used the `this` pointer to store the actual foreign Godot
Object.

With the NativeScript 1.1 extension it is now possible to have
low-overhead language binding data attached to Objects.

The C++ bindings use that feature to implement *proper* wrappers
and enable regular C++ inheritance usage that way.

Some things might still be buggy and untested, but the C++
SimpleDemo works with those changes.

new and free change, custom free will crash engine, be wary

fix exporting of non-object types

fix free() crash with custom resources

added type tags and safe object casting

fix global type registration order

fix cast_to

changed build system to be more self contained

updated .gitignore

use typeid() for type tags now

fix indentation in bindings generator

remove accidentally added files

fix gitignore

Fixed up registering tool and updated godot_headers

Fix crash when calling String::split/split_floats

Was casting to the wrong object type.
Also adds parse_ints function to String with the same logic

Better warning/error macros

Change gitignore so we get our gen folders

New documentation based on nativescript 1.1

Fixed GODOT_SUBCLASS macro

Preventing crash when function returned null ptr

Adds needed include <typeinfo>

 Solves this issue #168 due to not having the include of typeinfo

Fix compile error of 'WARN_PRINT' and 'ERR_PRINT'.

cannot pass non-trivial object of type 'godot::String' to variadic function; expected type from format string was 'char *' [-Wnon-pod-varargs]

update vector3::distance_to

Remove godot_api.json as its now in the godot_headers submodule (api.json)
2018-11-07 21:23:08 +11:00
Thomas Herzog 1729360e6e
Merge pull request #192 from marcelofg55/win32_fix
Fix Windows 32 bits builds producing 64 bits code
2018-10-26 08:51:52 +02:00
Marcelo Fernandez 13f4f0e8f8 Fix Windows 32 bits builds producing 64 bits code 2018-10-25 13:35:33 -03:00
Bastiaan Olij f52cc4c964
Merge pull request #183 from Acclution/master
Fix issue where Vector2::normalize() did not normalize correctly
2018-09-09 17:59:39 +10:00
Christoffer ffb087caed Fix issue where Vector2::normalize() did not normalize correctly 2018-09-03 19:19:56 +02:00
Thomas Herzog 72d227dd1c
Merge pull request #171 from Calinou/improve-buildsystem
Improve the build system
2018-08-17 12:09:23 +02:00
Hugo Locurcio 46fe7ada03
Improve the build system
- The SCons option system is now used for validation
- An help message can now be displayed using `scons -h`
- New `use_mingw` option to compile using MinGW on Windows
- Removed `arch` in favor of `bits`
- Renamed `headers` to `headers_dir`
- Built libraries now contain the target in the file name
2018-08-17 12:01:16 +02:00
Bastiaan Olij 499300ea6a
Merge pull request #153 from BastiaanOlij/update_godot_headers_20180725
Update godot_headers to latest master (Godot 3.1)
2018-07-25 21:38:09 +10:00
Bastiaan Olij 4ea54ad58e Update godot_headers to latest master (Godot 3.1) 2018-07-25 21:36:00 +10:00
Thomas Herzog 09409f5c37
Merge pull request #152 from joealam/master
(README) Fix misleading typo regarding generate_bindings
2018-07-23 09:22:08 +02:00
Joe Alam 50c9ed60b1 Fix misleading typo regarding generate_bindings 2018-07-20 23:23:49 +01:00
Thomas Herzog 02bb4ffad9
Merge pull request #145 from BastiaanOlij/json_303
Added godot_api.json from official 3.0.3 release
2018-07-06 14:36:22 +02:00
Thomas Herzog 88ec502970
Merge pull request #148 from marcelofg55/fix_return_const
Fix clang warning: 'const' type qualifier on return type has no effect
2018-06-24 00:11:39 +02:00
Marcelo Fernandez baddc2ae66 Fix clang warning: 'const' type qualifier on return type has no effect 2018-06-23 12:15:53 -03:00
Thomas Herzog 5b7fff2bf0
Merge pull request #147 from Kowbell/master
Update README.md to include compilation error fix
2018-06-20 10:31:58 +02:00
Kowbell 2bed3eeb49 Update README.md to include compilation error fix
A PR and issue were already submitted related to this but they are dead
in the water for other reasons. I needed this fix as well, so I assume this isn't a one-off
error and that this information may be helpful to others.
2018-06-19 20:06:35 -04:00
Bastiaan Olij 0c3fd55458 Added godot_api.json from official 3.0.3 release 2018-06-15 23:12:51 +10:00
Thomas Herzog 74d0106a76
Merge pull request #139 from BastiaanOlij/fix_submodule
fix submodule link
2018-06-04 15:08:55 +02:00
Bastiaan Olij c60a249862 fix submodule link 2018-06-04 21:56:49 +10:00