Vincent Lee
19ae6f2c2d
[rshapes] Fix incorrect parameter names in DrawRectangleGradientEx
Examining the code shows that the rectangle is drawn winding counterclockwise, starting
with the top left. Therefore the colors used should be in the order: topLeft, bottomLeft,
bottomRight, topRight.
However, the variables actually being used are topLeft, bottomLeft, topRight,
bottomRight. I was confused by this as I was getting striping where I didn't expect any.
Put another way, the last two parameters are misnamed.
This diff swaps the parameter names and their usages. The result is that no runtime
behaviour changes: the same parameter order yields the same visual result both before and
after this change, but the parameter names now correctly reflect what they are actually
used for.
You can actually see this in the implementation of DrawRectangleGradientV, which
(correctly) passes top, bottom, bottom, top to DrawRectangleGradientEx.
1 月之前
github-actions[bot]
58a6846c8f
Update raylib_api.* by CI
1 月之前
jestarray
296e3af470
add const qualifier to ImageDrawTriangleFan and ImageDrawTriangleStrip arguments
1 月之前
Ray
924c87db33
Merge pull request #4976 from M374LX/rgfw-update-dev
Update RGFW to 1.7.5-dev
1 月之前
M374LX
6eeaf1dd5b
Update RGFW to 1.7.5-dev
1 月之前
Ray
c1bb53738e
Merge pull request #4974 from M374LX/rgfw-escape-fix
RGFW: fix Escape always closing the window
1 月之前
Ray
9bf4388a4f
Merge pull request #4965 from M374LX/rgfw-update
Update RGFW to 1.7
1 月之前
github-actions[bot]
3414d96eaf
Update raylib_api.* by CI
1 月之前
Ray
20c0c92bdb
Merge pull request #4963 from meowstr/master
[rshapes] Add DrawEllipseV and DrawEllipseLinesV
1 月之前
M374LX
bc2b2864e0
RGFW: fix Escape always closing the window
1 月之前
Nikolas
b26f6d34ba
Allow passing options to raygui in build.zig
1 月之前
Ray
b9c2ecc447
Merge pull request #4969 from M374LX/update-comments
Update comments
2 月之前
github-actions[bot]
8f2ecfba4d
Update raylib_api.* by CI
2 月之前
M374LX
3418172617
Update comments
2 月之前
Ray
015db1641f
Merge pull request #4964 from M374LX/axes-comment
Update comment (gamepad axes)
2 月之前
M374LX
a9525bfbc2
Update RGFW to 1.7
2 月之前
M374LX
16f398b464
Update comment (gamepad axes)
2 月之前
Meowster
6d5aedbd38
Add DrawEllipseV and DrawEllipseLinesV
2 月之前
Ray
913c236487
REVIEWED: `MAX_GAMEPAD_AXES`
2 月之前
Ray
341bfb22cc
REVIEWED: `MAX_GAMEPAD_AXEX` for consistency #4960
2 月之前
Ray
2afae1b3e1
Merge pull request #4962 from M374LX/rgfw-rctrl
RGFW backend: add missing Right Control key
2 月之前
Ray
f9fa63366c
Merge pull request #4958 from M374LX/unused-var
Remove unused variable
2 月之前
M374LX
c0cf57f8f0
RGFW backend: add missing Right Control key
2 月之前
M374LX
299f5350a4
Remove unused variable
2 月之前
github-actions[bot]
2d952d8e94
Update raylib_api.* by CI
2 月之前
Ray
d7148f5f9d
REDESIGNED: Base64 encoding/decoding functions
Found some issues with output size when padding required, just re-implemented both functions from scratch.
2 月之前
Ray
5ddd13b775
REVIEWED: Hexadecimal formatting to be consistent
2 月之前
github-actions[bot]
8d9c1cecb7
Update raylib_api.* by CI
2 月之前
Ray
afb52b19a4
WARNING: REDESIGNED: `EncodeDataBase64()`, NULL terminated string returned
Note that returned output size considers the NULL terminator as an additional byte.
2 月之前
Ray
21f0fe2a73
Removed some spaces
2 月之前
Ray
e3b9dbe75b
Merge pull request #4947 from padmadevd/master
[rcore] Fixed bug in hovering and input for android
2 月之前
Padmadev D
b6daa48a9c
Update rcore_android.c
corrected coding conventions.
2 月之前
Ray
a1d57e83f0
Merge pull request #4948 from parzivail/bug/meshnormals
Fix typo in mesh animNormals
2 月之前
Colby Newman
21e711b13f
Fix typo in mesh animNormals
2 月之前
Padmadev D
5da2d10118
Update rcore_android.c
Bug Fix Update
Code to Ignore Hovering Inputs Completely
2 月之前
Ray
2be18e2c54
Merge pull request #4944 from Pivok7/master
[examples] Basic pbr example fix
2 月之前
Pivok
0ffc8c517f
Pbr example fix
2 月之前
Ray
8c99a508c6
REVIEWED: `WindowSizeCallback()`, GLFW
It is called on window minification and setting internal width/height to 0, that can break things
2 月之前
Ray
a51d334440
Merge branch 'master' of https://github.com/raysan5/raylib
2 月之前
Ray
9d4c31533d
Update rtext.c
2 月之前
Ray
15a0cf89b8
Merge pull request #4936 from lumenkeyes/master
build.zig fixes for android targets
2 月之前
Ray
ba31219141
Merge pull request #4937 from Bigfoot71/fix-gen-tangents
[rmodels] Fix and improve `GenMeshTangents`
2 月之前
Ray
5076d5743b
Merge pull request #4938 from JeffM2501/const_save_callback
[utils] fix const warning with SaveFileText callback
2 月之前
github-actions[bot]
4a1e9931a6
Update raylib_api.* by CI
2 月之前
Jeffery Myers
aa684a33de
make save file callback match const correctness of calling function
2 月之前
Bigfoot71
d135eef462
fix and improve `GenMeshTangents`
2 月之前
Lumen Keyes
6f11e27bbe
fix typo
2 月之前
Lumen Keyes
dea6a24777
build.zig fix: link EGL for Android
2 月之前
github-actions[bot]
63b988ade9
Update raylib_api.* by CI
2 月之前
Ray
f7d03efb49
REVIEWED: `DecodeDataBase64()`, follow convention:
- All `char *` refer to text strings
- All `unsigned char *` refer to generic byte arrays
2 月之前