kb1000
3fe276c02f
Stop including iostream in Variant.hpp (to produce smaller binaries)
2021-05-23 16:28:11 +02:00
George Marques
cba90d6301
Update clang-format to version 11
...
This is taken from the Godot repository, so formatting is similar. This
updates the style rules as well.
Also fix style in files to conform with this version.
2021-02-28 16:57:34 -03:00
Marc Gilleron
1f7f66d09e
Re-added clang-format checks to the CI
2021-02-03 22:04:45 +00:00
Hrishikesh
09df1fc9b5
Removed the redundant functions in CameraMatrix.hpp
2021-02-03 18:55:39 +05:30
Hrishikesh
8558d2360a
Removed redundant function definitions in CameraMatrix and used the ones in Math.hpp
2021-02-03 06:32:44 +05:30
Marc Gilleron
4c0763cd88
Revert comment, this raised another warning, and I could not find a pattern that works
2021-01-31 22:36:01 +00:00
Marc
b400dba875
Merge branch 'master' into container_leaks
2021-01-31 20:06:56 +00:00
Marc
05ba977cc6
Merge pull request #485 from colugomusic/fix-array-const
...
Fix constness of Array::find, Array::find_last and Array::rfind
2021-01-31 20:03:47 +00:00
Marc
e76efdd3ab
Merge pull request #481 from Zylann/vec_constants
...
Added missing constants to Vector2, Vector3, Basis and Quat
2021-01-31 20:02:06 +00:00
Marc
18e1b262ff
Merge pull request #480 from Zylann/ref_safer_cast
...
Use safer casts in Ref<T>
2021-01-31 20:01:12 +00:00
Marc
ffcdef965e
Merge pull request #479 from Zylann/fix_math_warnings
...
Fix some Math warnings
2021-01-31 19:58:10 +00:00
Marc
1aab5e3962
Merge branch 'master' into master
2021-01-31 19:32:56 +00:00
Marc Gilleron
fb71edd45b
Fix container and string leaks
...
Some functions return a new instance of such containers,
but instead we made a copy of them, without taking ownership of the
original created by the function.
Now we use a specific constructor taking ownership on the godot_* struct.
2021-01-07 01:05:12 +00:00
Colugo
38c9b624db
Fix constness of Array::find, Array::find_last and Array::rfind
2020-12-20 16:53:40 +00:00
Marc Gilleron
8e1cc29c66
Added missing constants to Vector2, Vector3, Basis and Quat
2020-12-08 23:35:17 +00:00
Marc Gilleron
2893c883f8
Use safer casts in Ref<T>
2020-12-08 22:10:59 +00:00
Marc Gilleron
deddacd6f7
Fix some Math warnings
2020-12-08 20:47:42 +00:00
Marc
43828ebb39
Merge pull request #459 from Silver1063/master
...
Added some missing Vector3 functions and Fixed Vector3 slide
2020-12-08 20:00:06 +00:00
Silver1063
96ae052e06
Added missing Vector3 slerp and Vector3 project
...
Vector3 slerp and Vector3 project were missing from godot cpp so I added them.
2020-10-11 17:31:23 -07:00
Silver1063
a733457285
Update Vector3 slide to match godot implementation
...
It wasn't the same before and resulted in weird behavior, its better now.
2020-10-11 15:47:01 -07:00
Marc Gilleron
67976ee47d
Remove the need to use GODOT_SUBCLASS
2020-09-12 17:38:46 +01:00
Marc
c9a740be34
Merge pull request #451 from Zylann/math
...
Added Godot's math functions
2020-09-08 19:31:54 +01:00
Marc Gilleron
0d1511695d
Added Godot's math functions
2020-09-04 02:14:45 +01:00
Marc
e5334579db
Merge branch 'master' into arcore_support
2020-08-31 15:05:09 +01:00
Marc
3f72f5a842
Merge pull request #447 from Zylann/rename_rid_get_id
...
Rename `RID::get_rid()` => `get_id()` to match Godot
2020-08-30 22:45:17 +01:00
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
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
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
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
Jummit
20fdc09c96
Add missing move_toward to Vector2 and Vector3
2020-07-15 17:05:54 +02:00
Duncan Sparks
5c96e5ede5
Fix alloca.h error in Defs.h
2020-06-17 15:24:08 -07: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 Gilleron
09c8bf94df
Rework the way custom class instances are created from C++
2020-06-02 19:33:56 +01: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
Marc Gilleron
0f4ea6cc35
Added missing Color operators
2020-05-29 20:38:14 +01:00
Marc Gilleron
9e37b873af
Fix alloca() not being included on some platforms
2020-03-31 19:16:45 +01:00
Mika Pi
2559c70e27
Fix compilation warnings about unused vars
2020-02-23 07:40:54 -08:00
NHodgesVFX
82476108ba
Fix Style Issues
2020-02-06 18:44:50 -05:00
NHodgesVFX
a2e6f7a5ef
Fix Vector's Bounce Reflect
...
Fixes Vector 2 and 3 bounce and reflect methods to match gdscript
Co-Authored-By: Bruno Campos <brunocu@msn.com>
Move calculation to reflect
fix commit
squash
fix style
2020-02-06 18:38:39 -05:00
sheepandshepherd
66c671b59d
Add C conversion constructors to fix leak of default-constructed empty arrays
2020-01-31 00:08:02 +01:00
2shady4u
9e573b6947
Added bounce to vector2.hpp
2019-12-27 14:28:42 +01:00
Fabio Alessandrelli
91e9262210
Add godot namespace to references in Defs macros.
...
Was causing failed builds when used outside of the godot namespace.
2019-10-24 13:52:23 +02:00
Bastiaan Olij
fc1fe720c3
Store all main entry points to the currently available APIs
2019-08-12 19:55:29 +10:00