summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_call.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #46476 from DarknessCatt/masterRémi Verschelde2021-04-281-0/+10
|\ | | | | Add fill method to Arrays and PackedArrays
| * Add fill method to Arrays and PackedArraysMatheus Lima Cunha2021-04-211-0/+10
| |
* | Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-1/+1
|/ | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* Remove return value type adjust of builtin method callsGeorge Marques2021-04-161-33/+0
| | | | | Make calls faster with the caveat that the caller needs to make sure that the return value type is already correct.
* Add marshalling to PackedByteArrayreduz2021-04-101-41/+304
| | | | | | | -Decode/Encode functions for u8,s8,u16,s16,u32,s32,u64,s64,half,float,double,variant -Improved binder template to allow this Given in Godot 4.0 PackedByteArray is passed as reference, it is now possible to have these functions there, which makes the most sense.
* Rename Array.invert() to Array.reverse()Marcel Admiraal2021-03-211-10/+10
| | | | | Does the same internally for List and Vector<>, which includes all PackedArray types.
* Merge pull request #46378 from reduz/static-method-in-variant-typesRémi Verschelde2021-03-161-1/+156
|\ | | | | Add static method support to core Variant types
| * Add static method support to core Variant typesreduz2021-03-161-1/+156
| | | | | | | | | | | | * Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
* | Merge pull request #45545 from abaire/relaxes_gltf_name_sanitizationRémi Verschelde2021-03-091-0/+2
|\ \ | |/ |/| Relaxes node name sanitization in gltf documents.
| * Relaxes Node naming constraints in glTF documents to match the Editor.abaire2021-02-241-0/+2
| |
* | Use Vector3.UP as a default value for look_at's up vectorAaron Franke2021-02-161-1/+1
| |
* | Added signed_angle_to for Vector3JestemStefan2021-02-161-0/+1
|/
* Change sort_custom/bsearch_custom to use Callableskobewi2021-02-041-2/+2
|
* Unify URI encoding/decoding and add to C#Aaron Franke2021-01-281-4/+2
| | | | http_escape and percent_encode have been unified into uri_encode, and http_unescape and percent_decode have been unified into uri_decode.
* Make hex_to_int and bin_to_int handle the prefix automaticallyAaron Franke2021-01-281-2/+2
| | | Also add BinToInt to C#
* Merge pull request #45489 from aaronfranke/coreRémi Verschelde2021-01-271-1/+1
|\ | | | | Type consistencies in core
| * Type consistencies in coreAaron Franke2021-01-261-1/+1
| |
* | Renamed String.ord_at to unicode_atYuri Roubinsky2021-01-261-1/+1
|/
* Remove Quat set methods in favour of constructorsMarcel Admiraal2021-01-261-4/+0
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Merge pull request #44586 from madmiraal/rename-stepifyRémi Verschelde2020-12-281-2/+2
|\ | | | | Rename Math::stepify to snapped
| * Rename Math::stepify to snappedMarcel Admiraal2020-12-281-2/+2
| |
* | Merge pull request #44149 from madmiraal/rename-tangent-orthogonalRémi Verschelde2020-12-281-1/+1
|\ \ | | | | | | Rename Vector2.tangent() to Vector2.orthogonal()
| * | Rename Vector2.tangent() to Vector2.orthogonal()Marcel Admiraal2020-12-061-1/+1
| | |
* | | Rename Rect2 and Rect2i grow_margin() to grow_side()Marcel Admiraal2020-12-281-4/+4
| |/ |/|
* | Rename empty() to is_empty()Marcel Admiraal2020-12-281-12/+12
| |
* | Add helper count function to VariantGeorge Marques2020-12-271-0/+12
| | | | | | | | | | | | To get counts of items before getting the list, which is useful for GDNative so users can pre-allocate the buffer with the correct size without having to get the list twice.
* | Merge pull request #44472 from winterpixelgames/PR-duplicate-packedarraysRémi Verschelde2020-12-211-0/+9
|\ \ | | | | | | Add support for duplicate() for Packed*Array, and they are pass by ref in godot 4.0
| * | packed*arrays are pass by ref now. support duplicate and update documentationJordan Schidlowsky2020-12-171-0/+9
| | |
* | | Rename Rect2 and Rect2i clip() to intersection()Marcel Admiraal2020-12-191-2/+2
|/ /
* / Improve argument names for core typesAaron Franke2020-12-071-12/+12
|/
* [Complex Text Layouts] Implement TextServer interface. Implement Fallback ↵bruvzg2020-11-261-2/+2
| | | | TextServer.
* Fix variant getters not setting return typeGeorge Marques2020-11-201-24/+3
| | | | | | The validated getters were only setting the value without changing the type, leading to wrong results. This uses the same path used for methods to the same purpose.
* Fix return type on builtin validated callsGeorge Marques2020-11-181-2/+27
| | | | | Before it was being set to the base type instead of the actual return type.
* Remove empty lines around braces with the formatting scriptAaron Franke2020-11-161-1/+0
|
* Refactor variant built-in methods yet again.reduz2020-11-111-611/+544
| | | | | | * Using C-style function pointers now, InternalMethod is gone. * This ensures much better performance in typed code. * Renamed builtin_funcs to utility_funcs, to avoid naming confusion
* Create Variant built-in functions.reduz2020-11-101-20/+0
| | | | | | | -Moved Expression to use this, removed its own. -Eventually GDScript/VisualScript/GDNative need to be moved to this. -Given the JSON functions were hacked-in, removed them and created a new JSONParser class -Made sure these functions appear properly in documentation, since they will be removed from GDScript
* Merge pull request #43398 from ↵Rémi Verschelde2020-11-101-0/+1
|\ | | | | | | | | KoBeWi/add_an_array_to_another_array_but_with_a_method Add append_array() method to Array class
| * Add append_array() method to Array classTomasz Chabora2020-11-081-0/+1
| |
* | Variant: Rename Type::_RID to Type::RIDRémi Verschelde2020-11-091-1/+1
| | | | | | | | | | | | | | | | The underscore prefix was used to avoid the conflict between the `RID` class name and the matching enum value in `Variant::Type`. This can be fixed differently by prefixing uses of the `RID` class in `Variant` with the scope resolution operator, as done already for `AABB`.
* | Refactored variant constructor logicreduz2020-11-091-474/+26
|/
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-0/+2089
-Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code