summaryrefslogtreecommitdiffstats
path: root/core/variant_call.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-2090/+0
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Merge pull request #43283 from Calinou/color-remove-contrastedRémi Verschelde2020-11-061-1/+0
|\ | | | | Remove `Color.contrasted()` as its behavior is barely useful
| * Remove `Color.contrasted()` as its behavior is barely usefulHugo Locurcio2020-11-031-1/+0
| | | | | | | | | | | | Returning the most contrasting color isn't a trivial task, as there are often many possible choices. It's usually best left for the user to implement using a script.
* | doc: Sync classref with current source + fixup some bindingsRémi Verschelde2020-11-041-24/+16
|/ | | | Includes various changes triggered by the refactoring of method bindings.
* Fix invalid method namesRafał Mikrut2020-10-221-11/+11
|
* Add name and base type to Variant::InternalMethod (on debug)George Marques2020-10-221-10/+20
| | | | | This is useful to showing error messages when a pointer to an InternalMethod is the only information available.
* Refactor MethodBind to use variadic templatesreduz2020-10-181-145/+10
| | | | Removed make_binders and the old style generated binders.
* Refactored binding system for core typesreduz2020-10-141-1592/+1304
| | | | | | | | | Moved to a system using variadic templates, shared with CallableBind. New code is cleaner, faster and allows for much better optimization of core type functions from GDScript and GDNative. Added Variant::InternalMethod function for direct call access.
* Add ability to bind an unbind arguments to Callable.reduz2020-10-091-3/+12
|
* Change Basis is_equal_approx to use instance methodAaron Franke2020-09-231-2/+2
|
* Merge pull request #38944 from Wavesonics/http-gzipFabio Alessandrelli2020-09-071-0/+18
|\ | | | | HttpRequest now handles gzipping response bodies
| * HTTPRequest now accepts gzipAdam Brown2020-09-021-0/+18
| | | | | | | | | | | | | | | | | | | | Added request_raw to HttpRequest Added decompress_dynamic to Compression class Added decompress_dynamic to BytePoolArray Merge doc fix revert
* | Fixed PackedByteArray GDScript functionsAdam Brown2020-09-041-21/+23
| | | | | | | | | | | | p_self._data.packed_array needs to be used instead of p_self._data._mem printline
* | [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-0/+63
|/
* Fix Vector3i and Vector2i AXIS_* constantsVivraan2020-08-051-5/+5
|
* Make all String float conversion methods be 64-bitAaron Franke2020-07-271-1/+1
|
* Update core documentation to match recent C# changesAaron Franke2020-07-211-2/+2
| | | | | | Also a few minor API changes like adding AABB.abs() Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Add sort and has methods to PackedArraysAaron Franke2020-07-061-0/+36
|
* Remove String::find_last (same as rfind)Stijn Hinlopen2020-07-031-2/+0
|
* - Added more euler rotation orders support.Andrea Catania2020-06-121-0/+12
| | | | | | | | - Fixed floating point issue on the old one. - Fixed the equation on the get_euler_yxz function. - Added unit tests. This work has been kindly sponsored by IMVU.
* Fix docs generation for Vector2i/Vector3i/Rect2iYuri Roubinsky2020-06-031-0/+6
|
* Docs: Fix order of variant constants.bruvzg2020-05-201-0/+11
|
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-36/+69
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-78/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Merge pull request #38548 from kuruk-mm/add_string_join_to_gdscriptRémi Verschelde2020-05-101-0/+2
|\ | | | | GDScript: Add join method on String
| * GDScript: Add join method on StringMateo Kuruk Miccino2020-05-091-0/+2
| | | | | | | | Docs: Add join on String.xml
* | Style: clang-format: Disable AllowShortCaseLabelsOnASingleLineRémi Verschelde2020-05-101-62/+140
| | | | | | | | Part of #33027.
* | Merge pull request #36379 from aaronfranke/color-constructorsRémi Verschelde2020-05-071-0/+7
|\ \ | | | | | | Add a Color constructor for Color with alpha
| * | Color with alpha constructorAaron Franke2020-04-291-0/+7
| |/
* / Fix: can't convert Transform -> Transform2DThakee Nathees2020-05-071-0/+2
|/ | | | Fix: #38528
* [Core] Rename linear_interpolate to lerpAaron Franke2020-04-291-6/+6
|
* Print errors when passing an invalid type to xformAaron Franke2020-04-281-26/+18
|
* Replace NULL with nullptrlupoDharkael2020-04-021-4/+4
|
* Make dict erase node sequenced godotengine#37477Zak Grumbles2020-04-011-1/+1
| | | | * Updated macro call to make the visual Dictionary Erase node sequenced.
* Merge pull request #36896 from kuruk-mm/doc_return_variant_2Rémi Verschelde2020-03-161-1/+4
|\ | | | | Doctool and core: Fix return type in docs for some Variant methods...
| * Doctool and core: Fix return type in docs for some Variant methods assigning ↵Mateo Miccino2020-03-091-1/+4
| | | | | | | | PROPERTY_USAGE_NIL_IS_VARIANT to MethodInfo usage when we have something to return
* | Refactor ScriptDebugger.Fabio Alessandrelli2020-03-081-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | EngineDebugger is the new interface to access the debugger. It tries to be as agnostic as possible on the data that various subsystems can expose. It allows 2 types of interactions: - Profilers: A subsystem can register a profiler, assigning it a unique name. That name can be used to activate the profiler or add data to it. The registered profiler can be composed of up to 3 functions: - Toggle: called when the profiler is activated/deactivated. - Add: called whenever data is added to the debugger (via `EngineDebugger::profiler_add_frame_data`) - Tick: called every frame (during idle), receives frame times. - Captures: (Only relevant in remote debugger for now) A subsystem can register a capture, assigning it a unique name. When receiving a message, the remote debugger will check if it starts with `[prefix]:` and call the associated capture with name `prefix`. Port MultiplayerAPI, Servers, Scripts, Visual, Performance to the new profiler system. Port SceneDebugger and RemoteDebugger to the new capture system. The LocalDebugger also uses the new profiler system for scripts profiling.
* Turn Rect2's 'intersects_touch()' into an extra argument of 'intersects()'Michael Alexsander2020-03-041-2/+2
|
* Update docs and bindings for new integer vector typesRémi Verschelde2020-02-251-11/+11
|
* Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-127/+177
| | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* Store arrays inside of Variant as shared.Juan Linietsky2020-02-231-84/+109
| | | | | | | | | | | | | Arrays inside of Variant are unique and use reference counting. When you assign a variant containing a packed array to another, or when you call non const functions to arrays, this will work even if the array is inside a dictionary, so they will from now pass as reference. The difference with regular variant arrays is that, once passed to a function in the C++ API, they are no longer shared. This is required for security and thread safety, as those arrays are mainly used to pass data back and forth even between threads.
* Add support for Vector2i, Rect2i and Vector3i to VariantJuan Linietsky2020-02-221-0/+95
| | | | | | | WARNING: Requires C++17 'guaranteed copy elision' to fix ambiguous operator problems in Variant. This was added for this commit (and future C++17 uses) in #36457.
* Added StringName as a variant type.Juan Linietsky2020-02-211-4/+10
| | | | Also changed all relevant properties defined manually to StringName.
* Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-23/+124
| | | | objects and made them default.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-227/+223
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky2020-02-151-16/+6
|
* Remove deprecated Color::grayHanif Bin Ariffin2020-02-121-2/+0
| | | | | | It was marked to be removed in Godot 3.1. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Document that translated does not behave like rotated or scaledAaron Franke2019-12-151-1/+1
|
* Merge pull request #27792 from Giacom/fix_quatRémi Verschelde2019-12-111-25/+24
|\ | | | | Fixes being unable to use the Quat(Vector3) constructor