Commit graph

7,767 commits

Author SHA1 Message Date
evertonse
2500e1c817 [rcore]: Issue an warning instead of an error when checking SUPPORT_CLIPBOARD_IMAGE necessary support detection 2024-11-10 17:05:54 -03:00
evertonse
66fec1a8cb Merge remote-tracking branch 'raysan/master' into clipboard 2024-11-10 15:19:43 -03:00
Ray
09570a05b3 Merge branch 'master' of https://github.com/raysan5/raylib 2024-11-10 17:54:02 +01:00
Ray
85de743d1c Improved logos size 2024-11-10 17:53:50 +01:00
Tomas Slusny
ce3b121f07
build.zig: Remove addRaylib and fix raygui builds when using raylib as dep (#4475)
- addRaylib just duplicates what adding raylib as dependency already does
  so it do not needs to exist
- move raygui build to standard build process when flag is enabled. this
  works correctly when using raylib as dependency and having raygui as
  dependency as well. problem with previous approach was that raygui was in
  options but it was doing nothing because you had to also use addRaygui for
  it to be effective

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2024-11-10 13:47:15 +01:00
github-actions[bot]
d8feef5279 Update raylib_api.* by CI 2024-11-09 18:40:56 +00:00
Everton Jr.
00396e3436
[rcore] Clipboard Image Support (#4459)
* [rcore] add 'GetClipboardImage' for windows

* [rcore] GetClipboardImage removed some unneeded defines

* [rcore] PLATFORM_SDL: create a compatility layer for SDL3

* external: add win32_clipboard.h header only lib

* [rcore] using win32_clipboard on platforms rlfw and rgfw

* [rcore] fix warnings in SDL3 compatibility layer

* Makefile: Allow specifying SDL_LIBRARIES to link, this helps with SDL3

* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW

* Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW

* [rcore]: PLATFORM_SDL: improve clipboard data retrieval

* external: remove unused function from win32_clipboard.h

* Makefile: allow for extra flags necessary when compiling for SDL3

* [rcore]: fix string typo

* [rcore]: Properly handle NULL dpi passing. As is allowed in SDL2

* external: fix arch finding on win32_clipboard.h to allow compilation on msvc cmake CI

* [rcore]: PLATFORM_SDL: Treat monitor as an ID in SDL3 as opposed to an index as in SDL2

* [rcore]: typo
2024-11-09 19:40:41 +01:00
evertonse
08e84a6549 [rcore]: typo 2024-11-08 18:13:41 -03:00
evertonse
d7ca8dc11b [rcore]: PLATFORM_SDL: Treat monitor as an ID in SDL3 as opposed to an index as in SDL2 2024-11-08 18:09:13 -03:00
Tomas Slusny
53b929cbfb
Improve cross-compilation with zig builds (#4468)
- Add xcode_frameworks when cross compiling for mac (ref:
https://github.com/hexops/mach/blob/main/build.zig)
- Add emsdk when cross compiling for wasm (ref:
https://github.com/floooh/sokol-zig/blob/master/build.zig)

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2024-11-08 14:31:31 +01:00
Jett
dc489786b0
UpdateModelAnimation speedup (#4470)
If we borrow from the GPU skinned animation code, we can just multiply the vertex by the matrix * weight and shave a chunk of CPU time.
2024-11-08 14:28:39 +01:00
evertonse
cf00b4aa97 external: fix arch finding on win32_clipboard.h to allow compilation on msvc cmake CI 2024-11-08 00:57:40 -03:00
Jeffery Myers
55a64f51b8
fix float casting warnings (#4471) 2024-11-07 21:42:59 +01:00
evertonse
c3008017c9 [rcore]: Properly handle NULL dpi passing. As is allowed in SDL2 2024-11-07 00:10:10 -03:00
evertonse
01a999cebe [rcore]: fix string typo 2024-11-06 23:54:05 -03:00
evertonse
207fabd759 Makefile: allow for extra flags necessary when compiling for SDL3 2024-11-06 23:09:49 -03:00
evertonse
e1a698a334 external: remove unused function from win32_clipboard.h 2024-11-06 21:18:59 -03:00
evertonse
4d5dfb150c [rcore]: PLATFORM_SDL: improve clipboard data retrieval 2024-11-06 20:47:38 -03:00
evertonse
729de10b1e Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW 2024-11-06 19:41:48 -03:00
evertonse
3e723e73d2 Makefile: examples makefile now compile others/rlgl_standalone only when TARGET_PLATFORM is PLATFORM_DESKTOP_GFLW 2024-11-06 19:23:18 -03:00
evertonse
98ad55fec2 Makefile: Allow specifying SDL_LIBRARIES to link, this helps with SDL3 2024-11-06 19:06:02 -03:00
evertonse
505d5fcf1b [rcore] fix warnings in SDL3 compatibility layer 2024-11-06 18:23:09 -03:00
evertonse
057f7dc98f [rcore] using win32_clipboard on platforms rlfw and rgfw 2024-11-06 17:02:16 -03:00
evertonse
ba5045963e external: add win32_clipboard.h header only lib 2024-11-06 16:52:04 -03:00
evertonse
b5bad8e096 [rcore] PLATFORM_SDL: create a compatility layer for SDL3 2024-11-06 16:50:29 -03:00
Ray
a617e1e217 Update core_2d_camera_mouse_zoom.c 2024-11-06 12:00:39 +01:00
Ray
b47fffb48b Update Makefile.Web 2024-11-05 00:09:12 +01:00
decromo
281ee51aff
implemented new linear gradient generation function (#4462) 2024-11-04 15:57:50 +01:00
Ray
ec953240b1 Update CHANGELOG 2024-11-03 21:02:13 +01:00
waveydave
66a4f2e90b
Fix for issue 4454, MatrixDecompose() gave incorrect output for certain combinations of scale and rotation (#4461) 2024-11-03 20:36:32 +01:00
github-actions[bot]
6028052c7e Update raylib_api.* by CI 2024-11-03 12:12:25 +00:00
Ray
be360d2ad1 RENAMED: UpdateModelAnimationBoneMatrices() to UpdateModelAnimationBones()
Still, not fully convinced of those functions naming, despite quite descriptive, sounds a bit confusing to me...
2024-11-03 13:12:01 +01:00
Ray
24724d33bb Added last week commits info 2024-11-03 12:30:02 +01:00
evertonse
b53c116536 [rcore] GetClipboardImage removed some unneeded defines 2024-11-01 22:15:32 -03:00
MikiZX1
8e5d5f89c2
Update rmodels.c - 'fix' for GenMeshSphere artifact (#4460)
When creating a new sphere mesh with high number of slices/rings the top and bottom parts of the generated sphere are removed. This happens because the triangles in those parts, due to high resolution, end up being very small and are removed as part of the 'par_shapes' library's optimization. Adding par_shapes_set_epsilon_degenerate_sphere(0.0); before generating the sphere mesh sets the threshold for removal of small triangles is removed and the sphere is returned to raylib correctly.
2024-11-01 22:35:35 +01:00
evertonse
7880670597 [rcore] add 'GetClipboardImage' for windows 2024-11-01 16:20:44 -03:00
Ray
9e2591e612 Update Makefile 2024-11-01 12:14:06 +01:00
Ray
b7ef2fd580
Update HISTORY.md 2024-11-01 12:07:27 +01:00
Asdqwe
b8c0842b2e
Fix SetWindowSize() for PLATFORM_WEB (#4452) 2024-10-30 22:21:37 +01:00
Arche Washi
3bad05aa7b
fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms (#4451) 2024-10-30 20:13:53 +01:00
Everton Jr.
ad79d4a884
[shapes] Add shapes_rectangle_advanced example implementing a DrawRectangleRoundedGradientH function (#4435)
* [rshapes] Add  function

* "[shapes] rectangle advanced: fix screen width and height to fit with other examples"
2024-10-29 22:23:51 +01:00
Ray
d15e583460 Update rtext.c 2024-10-29 09:37:38 +01:00
Ray
10c8e4e435 Update rcore_desktop_glfw.c 2024-10-29 09:37:33 +01:00
Jeffery Myers
743e557e1e
Fix inconsistent dll linkage warning on windows (#4447) 2024-10-29 09:34:57 +01:00
mpv-enjoyer
de7ab83f5a
Fix empty input string for MeasureTextEx (#4448) 2024-10-29 09:33:03 +01:00
Ray
f59e185d7a
Update README.md 2024-10-27 22:27:18 +01:00
Jeffery Myers
0e1fc33c5c
Fix signed/unsigned mismatch in rlgl (#4443) 2024-10-26 22:59:50 +02:00
Colleague Riley
7fe5f7126b
Fix MSVC errors for PLATFORM_DESKTOP_RGFW (#4441)
* (rcore_desktop_rgfw.c) fix errors when compiling with mingw

* define WideCharToMultiByte

* update RGFW

* move stdcall def to windows only

* fix raw cursor input

* Fix warnings, update RGFW, fix msvc errors (make sure windows macro _WIN32 is correct)
2024-10-26 22:59:10 +02:00
Nikolas
38cf9f3224
[rtextures] LoadTextureCubemap(): Copy image before generating mipmaps, to avoid dangling re-allocated pointers (#4439) 2024-10-26 22:52:24 +02:00
NishiOwO
ff66b49c19
fix (#4440) 2024-10-26 15:10:35 +02:00