summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2023-01-08Use BitField<> in core type masksJuan Linietsky
* All core types masks are now correctly marked as bitfields. * The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks. * Most bitmask operations replaced by functions in BitField<> * Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is. * Documentation and API dump updated to reflect bitfields in core types.
2023-01-07Merge pull request #70939 from bruvzg/win_screen_2Rémi Verschelde
Add support for the custom initial screen for the main window, fix primary screen detection.
2023-01-07Merge pull request #71000 from reduz/callable-bind-from-arrayRémi Verschelde
Allow binding Callable arguments from an array
2023-01-07Add support for the custom initial screen for the main window, fix primary ↵bruvzg
screen detection.
2023-01-06Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde
Add PropertyInfo overload for GLOBAL_DEF
2023-01-06Merge pull request #70995 from reduz/do-not-bind-variant-immutableRémi Verschelde
Unbind Variant methods that change immutable types.
2023-01-06Allow binding Callable arguments from an arrayJuan Linietsky
Restores 3.x functionality that was removed in the Signal/Callable refactor of 4.0. Fixes #64668. Implements https://github.com/godotengine/godot-proposals/issues/6034 Usage: ```GDScript callable.bindv([arg1,arg2,arg3]) ```
2023-01-06Unbind Variant methods that change immutable types.Juan Linietsky
Fixes #62706. Code is commented instead of removed to clarify why they should not be re-added.
2023-01-06Fix jumping in `AStarGrid2D` when `DIAGONAL_MODE_NEVER` is enabledYuri Rubinsky
2023-01-06Merge pull request #64253 from heppocogne/Fix-native-enum-release-1Rémi Verschelde
Register enum type names in release build
2023-01-06Merge pull request #70547 from TokageItLab/pingpong-wrapRémi Verschelde
Fix pingpong-loop with `loop_wrap` is not working & clean-up cubic interpolation key retrieve process
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-03Merge pull request #67694 from aaronfranke/its-timeRémi Verschelde
Remove duplicate Month and Weekday enums
2023-01-03Merge pull request #70482 from bruvzg/ios_pencilRémi Verschelde
[iOS] Add Apple Pencil pressure and tilt support.
2023-01-03Merge pull request #70702 from vnen/gdscript-error-on-assign-voidRémi Verschelde
GDScript: Error when assigning return value of void function
2023-01-02Merge pull request #67853 from Zylann/fix_lods_with_doublesClay John
Fix usages of mesh simplification functions in float=64 builds
2023-01-01Optimize `wrapf` function a bitYuri Rubinsky
2022-12-30GDScript: Error when assigning return value of void functionGeorge Marques
This also makes built-in method calls empty the return value when the method is void, to avoid keeping returning a garbage value in such case.
2022-12-30Register native base class name of enum types when release buildheppocogne
2022-12-26Remove duplicate Month and Weekday enumsAaron Franke
Well, they were duplicately-exposed, but triplicately-defined.
2022-12-25Fix pingpong with loop wrap is not workingSilc Renew
2022-12-24Divide `AStarGrid2D::default_heuristic` into two different heuristicsYuri Rubinsky
2022-12-23[iOS] Add Apple Pencil pressure and tilt support.bruvzg
2022-12-21Merge pull request #62029 from Maran23/optional-default-value-project-settingsRémi Verschelde
Allow to specify a default value in `ProjectSettings.get_setting()`
2022-12-21Added the possibility to define a default value in ↵Marius Hanl
ProjectSettings.get_setting(), which is used when no setting is set. Also added tests for the project settings. Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2022-12-21Merge pull request #70403 from rburing/fix_edge_map_capacityRémi Verschelde
Fix edge map capacity in convex hull computer
2022-12-21Merge pull request #70355 from Chaosus/gds_fix_loopsRémi Verschelde
Fix empty zero assigners for the variant types
2022-12-21Fix edge map capacity in convex hull computerRicardo Buring
The desired capacity could be less than the default, so reserve would error.
2022-12-21Fix crashed when compressing empty image data.stmSi
2022-12-21Merge pull request #70350 from Chaosus/stringname_operatorRémi Verschelde
Add missing != operator to `StringName`
2022-12-20Add `get_point_position` method to `AStarGrid2D`Yuri Rubinsky
2022-12-20Fix empty zero assigners for the variant typesYuri Rubinsky
2022-12-20Add missing != operator to `StringName`Yuri Rubinsky
2022-12-20Merge pull request #70339 from Chaosus/astargrid2d_weight_scaleRémi Verschelde
Restore weight scale for `AStarGrid2D` (partially)
2022-12-20Merge pull request #65376 from reduz/astc-supportRémi Verschelde
Implement basic ASTC support
2022-12-20Implement basic ASTC supportJuan Linietsky
Implements basic ASTC support: * Only 4x4 and 8x8 block sizes. * Other block sizes are too complex to handle for Godot image compression handling. May be implemented sometime in the future. The need for ASTC is mostly for the following use cases: * Implement a high quality compression option for textures on mobile and M1 Apple hardware. * For this, the 4x4 is sufficient, since it uses the same size as BPTC. ASTC supports a lot of block sizes, but the benefit of supporting most of them is slim, while the implementation complexity in Godot is very high. Supporting only 4x4 (and 8x8) solves the real problem, which is lack of a BPTC alternative on hardware where it's missing. Note: This does not yet support encoding on import, an ASTC encoder will need to be added.
2022-12-20Restore weight scale for `AStarGrid2D` (partially)Yuri Rubinsky
2022-12-19Merge pull request #65990 from ↵Rémi Verschelde
touilleMan/gdextension-expose-builtins-members-real-types Expose in builtins' members internal type & size (on top of offset) in extension_api.json
2022-12-17Remove Disable Touch debug project settingHugo Locurcio
This project setting was only implemented and iOS and likely served no purpose outside of debugging during development of engine features. It was also located in a confusing location in the project settings editor, as it was located below a root category (which appears in bold and is normally not seen as clickable by users).
2022-12-16Merge pull request #70116 from Calinou/vibrate-handheld-silence-warningRémi Verschelde
Silence `Input.vibrate_handheld()` warning as it's already documented
2022-12-16Fix String::word_wrap() for long wordsHaoyu Qiu
- Changes `TextServer.string_get_word_breaks()` - Returns pairs of boundary start and end offsets - Accepts `chars_per_line` to return line breaks - Removes `String::word_wrap()` Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-12-16Silence `Input.vibrate_handheld()` warning as it's already documentedHugo Locurcio
The warning causes messages to be spammed if you are calling this method in a game that runs on both desktop and mobile platforms, unless you guard all calls to `Input.vibrate_handheld()` with `OS.has_feature("mobile") or OS.has_feature("web")`. Since the limitation is already documented (and is obvious enough given the method's name), the warning message is redundant.
2022-12-15[RTL/TextServer] Add baseline inline alignment mode for objects and RTL tables.bruvzg
2022-12-15Fix "p_zfar" to "p_znear" in Projection.create_orthogonalHei
Was confused why it always gave inf:s.
2022-12-15Expose in builtins' members internal type & size (on top of offset) in ↵Emmanuel Leblond
extension_api.json
2022-12-15Merge pull request #69709 from RandomShaper/refactor_spirv_reflectionRémi Verschelde
Refactor SPIR-V reflection into a generic RenderingDevice feature
2022-12-14Extension header: amend const correctness of `p_args` parametersJan Haller
A while ago, argument arrays were passed as const GDNativeTypePtr* (void* const*) This was changed to GDNativeConstTypePtr* (void const**), adding const on the value but removing it on the pointer level. This commit changes argument types to const GDExtensionConstTypePtr* (void const* const*). Besides object pointers, the same change is applied to variant pointers.
2022-12-13Improve logic around using Ref<T> with GDExtension virtual functionsBastiaan Olij
2022-12-12VariantParser make readahead optionallawnjelly
It turns out some areas are independently moving / reading filepointers outside of the VariantParser, which can cause the readahead caching to get out of sync. This PR makes the VariantParser readahead to be optional to allow for these use cases.
2022-12-12Sync controller mappings DB with SDL2 community repoRémi Verschelde
Synced with gabomdq/SDL_GameControllerDB@adf7ec1edfc0371ebf5fb469b61f301b8e26ec81