Commit Graph

9028 Commits

Author SHA1 Message Date
Agnis Aldiņš "NeZvērs
46e8343a30 [examples] Added core_viewport_scaling (#5313)
* example - core_viewport_scaling

* Code convention update
2025-11-02 19:45:51 +01:00
Ray
3cf3b309c6 REVIEWED: Flags set/clear #5169 2025-11-02 19:40:45 +01:00
JohnnyCena123
5fbf67a630 [rcore] Use FLAG_* macros where possible (#5169)
* use FLAG_* macros where possible

* rename `FLAG_CHECK()` to `FLAG_IS_SET()`

* remove unnecessary equality checks

* fix issues

---------

Co-authored-by: Ray <raysan5@gmail.com>
2025-11-02 19:24:47 +01:00
Ray
0246621210 REVIEWED: SIMD intrinsics checks and usage 2025-11-01 21:06:18 +01:00
Arrangemonk
dfc94f64d1 Revert "UpdateModelAnimation does matrixtranspose(matrixinvert) only once per…" (#5322)
This reverts commit e3a562ab57.
2025-10-31 20:43:27 +01:00
Le Juez Victor
bca54047f9 [rlsw] Review depth formats and fix depth writing (#5317)
* review depth format/writing

* adding a note
2025-10-30 19:17:18 +01:00
Dave Goehrig
b2d455400c Adding SwiftForth language binding (#5319) 2025-10-30 19:15:14 +01:00
Ray
127cc1c79e REVIEWED: Makefile to support software renderer 2025-10-29 22:45:37 +01:00
Ray
3389c80f49 Update rlsw.h 2025-10-29 11:33:08 +01:00
Ray
f16d5ce1dd REVIEWED: Make sure SSE is being used when compiling with MSVC
Added log info and some formatting for visibility
2025-10-29 11:12:04 +01:00
Le Juez Victor
cbff0fa22c [rlsw] Fix axis aligned quad detection (#5314)
* fix `sw_quad_is_axis_aligned`

* align fix

* remove swGetColorBuffer and tweak DRM

* review alignment
2025-10-28 23:50:04 +01:00
Ray
bf5c00f7e0 RE-ADDED: swGetColorBuffer() for convenience #5312
`PLATFORM_DRM` depends on it but if there is a better approach to get the buffer, it can just be removed again and replaced by alternative.
2025-10-28 20:57:31 +01:00
Ray
a844a943b5 It seems alignas() is C11 and raylib is C99, so not fully supported #5312
Added a workaround but it has other probably undesired implications
2025-10-28 20:45:21 +01:00
Ray
f106301d46 ADDED: Some code sample for RISC-V RVV vector instructions -WIP- 2025-10-28 20:11:29 +01:00
Ray
78870335e6 Update rlgl.h 2025-10-28 19:55:35 +01:00
Ray
93a21c7e13 Support other graphic backends on some platforms 2025-10-28 19:55:28 +01:00
Le Juez Victor
f4ed8fc50e [rlsw] Simplify framebuffer logic and add blit/copy fast path (#5312)
* consistency tweak

* unified color and depth buffer

* tweaks

* review the storage of clear values + complete get/set depth value

* copy/blit fast path

* better simd read/write

* framebuffer alignment

* fix 'typo'
my french slipped out
2025-10-28 17:59:59 +01:00
Uneven Prankster
3b6a68ba69 Improve support for PLATFORM_DESKTOP_WIN32 in src/Makefile (#5311)
Co-authored-by: Uneven Prankster <unevenprankster@pm.me>
2025-10-27 12:12:42 +01:00
Ray
f163209cf2 Merge branch 'master' of https://github.com/raysan5/raylib 2025-10-27 00:22:33 +01:00
Ray
5db5c9b4a1 Update rexm.c 2025-10-27 00:20:48 +01:00
JordSant
9aaf120bbe [examples] Fixed spaces shaders_mandelbrot_set (#5310) 2025-10-27 00:15:59 +01:00
Ray
aae2c4b355 Update rexm.c 2025-10-26 21:25:25 +01:00
Ray
5338e39124 Update rexm.c 2025-10-26 21:23:11 +01:00
Ray
a0f3f07bdc Update examples_report.md 2025-10-26 21:23:08 +01:00
Ray
fdc500756d REXM: ADDED: More detailed log info 2025-10-26 21:21:28 +01:00
Ray
cf9a0619ca REXM: Validate and update examples 2025-10-26 21:21:05 +01:00
Ray
a6dd08fb71 Update shaders_color_correction.c 2025-10-26 20:10:47 +01:00
Ray
0bbe302e72 Merge branch 'master' of https://github.com/raysan5/raylib 2025-10-26 18:40:56 +01:00
Ray
6a5b7fb3f8 Update models_decals.c 2025-10-26 18:40:46 +01:00
Adeeb Shihadeh
40594f3ec0 Fix typo in font loading documentation (#5308) 2025-10-26 18:24:56 +01:00
JordSant
70f4911698 [examples] Added shaders_color_correction (#5307)
* [examples] Added `shaders_color_correction`

* Add _CRT_SECURE_NO_WARNINGS to VS Project

* Added to makefiles
2025-10-26 18:24:19 +01:00
Ray
0fbc4272d0 Remove trailing spaces 2025-10-26 18:22:23 +01:00
Ray
cb58ca63d4 Review formating #5306 2025-10-26 18:21:24 +01:00
themushroompirates
e244cf297a examples_model_decals : Fixed unload crash, added buttons (#5306) 2025-10-26 18:15:45 +01:00
Le Juez Victor
a818508158 [rlsw] Completeness of glDraw functions (#5304)
* adding `glDrawElements`

* tweaks

* fix `glDrawArrays` and `glDrawElements` behavior
2025-10-26 00:58:56 +02:00
Ray
1c20b5588d Updatee project id 2025-10-25 23:20:49 +02:00
Le Juez Victor
e501dfad60 [rlsw] Subpixel correction (#5300)
* fix triangle cracking

* subpixel corretion for quads

* replace Bresenham for DDA + subpixel correction

* consistency

* adding note

* style tweaks
2025-10-25 23:13:24 +02:00
Kris
a25d11ad1a Add example: shapes_math_angle_rotation (angle rotation lines) (#5236)
Co-authored-by: Ray <raysan5@gmail.com>
2025-10-25 13:42:35 +02:00
Jopestpe
6f101f4011 [examples] Added: shapes_math_sine_cosine (#5257)
* draft: [examples] Added shapes_math_sine_cosine

* draft: [examples] Added screenshot shapes_math_sine_cosine

* Explementary

* Varying radius

* adjustments

* added comments and reorganized UI labels

* Updated Makefile, README.md, and examples_list.txt

* tabs to spaces

* Fix MSVC compilation

---------

Co-authored-by: Ray <raysan5@gmail.com>
2025-10-25 13:38:06 +02:00
Ray
efe62f0e0d Formating review to follow raylib code conventions #5298 2025-10-25 11:15:30 +02:00
Ray
79fd6be008 Minor format tweaks 2025-10-25 11:14:53 +02:00
themushroompirates
dbcc508196 [examples] Added models_decals (#5298)
* Added decal models example

* Code formatting to match Raylib conventions
2025-10-25 10:41:39 +02:00
Jeffery Myers
4bb8c89084 Don't undefine the versions of LoadImage that don't conflict with raylib so that the Win32 platform can use them. (#5299) 2025-10-25 09:49:31 +02:00
Le Juez Victor
39242dba23 [rlsw] Smarter texture management (#5296)
* simplified framebuffer management

* convert texture to rgba32

* remove float copy/blit

* adding SIMD framebuffer read/write
This adds SIMD framebuffer read/write, and also texel fetch.
This supports SSE2/SSE41 and SISD fallback (also includes ARM NEON support, conceptually identical but still needs testing).

* consistency

* tweaks

* review of `sw_texture_sample_linear`

* better quad sorting
unrelated to the PR, but at least it's done

* ignore some pipeline state in certains context

* convention tweaks

---------

Co-authored-by: Ray <raysan5@gmail.com>
2025-10-24 18:29:01 +02:00
Jeffery Myers
12dc0d6675 Revert undesired change to rcore and restore correct win32 ifdef and max path (#5297)
Fixes #5293
also add comment for win32 platform.
2025-10-23 17:45:33 +02:00
alexgb0
93c5dc3b5f [rlsw] c++ support (#5291)
* rlsw c++ support

* rslw formatting fixes
2025-10-23 17:28:00 +02:00
Diogo Hartuiq Debarba
04930c5132 Fix typo in RPI cross-compiler variable name (#5295) 2025-10-23 13:27:28 +02:00
Jeffery Myers
780a7df760 Fix warnings in more examples. (#5292) 2025-10-23 13:25:23 +02:00
Ray
428421f21a Update examples_list.txt 2025-10-22 11:03:19 +02:00
sleeptightAnsiC
1b5a14e516 [rcore_desktop_sdl] fix: handle monitor ID correctly on SDL3 (#5290)
SDL3 uses ID when dealing with monitors, unlike SDL2 which uses Index
for the same thing. This problem was already fixed in multiple places
by use of preprocessor branches, so I did the very same thing.

Please, notice that this is a pretty bad solution to this problem,
and I only did it to keep it consistent with the rest of the code.
The more about why it's not correct is mentioned here:
https://github.com/raysan5/raylib/issues/5256#issuecomment-3429156919
Hopefully, someone will refactor it someday :)

Fixes: https://github.com/raysan5/raylib/issues/5256
2025-10-21 22:07:04 +02:00