summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #31094 from aaronfranke/vector-sign-mod-etcRémi Verschelde2019-08-231-0/+15
|\ \ | | | | | | Add Vector2/3 sign and posmod functions, axis, docs, misc additions
| * | Add Vector2/3 sign and posmod functions, misc additionsAaron Franke2019-08-171-0/+15
| | | | | | | | | | | | Also make the docs more consistent, add Axis enum to Vector2, add > and >=. and C# also gets % and an override for vector-vector mod.
* | | Revert "Feature: Add SHA256 for PoolByteArray"Rémi Verschelde2019-08-221-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e2c3bbabb0a12f58585bb441d91ee8882225b0ee. This was superseded by #29871 which adds more crypto features with a dedicated interface. Since this commit was never in a stable release (merged during 3.2 dev), we revert it to avoid having to deprecate it in favor of the Crypto API. See https://github.com/godotengine/godot/pull/31187#issuecomment-523377965
* | | Add hex_encode function to PoolByteArrayFabio Alessandrelli2019-08-211-0/+8
| | |
* | | Move CryptoCore to it's own folder.Fabio Alessandrelli2019-08-191-1/+1
|/ / | | | | | | Crypto classes will be placed in core/crypto.
* | Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'core/' and 'editor/'Braden Bodily2019-08-171-2/+1
| | | | | | | | | | | | | | | | | | Condensed some if and ERR statements. Added dots to end of error messages Couldn't figure out EXPLAINC. These files gave me trouble: core/error_macros.h, core/io/file_access_buffered_fa.h (where is it?), core/os/memory.cpp, drivers/png/png_driver_common.cpp, drivers/xaudio2/audio_driver_xaudio2.cpp (where is it?)
* | Add Basis constants and format Transform constantsAaron Franke2019-08-091-9/+17
| |
* | [Mono] Deprecate Set methodsAaron Franke2019-07-281-1/+1
| | | | | | | | | | | | These silently fail, so they should be removed. I accidentally added most of these last year, trying to make everything else consistent with Quat, sorry! Also, a few tiny nitpicking changes are included, like whitespace and misspellings.
* | Added count method to StringChaosus2019-07-231-0/+5
| |
* | Changed some code showed in LGTM and Coverageqarmin2019-07-201-1/+1
| |
* | Added release function to PoolVector::Access.Ibrahn Sahir2019-07-061-2/+2
| | | | | | | | | | | | For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
* | Add sha1 functions to string (using new CryptoCore)Fabio Alessandrelli2019-07-031-0/+4
| |
* | CryptoCore class to access to base crypto utils.Fabio Alessandrelli2019-07-021-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Godot core needs MD5/SHA256/AES/Base64 which used to be provided by separate libraries. Since we bundle mbedtls in most cases, and we can easily only include the needed sources if we so desire, let's use it. To simplify library changes in the future, and better isolate header dependencies all functions have been wrapped around inside a class in `core/math/crypto_base.h`. If the mbedtls module is disabled, we only bundle the needed source files independently of the `builtin_mbedtls` option. If the module is enabled, the `builtin_mbedtls` option works as usual. Also remove some unused headers from StreamPeerMbedTLS which were causing build issues.
* | Merge pull request #28648 from KoBeWi/substr-1Rémi Verschelde2019-06-191-1/+1
|\ \ | | | | | | Make second parameter of substr optional
| * | Make second parameter of substr optionalTomasz Chabora2019-05-031-1/+1
| | |
* | | Merge pull request #29598 from GodotExplorer/uri-encodeRémi Verschelde2019-06-191-0/+4
|\ \ \ | | | | | | | | Expose String.http_escape and String.http_unescape
| * | | Expose String.http_escape and String.http_unescapegeequlim2019-06-081-0/+4
| | | |
* | | | Improved documentation of rsplit Method for String class.Zak2019-06-111-3/+3
|/ / / | | | | | | | | | | | | | | | Improved documentation of rsplit Method for String class. Removed "divisor" (i will also change variants_call.cpp) and added "delimiter" in its place. Also moved the example at the bottom of the description.
* | | Merge pull request #27789 from Giacom/move_towardsRémi Verschelde2019-06-011-0/+4
|\ \ \ | | | | | | | | Added move_toward functions for float, Vector2 and Vector3
| * | | Added move_toward functions for float, Vector2 and Vector3Giacom2019-05-281-0/+4
| |/ /
* / / Fix and expose String::strip_escapes(), use it in LineEdit pasteRémi Verschelde2019-05-311-0/+2
|/ / | | | | | | Supersedes #27736.
* | Merge pull request #24269 from xsellier/feature/master-add-sha256Hein-Pieter van Braam2019-04-231-0/+15
|\ \ | | | | | | Add SHA256 for PoolByteArray
| * | Feature: Add SHA256 for PoolByteArrayXavier Sellier2018-12-101-0/+15
| | |
* | | Add ability to edit editor feature profilesJuan Linietsky2019-04-081-0/+2
| | | | | | | | | | | | Allows enabling/disabling parts of the editor and storing/loading profiles for that.
* | | Merge pull request #27452 from Chaosus/direction_toRémi Verschelde2019-04-081-0/+4
|\ \ \ | |_|/ |/| | Added method to retrieve a direction vector from one point to another
| * | Added direction_to method to vectorsChaosus2019-04-051-0/+4
| | |
* | | Fixed Transform FLIP_Y and FLIP_Z set as identity transformPouleyKetchoupp2019-04-061-2/+2
| | |
* | | Some improvements to is_equal_approx, restored Quat operator.Juan Linietsky2019-04-011-0/+4
|/ /
* | Fix return value for Dictionary.erase()Windy Darian2019-02-211-1/+1
| |
* | Add -Wshadow=local to warnings and fix reported issues.marxin2019-02-201-17/+17
| | | | | | | | Fixes #25316.
* | Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | | | | | Happy new year to the wonderful Godot community!
* | Bind `is_valid_hex_number` string method to GDScriptAndrii Doroshenko (Xrayez)2018-12-241-0/+2
|/
* Merge pull request #20627 from malcolmhoward/core-dictionary-get-keyRémi Verschelde2018-11-191-0/+2
|\ | | | | #20488 core dictionary get key
| * Added Python-like .get() method to Dictionary in GDScript #20488m2018-11-191-0/+2
| | | | | | | | Added .get() method to Dictionary class in GDScript to return the value if the key exists, or return Null if the key does not exist.
* | Always initialize VariantCall return_type.Fabio Alessandrelli2018-11-171-2/+0
|/ | | | | | | | The return_type is used by the GDScript parser (and possibly other scripting languages), so it MUST be initialized at least. It could be initialized to Variant::NIL in release, but I see no reason for not setting the actual value. See similar issue in 95dfa5b .
* add ONE constants to Vector2 and Vector3Kelly Thomas2018-10-071-0/+2
|
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-5/+5
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Added max() and min() functions to array to return greater or lesser element ↵Juan Linietsky2018-08-231-0/+4
| | | | (or null if data is not of compatible type or empty array). Closes #15697
* Merge pull request #21253 from aaronfranke/plane-constantsRémi Verschelde2018-08-211-3/+3
|\ | | | | Rename Plane constants, add to Mono
| * Rename Plane constants, add to MonoAaron Franke2018-08-211-3/+3
| | | | | | But I'm not tagging PR as [Core] or [Mono] due to it being a minor change anyway.
* | Remove circle/diamond and NodePath String constantsRémi Verschelde2018-08-211-12/+0
|/ | | | | | | | | They were introduced in #14704 but need more discussion IMO, they don't strike me as core features that would have to be registered in Variant directly. Moreover, they currently break the documentation XML as string constants end up encoded as e.g. `value=""..""`.
* add project method to Vector2/3Thomas Herzog2018-08-161-0/+4
|
* Merge pull request #20945 from neikeq/dict-erase-retboolRémi Verschelde2018-08-151-1/+1
|\ | | | | Dictionary: remove erase_checked(key), make erase(key) return bool
| * Dictionary: remove erase_checked(key), make erase(key) return boolIgnacio Etcheverry2018-08-141-1/+1
| |
* | Fix int(String) != int(int) conversionChaosus2018-08-141-1/+1
| |
* | Allow some non-integer built-in constants in gdscriptBernhard Liebl2018-07-311-5/+77
|/
* Merge pull request #18282 from aaronfranke/better-mathfRémi Verschelde2018-07-261-2/+10
|\ | | | | [Core] [Mono] Fix Color missing int export methods, added 64-bit
| * Expose 64-bit Color methods to GDScript and fix/update Color XML docAaron Franke2018-07-251-2/+10
| |
* | Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam2018-07-261-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
* Sync classref with current sourceRémi Verschelde2018-05-281-0/+2
| | | | Also fix binding of Basis.slerp