Age | Commit message (Collapse) | Author |
|
Fix duplicate variant constructor typo.
|
|
|
|
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`.
|
|
Color: Fix -Wtype-limits GCC warning after refactoring
|
|
Warning from GCC 10.2.0 with `warnings=extra`:
```
./core/math/color.h: In member function 'int32_t Color::get_r8() const':
./core/typedefs.h:107:42: error: comparison of unsigned expression in '< 0' is always false [-Werror=type-limits]
107 | #define CLAMP(m_a, m_min, m_max) (((m_a) < (m_min)) ? (m_min) : (((m_a) > (m_max)) ? m_max : m_a))
| ~~~~~~^~~~~~~~~
./core/math/color.h:201:49: note: in expansion of macro 'CLAMP'
201 | _FORCE_INLINE_ int32_t get_r8() const { return CLAMP(uint32_t(r * 255.0), 0, 255); }
| ^~~~~
```
Also some code consistency changes while at it.
|
|
|
|
-Removed FuncRef, since Callable makes it obsolete
-Removed int_types.h as its obsolete in c++11+
-Changed color names code
|
|
-Discern between named, indexed and keyed
-Get direct access to functions for typed GDScript and GDNative bindings
-Small changes to some classes in order to work with the new setget binder
|
|
Increase the default HTTPClient download chunk size to 64 KiB
|
|
Add `Image.load_bmp_from_buffer()` for run-time BMP image loading
|
|
This improves download speeds at the cost of increased memory usage.
This change also effects HTTPRequest automatically.
See #32807 and #33862.
|
|
-Using classes to call and a table
-For typed code (GDS or GDNative), can obtain functions to call prevalidated or ptr.
|
|
|
|
Remove `Color.contrasted()` as its behavior is barely useful
|
|
|
|
It's non-deterministic so it's better to show a fixed value like 0 instead of
having it potentially change whenever `randomize()` is called.
Fixes #43317.
|
|
Includes various changes triggered by the refactoring of method bindings.
|
|
Also separated Light2D in PointLight2D and DirectionalLight2D.
Used PointLight2D because its more of a point, and it does not work
the same as OmniLight (as shape depends on texture).
Added a few utility methods to Rect2D I needed.
|
|
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.
|
|
Alpha Hash and Alpha2Coverage Implementation
|
|
|
|
MainLoop: Remove deprecated methods
|
|
Fixes #43020 when a thread uses ClassDB while main thread calls is_parent_class().
|
|
|
|
Fix biased output of randi_range
|
|
-Rename pixel_snap to snap_2d_to_vertices
-Added snap_2d_to_transforms which is more useful
Fixes #41814
Solves proposal https://github.com/godotengine/godot-proposals/issues/1666
Supersedes #35606, supersedes #41535, supersedes #41534
|
|
|
|
They're now disabled by default, and can be enabled with the command line
argument `--vk-layers`.
When enabled, the errors about them being missing are now warnings, as
users were confused and thought this meant Vulkan is broken for them.
Fix crash in `~VulkanContext` when validation layers are disabled (exposed by
this PR since before they could not be disabled without source modification).
Also moved VulkanContext member initializations to header.
Fixes #37102.
|
|
Apply upstream gamecontrollerdb patch 391.
|
|
Allows to extend `RandomNumberGenerator` via C++ modules.
|
|
Co-authored-by: SalvoB <salvob41@users.noreply.github.com>
|
|
fix axes mapped to buttons and D-pads.
|
|
|
|
|
|
Add name and base type to Variant::InternalMethod (on debug)
|
|
This is useful to showing error messages when a pointer to an
InternalMethod is the only information available.
|
|
|
|
This partially addresses
https://github.com/godotengine/godot-proposals/issues/676.
|
|
Removed make_binders and the old style generated binders.
|
|
core/command_queue_mt.h: Fix crash/hang when buffer fills up
|
|
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.
|
|
This patch fixes two related issues. One is the race condition in issue #42107..
The other is a crash which happens when the reader is lapped near the end of the buffer.
|
|
Adds unit tests for command_queue_mt.h/cpp
In this revision, some unit tests will fail due to issue #42107.
|
|
Fix HTTPClient::poll crash after connection is self-assigned
|
|
|
|
|
|
Removed unused method Geometry3D.get_uv84_normal_bit
|
|
-Sphere Attractor
-Box Attractor
-Vector Field
-Sphere Collider
-Box Collider
-Baked SDF Collider
-Heightmap Collider
|
|
|
|
|