summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
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
2024-01-23Fix bug to retrieve material specular map in DrawMesh function, with ↵Victor Gallet
incorrect index (#3758)
2024-01-22[rtext.c] fixing some comments to align comments style (#3756)Idir Carlos Aliane
2024-01-22Change some minor comments to align with comments style (#3755)Idir Carlos Aliane
2024-01-22[raymath.h] Small code refactor (#3753)Idir Carlos Aliane
* [raymath.h] Small refactor to avoid duplicated code * Fixing some blank spaces to match same syle convention
2024-01-22fixed small typo, replaced `th` with `the` (#3752)Brian E
2024-01-22fix CheckCollisionPointPoly (#3750)Antonio Raúl
2024-01-20Fix Android keycode translation and duplicate key constants (#3733)Alexandre Almeida
* Fix Android keycode translation * Simplify code a bit * Rename KEYCODE_MAPPED_NUM to KEYCODE_MAP_SIZE * Fix KEY_R and KEY_MENU duplicate * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-20[rcore rglfw] Feature Test Macros before include (#3737)John
Move/Add Feature Test Macros before any includes. See: [GNU Feature Test Macros](https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html) > You should define these macros by using ‘#define’ preprocessor directives at the top of your source code files. These directives must come before any #include of a system header file. It is best to make them the very first thing in the file, preceded only by comments. Alternative changes to rcore would be to change _POSIX_C_SOURCE to 200809L, which removes the need to define _XOPEN_SOURCE >= 500. These changes allow for compilation with -std=c* (such as -std=c99) without adding -D macros to the build step. Co-authored-by: JayLCypher <[email protected]>
2024-01-20Make raylib/raygui work better on touchscreen (#3728)Hongyu Ouyang
* Fix that touch doesn't work for click/drag/raygui * Add comments * comments update
2024-01-15REVIEWED: `ImageKernelConvolution()`, formating and warningsRay
2024-01-14Fix bounds check for `ImageDrawRectangleRec` (#3732)Blockguy24