summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2024-03-01Fix fix-build-paths (#3849)Caleb Barger
2024-03-01Remove GLFW mouse passthrough hack and increase GLFW version in CMake (#3852)Alexandre Almeida
2024-02-29Review formattingRay
2024-02-29ADDED: New function `ColorIsEqual()`Ray
2024-02-29Fix SDL multitouch tracking (#3810)mooff
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-29Update GLFW to 3.4 (#3827)Alexandre Almeida
* 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 9e79abde786bf797d8133fd95e8a475cf6e2b066. * 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-29feat: vox_loader normals and new voxels shader (#3843)johann nadalutti
2024-02-28Update rtextures.cRay
2024-02-27Change sanitization check for `ExportDataAsCode` (#3837)Laurentino Luna
* 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-26fix build paths (#3835)Steve Biedermann
2024-02-26Added note #3822Ray
2024-02-26Update rtextures.cRay
2024-02-26add 16-bit unsigned short vec4 format for gltf joint loading (#3821)Gary M
2024-02-26Add Vector4 math functions & Vector2 variants of some Vector3 functions (#3828)Bowserinator
2024-02-26assign format to cubemap (#3823)Gary M
2024-02-26Add very little sanitization to indentifier names in ExportDataAsCode() (#3832)4rk
2024-02-24Gamepad rumble support with SDL2 (#3819)GideonSerf
* 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 <[email protected]>
2024-02-22Remove all uses of deps/mingw (#3805)Peter0x44
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-19fixed loading GLTF animations with 1 frame (#3804)Nikita Blizniuk
2024-02-18Remove some unneeded line breaksRay
2024-02-17Fix implicit conversion from float to double then back to float again (#3799)João Foscarini
2024-02-13Minor tweaks to avoid some CodeQL warningsRay
2024-02-13Update rtext.cRay
2024-02-13[rtext] Change strcpy to strncpy to fix buffer overflow (#3795)Mingjie Shen
2024-02-10Fix warnings in raylib (#3793)Jeffery Myers
2024-02-08REVIEWED: `DrawPixel()` not drawingRay
2024-02-05Reverted Makefile `GL_ENABLE_GET_PROC_ADDRESS` #3713Ray
2024-02-05REVIEWED: PLATFORM_WEB build flags, added GL_ENABLE_GET_PROC_ADDRESSRay
Reviewed flags formating
2024-02-05Fix GetCameraRight (#3784)Danil
2024-02-04Update rtext.cRay
2024-02-04REVIEWED: `rlLoadFramebuffer()`Ray
2024-02-04Reorder functionsRay
2024-02-04Merge branch 'master' of https://github.com/raysan5/raylibRay
2024-02-04REVIEWED: `rlLoadFramebuffer()`, parameters not requiredRay
2024-02-04Added viewport independent raycast (#3709)Luís Almeida
* added viewport independent raycast * Renamed GetMouseRayEx to GetViewRay
2024-02-04Review formating and some defines naming consistencyRay
2024-02-04[rcore] Fix `GetFileNameWithoutExt()` (#3771)oblerion
* Update rcore.c fix [rcore] GetFileNameWithoutExt * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c * Update rcore.c
2024-02-04Add gamepad support to PLATFORM_DESKTOP_SDL (#3776)A
Co-authored-by: Arthur <[email protected]>
2024-02-04Update rtext.cRay
2024-02-04REVIEWED: `LoadFontDataBDF()` name and formatingRay
2024-02-03[rtext] Add BDF font support (#3735)Stanley Fuller
* Add BDF font support * Include font ascent in glyph y-offset when loading BDF font
2024-02-01Fix segfault in ExportWaveAsCode (#3769)IoIxD
`char *txtData = (char *)RL_CALLOC(waveDataSize * 6 + 2000, sizeof(char));` assumes every chunk being added to txtData is 6 bytes. This is not always true, sometimes a newline is involved and the data becomes 12 bytes instead, and this can cause a random segfault. This commit changes `6` to `12`, and explains why in the comment.
2024-02-01Fix MeasureTextEx() height calculation (#3770)Marrony Neris
2024-02-01REVIEWED: Issue on parsing #3765Ray
2024-02-01REVIEWED: macOS issues #3767Ray
2024-01-29Review PR #3746 formatingRay
2024-01-29[CORE,RLGL] Fix scale issues when ending a mode (#3746)Jeffery Myers
* Only restore GL scale back to screen scale if we are returning to a screen, not a render texture. * blankspace * reset back to default screen scale when ending a render texture since we are back on the default fbo
2024-01-28cleaned away unused macros in rcamera.h (#3762)Brian E
2024-01-28Added missing "standalone" functions to raudio.c & fixed return bug (#3760)Alessandro Nikolaev
* Added GetFileNameWithoutExt, GetFileName & strprbrk to raudio.c * Gave return values to SaveFileData & SaveFileText in raudio.c
2024-01-28Fix rlSetUniformSampler (#3759)veins1
Fix rlSetUniformSampler not setting sampler uniform if the same texture was already passed to a different sampler uniform