summaryrefslogtreecommitdiffstats
path: root/include/core
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | Fix Style IssuesNHodgesVFX2020-02-062-2/+2
| | | |
| | * | Fix Vector's Bounce ReflectNHodgesVFX2020-02-062-4/+4
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Merge pull request #365 from sheepandshepherd/class_ptrMarc2020-08-161-13/+18
| |\ \ | | | | | | | | Fix `cast_to` for non-exposed engine types
| | * | Use godot_object_cast_to instead of TagDB to cast engine typessheepandshepherd2020-08-171-13/+18
| | | |
| * | | Merge pull request #415 from DuncanSparks/alloca_fixMarc2020-08-161-1/+3
| |\ \ \ | | |/ / | |/| | Fix alloca.h error in Defs.h
| | * | Fix alloca.h error in Defs.hDuncan Sparks2020-06-171-1/+3
| | | |
| * | | Merge pull request #307 from aqnuep/string_memory_leak_fixMarc2020-08-151-0/+3
| |\ \ \ | | | | | | | | | | Fixed memory leak with String objects
| | * | | Fixed memory leak with String objectsDaniel Rakos2020-08-151-0/+3
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | 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.
| * | | Add missing move_toward to Vector2 and Vector3Jummit2020-07-152-0/+14
| | |/ | |/|
* / | Additions to the library to support the ARCore pluginFredia Huya-Kouadio2020-08-232-1/+106
|/ /
* | Allow registering base class methods for derived classesraymoo2020-06-101-0/+7
| | | | | | | | | | Adds register_class_method, a variant of register_method where the user can specify a derived class to register the method for.
* | Merge pull request #412 from Zylann/direction_toBastiaan Olij2020-06-092-0/+12
|\ \ | | | | | | Add missing Vector3::direction_to() and Vector2::direction_to()
| * | Add missing Vector3::direction_to() and Vector2::direction_to()Marc Gilleron2020-06-052-0/+12
| | |
* | | Merge pull request #356 from sheepandshepherd/variantleak2Marc2020-06-052-0/+10
|\ \ \ | | | | | | | | Add C conversion constructors and fix new leak
| * | | Add C conversion constructors to fix leak of default-constructed empty arrayssheepandshepherd2020-01-312-0/+10
| | |/ | |/|
* | | Rework the way custom class instances are created from C++Marc Gilleron2020-06-021-44/+103
| |/ |/|
* | Merge pull request #383 from Zylann/fix_allocaBastiaan Olij2020-06-021-0/+5
|\ \ | | | | | | Fix alloca() not being included on some platforms
| * | Fix alloca() not being included on some platformsMarc Gilleron2020-03-311-0/+5
| |/
* / Added missing Color operatorsMarc Gilleron2020-05-291-0/+18
|/
* Added bounce to vector2.hpp2shady4u2019-12-271-0/+4
|
* Add godot namespace to references in Defs macros.Fabio Alessandrelli2019-10-241-6/+6
| | | | Was causing failed builds when used outside of the godot namespace.
* Store all main entry points to the currently available APIsBastiaan Olij2019-08-121-0/+8
|
* Merge pull request #296 from lupoDharkael/missingThomas Herzog2019-08-057-0/+53
|\ | | | | Add missing class methods
| * Add missing class methodslupoDharkael2019-08-057-0/+53
| |
* | Error message improvementsDaniel Rakos2019-05-152-76/+190
| | | | | | | | | | | | | | | | | | Changed error message macros to actually use Godot's error reporting facilities instead of outputting straight to stderr. This enables GDNative errors to actually show up inside the editor. Messages and set of available macros now also better matches that of the engine itself.
* | Merge pull request #270 from Windfisch/add-variant-castBastiaan Olij2019-05-021-0/+1
|\ \ | | | | | | Add a type conversion to Variant for anything that supports ___get_from_variant()
| * | Add a type conversion to Variant for anything that supports ↵Florian Jung2019-04-121-0/+1
| | | | | | | | | | | | ___get_from_variant()
* | | Merge pull request #271 from Windfisch/fix-register-propertyBastiaan Olij2019-05-021-4/+16
|\ \ \ | | | | | | | | Fix registering properties of reference-types by applying bruvzg's patch
| * | | Fix registering properties of reference-types by applying bruvzg's patchFlorian Jung2019-04-121-4/+16
| |/ / | | | | | | | | | | | | | | | | | | bruvzg's original comment with the patch is here: https://github.com/GodotNativeTools/godot-cpp/issues/237#issuecomment-465170294 Fixes #237.
* | | Fix snapped from Vector2RameshRavone2019-05-021-1/+5
| | |
* | | Fix #272RameshRavone2019-04-211-2/+2
| | |
* | | Merge pull request #266 from RameshRavone/pathch-1Bastiaan Olij2019-04-141-8/+8
|\ \ \ | | | | | | | | fix shadows template parameter
| * | | fix shadows template parameterRameshRavone2019-04-121-8/+8
| |/ /
* / / Fix bug in Basis [] operator and add missing Transform-Vector3 * operatorDaniel Rakos2019-04-112-1/+8
|/ / | | | | | | | | | | | | | | | | The [] operator of Basis was returning a reference to a temporary, so fixed it. There was no * operator in Transform equivalent to the xform function, which is not in line with GDScript behavior. Also fixed remaining cases where Transform relied on the old behavior of the [] operator of Basis (i.e. that it returns the row, not the column).
* | Make Basis look column-major while retaining a row-major representationDaniel Rakos2019-04-083-108/+636
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per https://github.com/godotengine/godot/issues/14553: Godot stores Basis in row-major layout for more change for efficiently taking advantage of SIMD instructions, but in scripts Basis looks like and is accessible in a column-major format. This change modifies the C++ binding so that from the script's perspective Basis does look like if it was column-major while retaining a row-major in-memory representation. This is achieved using a set of helper template classes which allow accessing individual columns whose components are non-continues in memory as if it was a Vector3 type. This ensures script interface compatibility without needing to transpose the Basis every time it is passed over the script-engine boundary. Also made most of the Vector2 and Vector3 class interfaces inlined in the process for increased performance. While unrelated (but didn't want to file a separate PR for it), this change adds the necessary flags to have debug symbol information under MSVC. Fixes #241.
* | Renamed Rect2::pos to Rect2::positionbruvzg2018-12-131-25/+25
| |
* | Fix tags/cast_to for custom subclasses.bruvzg2018-11-281-6/+10
|/
* Profiling supportMarcelo Fernandez2018-11-272-0/+36
|
* Fix NULL dereferencing in get_from_variant and cast_tobruvzg2018-11-261-1/+4
|
* Implementing clang-format and applying it to all classesBastiaan Olij2018-11-2424-850/+799
|
* Redid PR 190 for master now that nativescript 1.1 has been mergedBastiaan Olij2018-11-221-0/+8
|
* Add missing String::(r)find(n) form argumentbruvzg2018-11-181-2/+3
| | | | Add missing String::(*)casecmp_to functions
* Nativescript 1.1karroffel2018-11-079-48/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Fix clang warning: 'const' type qualifier on return type has no effectMarcelo Fernandez2018-06-231-3/+3
|
* Fix const for += operator in stringTimothy Werquin2018-05-151-1/+1
|
* Fix String const operators.Timothy Werquin2018-05-151-8/+8
| | | | Added const to various operators.
* Merge branch 'master' of https://github.com/GodotNativeTools/godot-cppNickolai Korshunov2018-04-258-7/+69
|\
| * Make all Pool*Array::operator[] as constGary Oberbrunner2018-03-131-7/+7
| | | | | | | | | | | | | | | | | | | | | | This is needed since that operator returns a local copy, not an lvalue. Attempting to write to the return value of these operators wouldn't change the array element. PoolVectors need locking when writing, so this operator can't return a writable reference. To update a Pool*Array, use the `set()` method which locks and unlocks the array. For multiple writes, use the `write()` method which returns a locked writable view, and unlocks when it goes out of scope.
| * adds variadic printing function, makes String.format custom placeholder workdanielytics2018-03-072-0/+8
| |
| * adds Array::make and Dictionary::make static methods and has variadic ↵danielytics2018-03-073-1/+12
| | | | | | | | template functions use those