Commit Graph

1066 Commits (2377f7ec7505645a328bec6ec91bf17aa4e471c3)

Author SHA1 Message Date
Fredia Huya-Kouadio 31b0ca80d5 Additions to the library to support the ARCore plugin 2020-08-23 14:11:47 -07:00
Marc ca800d63c8
Merge pull request #371 from NHodgesVFX/VectorBounceReflectFix
Fix Vector's Bounce Reflect
2020-08-23 22:04:31 +01:00
Marc Gilleron 469e9da86c Rename `RID::get_rid()` => `get_id()` to match Godot 2020-08-23 21:32:05 +01:00
Marc 824f4ef481
Merge pull request #416 from DuncanSparks/template_get_node
Add option to generate template version of Node::get_node
2020-08-23 20:28:44 +01:00
Duncan Sparks a2ebc8bbec
Update binding_generator.py 2020-08-23 10:30:27 -07:00
Duncan Sparks 6bca96ed42
Change default parameter to "yes" 2020-08-23 09:02:12 -07:00
Duncan Sparks bd72bd4d68
Fix redundant check in binding_generator.py 2020-08-23 09:01:23 -07:00
Marc 6c2e94710a
Merge pull request #420 from smeikx/fix-android-build
fix Android build command in README
2020-08-23 16:15:42 +01:00
Marc 0afb66c11a
Merge branch 'master' into fix-android-build 2020-08-23 16:14:16 +01:00
Marc 98839e1050
Merge pull request #445 from Zylann/fix_os_suffix
Replace ".os" with ".o" because it is "Object files" on Linux
2020-08-23 15:14:06 +01:00
Marc Gilleron 63066f2570 Replace ".os" with ".o" because it is "Object files" on Linux 2020-08-23 15:11:57 +01:00
Marc 19fa40591b
Merge pull request #365 from sheepandshepherd/class_ptr
Fix `cast_to` for non-exposed engine types
2020-08-16 23:30:52 +01:00
sheepandshepherd 33f9de16e4 Use godot_object_cast_to instead of TagDB to cast engine types 2020-08-17 00:05:57 +02:00
Duncan Sparks 2b14529de6
Merge branch 'master' into template_get_node 2020-08-16 14:50:32 -07:00
Marc 16000199c5
Merge pull request #415 from DuncanSparks/alloca_fix
Fix alloca.h error in Defs.h
2020-08-16 20:16:36 +01:00
Marc a3fe496ad6
Merge pull request #441 from TerraAr/master
Create an operator
2020-08-16 17:36:49 +01:00
TerraAr 7d347edb12
Updated operator
I've updated the operator that I had created to use the private constructor of the class.
2020-08-15 15:10:16 -03:00
Marc 756c1e1c79
Merge pull request #307 from aqnuep/string_memory_leak_fix
Fixed memory leak with String objects
2020-08-15 17:57:02 +01:00
Daniel Rakos 0939d0f6d1 Fixed memory leak with String objects
The member _godot_string should never be straight out overwritten ever without
first destroying the underlying string object's memory. This change solves the
problem through the introduction of a new private constructor to create String
objects with a pre-existing godot_string handle.
2020-08-15 09:46:23 +02:00
TerraAr 5e656923cf
Fixed operator
Fixed String::operator+=(const wchar_t). The problem was that a temporary variable don't have an address.
2020-08-14 23:32:38 -03:00
TerraAr a1ba843f36
Created operator.
Created String::operator+=(const wchar_t), that was mark as Todo.
2020-08-14 21:42:10 -03:00
Marc 36e0acb0d4
Merge pull request #297 from lupoDharkael/ignore
Update gitignore
2020-08-14 21:20:53 +01:00
Marc fe8f66eb76
Merge pull request #427 from Jummit/add-vector-move-toward
Add missing move_toward to Vector2 and Vector3
2020-08-14 21:10:48 +01:00
Bastiaan Olij cd69b58bb6
Merge pull request #433 from Zylann/fix_ref_in_object
Don't use Ref<T> in Object.hpp
2020-08-09 15:39:36 +10:00
Marc Gilleron 251062c9a5 Don't use Ref<T> in Object.hpp 2020-07-28 20:28:13 +01:00
Jummit 20fdc09c96 Add missing move_toward to Vector2 and Vector3 2020-07-15 17:05:54 +02:00
smeikx d808f04497 fix Android build command in README
Using `*-linux-android29-clang` results in errors, adding `++` fixes this.

Credits go to zhangshiqian1214:
https://github.com/godotengine/godot-cpp/issues/372#issuecomment-596079055
2020-06-30 22:27:13 +02:00
Duncan Sparks 3b16f34d89
Add option for template get_node 2020-06-17 15:34:49 -07:00
Duncan Sparks 5c96e5ede5
Fix alloca.h error in Defs.h 2020-06-17 15:24:08 -07:00
Marc 9eceb16f05
Merge pull request #304 from raymoo/patch-1
Allow registering base class methods for derived classes
2020-06-11 18:58:15 +01:00
raymoo 6f8d3d2c2a Allow registering base class methods for derived classes
Adds register_class_method, a variant of register_method where the user can
specify a derived class to register the method for.
2020-06-10 22:09:05 -05:00
Bastiaan Olij 2bb3a7e19c
Merge pull request #412 from Zylann/direction_to
Add missing Vector3::direction_to() and Vector2::direction_to()
2020-06-09 17:24:04 +10:00
Marc ceae5be727
Merge pull request #356 from sheepandshepherd/variantleak2
Add C conversion constructors and fix new leak
2020-06-05 21:16:37 +01:00
Marc Gilleron 78f5496f4b Add missing Vector3::direction_to() and Vector2::direction_to() 2020-06-05 19:07:56 +01:00
Marc 8a797e2c09
Merge pull request #408 from Zylann/custom_ref_rework
Rework the way custom class instances are created from C++
2020-06-05 18:54:14 +01:00
Marc Gilleron db941344e3 Fix default value of `bits` misnaming resulting library 2020-06-02 19:44:56 +01:00
Marc Gilleron 09c8bf94df Rework the way custom class instances are created from C++ 2020-06-02 19:33:56 +01:00
Rémi Verschelde eacffba9f5
Merge pull request #410 from akien-mga/travis-window-scons-3.1.2
Travis: Use SCons 3.1.2 on Windows
2020-06-02 15:59:04 +02:00
Rémi Verschelde 5f9c306e7c Travis: Use SCons 3.1.2 on Windows 2020-06-02 15:39:37 +02:00
Rémi Verschelde 1dc8feaeee
Merge pull request #409 from akien-mga/travis-clang-format-8
Travis: Use clang-format 8.0, update script
2020-06-02 15:03:19 +02:00
Rémi Verschelde eedda8beec Travis: Use clang-format 8.0, update script
Cf. https://github.com/godotengine/godot/pull/36350
2020-06-02 14:39:07 +02:00
Bastiaan Olij 165f1f30e8
Merge pull request #383 from Zylann/fix_alloca
Fix alloca() not being included on some platforms
2020-06-02 20:53:42 +10:00
Bastiaan Olij e2a5fdee3b
Merge pull request #406 from Zylann/color_operators
Added missing Color operators
2020-06-02 20:31:24 +10:00
Marc Gilleron 0f4ea6cc35 Added missing Color operators 2020-05-29 20:38:14 +01:00
Bastiaan Olij e97e866483
Merge pull request #393 from Calinou/improve-readme
Improve README
2020-04-18 18:55:08 +10:00
Bastiaan Olij 9ccbb809ff
Merge pull request #395 from m4gr3d/patch-1
Fix godot-cpp types registration
2020-04-17 14:31:48 +10:00
Fredia Huya-Kouadio 3747ffe871 Fix godot-cpp types registration
A initialization bug was causing the registration to occur prior to a key required field being set (see https://github.com/GodotNativeTools/godot-cpp/issues/394#issuecomment-613636985 for more details).

Fixes #394
2020-04-14 13:51:02 -07:00
Hugo Locurcio 66521bb416 Improve README
This improves the writing style and adds more information about
compiling for each platform.

This also adds an explicit mention that HTML5 and iOS don't support
GDNative yet.
2020-04-10 10:44:16 +02:00
Marc Gilleron 9e37b873af Fix alloca() not being included on some platforms 2020-03-31 19:16:45 +01:00
Bastiaan Olij c2f765e49c
Merge pull request #363 from sheepandshepherd/cpp_rules
Mention rules for using Godot classes in the readme
2020-03-19 21:37:27 +11:00