Commit Graph

7200 Commits

Author SHA1 Message Date
Ray c7b362d19d Update cmake.yml 2024-03-05 14:04:32 +01:00
Ray 38bdcafea1 Update cmake.yml 2024-03-05 14:02:57 +01:00
Ray 2114e48393 Update cmake.yml 2024-03-05 14:00:56 +01:00
Ray 36dabe485c Update cmake.yml 2024-03-05 13:59:36 +01:00
Ray 7584b6aa0b Update cmake.yml 2024-03-04 20:08:59 +01:00
Alexandre Almeida 85a46e42bd CMake: Remove USE_WAYLAND option (#3851)
* CMake: Remove USE_WAYLAND option

* Consistency fix

* Fix oversight
2024-03-04 19:59:26 +01:00
Ray 6e9dcdb599 Update linux_examples.yml 2024-03-04 19:59:04 +01:00
Ray c970afeccd Update linux.yml 2024-03-04 19:58:49 +01:00
Caleb Barger 25caf14be8 Fix fix-build-paths (#3849) 2024-03-01 12:43:19 +01:00
Alexandre Almeida dc1cec8bab Remove GLFW mouse passthrough hack and increase GLFW version in CMake (#3852) 2024-03-01 08:34:53 +01:00
Ray 449f7d3fa6 Merge branch 'master' of https://github.com/raysan5/raylib 2024-02-29 18:50:55 +01:00
Ray fea3395fc1 Review formatting 2024-02-29 18:50:44 +01:00
github-actions[bot] d3f2d94f23 Update raylib_api.* by CI 2024-02-29 17:40:30 +00:00
Ray 1e8450665c ADDED: New function ColorIsEqual() 2024-02-29 18:40:10 +01:00
mooff 94c79917e3 Fix SDL multitouch tracking (#3810)
The fingerId from SDL was used as an index into the CORE.Input.Touch
arrays, but it's an opaque / arbitrary int64, way bigger
than MAX_TOUCH_POINTS, so the first non-simulated touch event would segfault.
2024-02-29 18:30:38 +01:00
Alexandre Almeida 6589311a0b Update GLFW to 3.4 (#3827)
* Update GLFW to 3.4 (draft)

* Add _glfwConnectNull() function to rglfw.c

* Update rglfw.c

* Update Makefile

* Makefile: Replace USE_WAYLAND_DISPLAY with DISABLE_WAYLAND

* Revert "Makefile: Replace USE_WAYLAND_DISPLAY with DISABLE_WAYLAND"

This reverts commit 9e79abde78.

* GlfwImport.cmake: Replace GLFW_USE_WAYLAND with GLFW_BUILD_WAYLAND

* Update rglfw.c

* Output platform selected by GLFW to TRACELOG

* GLFW has removed Mir support
2024-02-29 18:29:32 +01:00
johann nadalutti 53221eb799 feat: vox_loader normals and new voxels shader (#3843) 2024-02-29 18:28:51 +01:00
Dalton Overmyer 077ab6d56b Add an example that generates a random sequence. (#3846) 2024-02-29 18:26:49 +01:00
Ray ed9a6d862b Update rtextures.c 2024-02-28 16:27:55 +01:00
aiafrasinei 2aed94cfc2 Fix examples warnings for macos (#3842) 2024-02-27 22:15:09 +01:00
Laurentino Luna f0807d2be1 Change sanitization check for ExportDataAsCode (#3837)
* Change sanitization check for `ExportDataAsCode`

I opted to use `isalnum` function since it should handle most cases. It
cannot however handle cases of files beginning with numbers.

* Update `ExportDataAsCode` condition

* Reinsert comment on `ExportDataAsCode`
2024-02-27 13:08:47 +01:00
Christian W. Zuckschwerdt 074fbb0264 Fix DRM cross-compile without sysroot (#3839) 2024-02-27 13:08:16 +01:00
Steve Biedermann 1fc4f4ac9c fix build paths (#3835) 2024-02-26 11:20:18 +01:00
Ray 7fae41b5c6 Update models_bone_socket.c 2024-02-26 11:03:12 +01:00
Ray a6425fa1b9 Added note #3822 2024-02-26 11:03:09 +01:00
Ray 7d6e59170b Update rtextures.c 2024-02-26 10:49:04 +01:00
Ray 3086bf1668 Update models_bone_socket.c 2024-02-26 10:49:01 +01:00
Gary M bd6c0bab44 add 16-bit unsigned short vec4 format for gltf joint loading (#3821) 2024-02-26 10:48:19 +01:00
Bowserinator d919d457d3 Add Vector4 math functions & Vector2 variants of some Vector3 functions (#3828) 2024-02-26 10:41:21 +01:00
iP 2a263a09cc bone socket tutorial (#3833)
Tutorial on how to use bones as sockets to calculate the position of something.
2024-02-26 10:30:22 +01:00
Peter0x44 1df91e74b9 Fix building of raylib_opengl_interop on PLATFORM_DESKTOP_SDL (#3826)
I tested this with CMake. I don't know if the examples makefile
currently handles this case.
2024-02-26 10:29:21 +01:00
Gary M 53cfc7c965 assign format to cubemap (#3823) 2024-02-26 10:26:39 +01:00
Alex Macafee 6db5bb5ccd Update BINDINGS.md (#3829)
Raylib VAPI has been updated to support all features added by Raylib 5.0
2024-02-26 10:26:17 +01:00
Peter0x44 b86f78f6b1 Fix examples linking with CMake and -DPLATFORM=SDL (#3825)
Currently, every example fails linking likeso:

[  3%] Linking C executable audio_mixed_processor
/usr/bin/ld: ../raylib/libraylib.a(raudio.c.o): undefined reference to symbol 'exp@@GLIBC_2.29'
/usr/bin/ld: /usr/lib/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Apparently, linking libm explicitly is the solution.
2024-02-26 10:25:47 +01:00
4rk c588a291e6 Add very little sanitization to indentifier names in ExportDataAsCode() (#3832) 2024-02-26 10:22:06 +01:00
github-actions[bot] 2a774a88f5 Update raylib_api.* by CI 2024-02-24 15:47:42 +00:00
GideonSerf 371d25c8c9 Gamepad rumble support with SDL2 (#3819)
* Added gamepad rumble to rcore_desktop.c and rcore_desktop_sdl.c
Still need to add to the rest of the platforms.

* Add SetGamepadVibration warnings to unimplemented platforms.

* Added MAX_GAMEPAD_VIBRATION_TIME
The rumble in SDL2 will continue for MAX_GAMEPAD_VIBRATION_TIME unless the user cancels it with a call to SetGamepadVibration(0.0f,0.0f,0.0f)

* Cast float duration value to Uint 32

* Changed defines from int to float and fixed typo

---------

Co-authored-by: Gideon Serfontein <gse@newspacesystems.com>
2024-02-24 16:47:27 +01:00
Abhishek Rathore bda919033d Fixed typo in a comment (#3816) (#3817)
Fixed a grammatical error by removing "are" to change `... but some are have multiple purposes ...` to `... but some have multiple purposes ...` in `textures/textures_image_generation`
2024-02-23 19:17:33 +01:00
Ray 23616153d4 Update Makefile 2024-02-22 23:25:05 +01:00
Peter0x44 31c6a340ab Remove all uses of deps/mingw (#3805)
The purpose of this directory in GLFW is to provide some headers that
"mingw.org" doesn't. Raylib has long been unable to build with mingw.org
due to using certain symbols that aren't exposed in their headers.
(_ftelli64 and _access, among others.). Mingw-w64 already has the
necessary headers included, and doesn't need any of these external
implementations. For some reason, this also causes the following error
when building with Visual Studio's clang:

clang  -c rglfw.c -Wall -D_GNU_SOURCE -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33 -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing  -std=c99 -O1 -Werror=implicit-function-declaration -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw
In file included from rglfw.c:61:
In file included from ./external/glfw/src/init.c:30:
In file included from ./external/glfw/src/internal.h:331:
In file included from ./external/glfw/src/platform.h:31:
In file included from ./external/glfw/src/win32_platform.h:70:
external/glfw/deps/mingw\xinput.h:227:26: error: a parameter list without types is only allowed in a function definition
  227 | void WINAPI XInputEnable(WINBOOL);
      |

If the last -Iexternal/glfw/deps/mingw is removed, the build works fine.

So, this workaround causes other problems, while not actually helping
raylib.

https://github.com/glfw/glfw/blob/0bb605cd797e4d63709495f4074ec59362064ab4/src/CMakeLists.txt#L272-L279

GLFW's CMakeLists.txt first checks if either dinput.h or xinput.h are
provided by the toolchain, before telling the compiler to search for
headers in that directory. For EVERY compiler that can build raylib,
this is true.

In summary: This directory causes issues when building with some
compilers, and every toolchain that needs this workaround can't build
raylib anyway.
2024-02-22 23:06:22 +01:00
mooff 4f283a0789 Add CMake PLATFORM option for Desktop SDL (#3809) 2024-02-22 23:05:41 +01:00
Nikita Blizniuk 54e0af40c1 fixed loading GLTF animations with 1 frame (#3804) 2024-02-19 18:51:04 +01:00
Ray 77eeb0010e Updated workflows 2024-02-18 12:06:16 +01:00
Ray e42e3188f5 Remove some unneeded line breaks 2024-02-18 11:59:40 +01:00
João Foscarini c251e9309e Fix implicit conversion from float to double then back to float again (#3799) 2024-02-17 10:41:03 +01:00
Ray dc7f81a7b0 Update workflows to use latest actions/upload-artifact 2024-02-13 16:15:18 +01:00
Ray abe243d469 Update linux.yml 2024-02-13 16:13:46 +01:00
Ray 401c5a8638 Minor tweaks to avoid some CodeQL warnings 2024-02-13 15:58:02 +01:00
Ray bb741f53a8 Update rtext.c 2024-02-13 10:43:24 +01:00
Mingjie Shen 6280771dad [rtext] Change strcpy to strncpy to fix buffer overflow (#3795) 2024-02-13 10:38:13 +01:00