Commit graph

10,041 commits

Author SHA1 Message Date
tillua467
050042bcb9
[rcore][GLFW] Drop unused refresh rate when calling glfwSetWindowMonitor()
the glfw documentation clearly says
  - When the monitor is NULL, the position, width and height are used to place the window content area. The refresh rate is ignored when no monitor is specified.
so it' useless to pass a refreshrate, not to mention we are already doing it in 63f82f0ca8/src/platforms/rcore_desktop_glfw.c (L241)

Signed-off-by: tillua467 <tillua467@gmail.com>
2026-07-30 01:22:01 +06:00
tillua467
dda51b7d82 [rcore][GLFW] Fix ToggleBorderlessWindowed() entering exclusive fullscreen instead of windowed
ToggleBorderlessWindowed() passes monitors[monitor] as the monitor argument.
but passing a non-NULL monitor here is what puts a window into full screen mode that's the exact same call ToggleFullscreen() makes,
Since borderless windowed is supposed to stay in windowed mode, this should be NULL instead

Signed-off-by: tillua467 <tillua467@gmail.com>
2026-07-28 21:24:06 +06:00
Matthew Roush
935f3da3ff
[examples] Add shapes_polygon_lines (#6023)
Add an example to demonstrate/observe DrawPolyLinesEx() behavior.
2026-07-27 16:30:30 +02:00
Leonardo Gomes
de24a6c1eb
fix: use rlGetPixelDataSize in rlgl.h (#6024) 2026-07-27 16:29:32 +02:00
Seweryn
3ea8b9298f
Refactor text insertion logic in rtext.c (#6022)
Fixed nasty bug, text after insertion is deleted
2026-07-26 20:54:54 +02:00
Seweryn
14d3587858
Refactor text insertion logic in rtext.c (#6021)
Fixed nasty bug
2026-07-26 15:11:39 +02:00
Jeffery Myers
a18051fdd9
Fix various warnings when building in VC2022 (#6020) 2026-07-26 15:10:19 +02:00
cladxv
ac06acbaee
Add rayscal binding for Scala Native (#6019) 2026-07-26 15:09:14 +02:00
cladxv
ae7c58e5b9
Fix typo in 'Utility Wrapers' heading (#6017) 2026-07-26 15:08:28 +02:00
Matthew Roush
c15f3214d5
[rshapes] Correct DrawPolyLinesEx() line thickness. (#6014)
Follow up to #6004. The previous formula would produce inconsistent results for different polygons with the same `thick` parameter.
2026-07-24 21:38:50 +02:00
Ray
a408dd332e REVIEWED: IsPathAbsolute(), remove isalpha() dependency 2026-07-24 21:17:11 +02:00
Ray
f0a8201733 Update CHANGELOG for upcoming raylib 6.2 release 2026-07-23 12:15:38 +02:00
Matthew Roush
127e7441da
[rshapes] Fix DrawPolyLinesEx() (#6004)
If `innerRadius` is less than 0, it causes the outline to overlap itself and even grow outside of the polygon's bounds when `thick` is greater than `radius`. Clamping `innerRadius` to 0 fixes these problems.
2026-07-23 09:50:11 +02:00
Felipe Jorge
353268b7cf
[rmodels] Fix GLTF animation interpolation (#6007) 2026-07-23 09:41:20 +02:00
Jairo Correa
8eb433518d
[build][Zig] Update to raygui 5.0 (#6005) 2026-07-23 09:39:38 +02:00
Jairo Correa
7d4f5f79e7
[build][Zig] Fix web examples building all the time (#6006) 2026-07-23 09:38:45 +02:00
Bigfoot
aa4cf20eae
[rlsw] Variant dispatch refactor + bunch of improvements (#5996)
* rlsw config section

* use raster flags to define rasterizer variants

* simplifies the generation of dispatch tables

* single dispatch table for the lines
same logic as for the points

* internal color interp state

* check whether vertex colors should be interpolated

* vector op helper macro + pick sampler once before primitive drawing

* op order tweaks

* refactoring without gotos for triangle and quad rasterizers

* same cleaning for the lines
2026-07-21 18:22:58 +02:00
Colin James Wood
78535d2343
[rlsw] First batch of embedded optimizations and compiler requirements Pico 2 (#5994)
* pico doesn't implement time.h

* add option for RLSW to hold a back buffer, and give it a sw method to swap

* Remove unused pointer and give swSwapColorBuffers a default nop-behaviour

* Fix compilation by removing old colorBackBuffer setters

* use the correct logger

* return line

* rename RLSW_BACKBUFFER to SW_DOUBLE_BUFFERING
2026-07-21 18:20:58 +02:00
oscujic
e809face7b
[rmodels] DrawSphereWires(), code optimization (#6000)
* Fix DrawSphereWires (Less aggressively) 

Summary:
- Eliminated some redundancies
- Fixed a bug(?) where the sphere would have 1 more "ring" (latitude division) than expected
- Fixed a bug where the top ring was double-covered
- Added comments denoting which code draws which lines

* DrawSphereWires + DrawSphereEx parity

Summary:
- Replaced DrawSphereWires algorithm with one based on the much faster algorithm from DrawSphereEx
- Fixed +1 ring quirk on DrawSphereEx to match the change made to DrawSphereWires
2026-07-21 17:48:07 +02:00
Matthew Roush
9fd4726c31
[rshapes] Fix DrawRectangleRoundedLines() (#5992)
In #5980 a bug was introduced for `DrawRectangleRoundedLines()`. `DrawRectangleRoundedLines()` previously assumed that `DrawRectangleRoundedLinesEx()` uses `RL_LINES` when line thickness is 1 (which is no longer true, it now uses `RL_QUADS` or `RL_TRIANGLES`.)

I copy/pasted the previous `DrawRectangleRoundedLinesEx()` implementation and trimmed it down (since now the line thickness is always 1), so now `DrawRectangleRoundedLines()` uses `RL_LINES`. This makes it consistent with all other `Draw*Lines()` functions, which use `RL_LINES`.
2026-07-21 17:46:22 +02:00
Ray
1c3a7748ea Update examples dep. raygui 5.0 2026-07-21 08:40:56 +02:00
Ray
ce40053a6c Remove trailing spaces 2026-07-20 20:36:14 +02:00
Ray
9ef6850cc4 Update build_examples_windows.yml 2026-07-18 17:52:07 +02:00
Ray
3094389a2a Update analyze_codeql.yml 2026-07-18 17:49:35 +02:00
Ray
b812c18e6b Merge branch 'master' of https://github.com/raysan5/raylib 2026-07-18 17:14:10 +02:00
Ray
6c6a248be8 Update rcore.c 2026-07-18 17:14:03 +02:00
github-actions[bot]
ce6ac7d8c7 rlparser: update raylib_api.* by CI 2026-07-18 14:50:44 +00:00
Ray
baa9a4df51 REVIEWED: ImageToImage(), reorganize conditionals checks optimization, align brackets 2026-07-18 16:50:28 +02:00
Ray
58e03dbc6c REVIEWED: TakeScreenshot() to support absolute paths 2026-07-18 16:45:28 +02:00
Ray
cfccb83ddd ADDED: IsPathAbsolute() to check absolute paths 2026-07-18 16:44:41 +02:00
Ray
b806e3d2ec Replaced comments text given by provided 2026-07-18 16:44:10 +02:00
Ray
0725811224 Added a note reminder 2026-07-18 16:43:04 +02:00
Mierenik
5b1445b381
FIXED: ImageFromImage() heap-buffer-overflow on compressed formats (#5991) 2026-07-17 23:22:35 +02:00
meta-legend
aa088e42d1
fix static link deps (#5990) 2026-07-17 23:12:57 +02:00
GideonSerf
7aceceb467
Fix logging format for automation event capacity warning (#5986)
Co-authored-by: gideons <gse@newspacesystems.com>
2026-07-17 20:31:26 +02:00
Ray
66bb527d22
Update README.md 2026-07-16 15:10:46 +02:00
Ray
f1d44c166f REMOVED: Unmaintained project: VS2019-Android 2026-07-16 15:08:46 +02:00
Ray
9c834d6e4d Merge branch 'master' of https://github.com/raysan5/raylib 2026-07-16 15:08:35 +02:00
Ray
742ccb390a REMOVED: Unmaintained project: 4coder 2026-07-16 15:08:12 +02:00
Ray
62a74a342c
Update README.md 2026-07-16 15:05:32 +02:00
Ray
8eb613e50a Update rcore_desktop_glfw.c 2026-07-16 12:28:25 +02:00
largenumberhere
89b4fbd298
[rcore] fic position on mouse leave for emscripten. Issue raysan5#5945 followup (#5981) 2026-07-16 12:10:03 +02:00
GideonSerf
93e64f2210
Fix TextInsertAlloc overflow by correcting loop bounds (#5982)
Co-authored-by: gideons <gse@newspacesystems.com>
2026-07-16 12:08:41 +02:00
GideonSerf
a9a0c046f1
Fix pixel data size regressions (#5984)
Co-authored-by: gideons <gse@newspacesystems.com>
2026-07-16 12:07:19 +02:00
Tanushn
d224912bd5
Fix rlsw persistent alpha blending state (#5964) 2026-07-15 21:21:38 +02:00
Samael Heaven
39706cccbe
[rshapes] Fix DrawRectangleRoundedLinesEx not scaling with transform when thick=1 (#5980) 2026-07-15 21:20:18 +02:00
Ray
4640c84920 WARNING: Not updating mouse.previousPosition when SeMousePosition() #5962
This could be a sensible change, not sure if it can break anything...
2026-07-13 19:32:30 +02:00
Ray
af98e3126e Merge branch 'master' of https://github.com/raysan5/raylib 2026-07-13 19:25:08 +02:00
Ray
e063385c47 Fix #5965 2026-07-13 19:24:49 +02:00
Thiago Mucci
7a247ff40f
Fix swScissor() Y-axis clipping inversion in software renderer (#5976) 2026-07-13 19:19:02 +02:00