summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2024-04-23WARNING: Fix breaking issue (introduced some days ago)Ray
2024-04-23Review formattingRay
2024-04-23Add rlCullDistance variables/getters and rlSetClipPlanes function (#3912)KotzaBoss
The `RL_CULL_DISTANCE_` definition remains as the initial value of the variables. Basic usage can be: ```c #include <raylib.h> #include <rlgl.h> rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, MY_CULL_DISTANCE_FAR); if (must_reset_clip_planes) rlSetClipPlanes(RL_CULL_DISTANCE_NEAR, RL_CULL_DISTANCE_FAR); ```
2024-04-23[rlgl] Implement vertex normals for RLGL immediate drawing mode (#3866)bohonghuang
* Fix several non-functional `target_compile_definitions` * Avoid hardcoding the default vertex attribute locations * Implement functional `rlNormal3f` * Add normal definitions for `DrawCube` * Update the basic lighting example to use `DrawCube` and `DrawPlane`
2024-04-22[build.zig] Drop support for 0.11.0 and use more idiomatic build script code ↵freakmangd
(#3927) * Remove support for 0.11.0, and make build script more idiomatic + remove all 0.11.0 compatibility functions + remove most LazyPath .path variants + I didn't touch emscripten, I don't know if its relative or absolute + change all absolute paths to use .cwd_relative + only use the builder allocator + have local dependencies use the package manager + make adding raygui more flexible + use zig-cache for generated wayland files * Remove support for 0.11.0 in examples/build.zig * update examples further and add clarifying comment on addRaygui
2024-04-21Review formattingRay
2024-04-20REVIEWED: `LoadImageRaw()` #3926Ray
2024-04-20REVIEWED: `LoadImageRaw()` #3926Ray
2024-04-20REVIEWED: `rlSetVertexAttribute()`, define last parameter as offset #3800Ray
2024-04-20REVIEWED: `LoadGLTF()`, support 2nd texture coordinates loadingRay
2024-04-20REVIEWED: `LoadGLTF()`, support additional vertex attributes data formats #3890Ray
2024-04-20REVIEWED: `LoadGLTF()`, JOINTS loading #3836Ray
Support all JOINT formats supported by glTF specs
2024-04-20REVIEWED: Remove final punctuation in code commentsRay
2024-04-20REVIEWED: Move some functions, made them staticRay
2024-04-20[raudio] Fix 3664: crash in raudio from multithreading issues (#3907)Christian Haas
* Flip release of buffer; First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization. * Add mutex locks to audio buffer functions; Separate those used from both threads * Flip release of buffer; First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization. * Remove TODO marker; The buffer is in stopped state and its data won't be accessed * Add mutex locks to music/stream functions directly operating on buffer * Secure UpdateMusicStream/PlayMusicStream/UpdateAudioStream; This change is twofold: * Add locks to UpdateMusicStream/UpdateAudioStream (second one needed separation) * Remove unnecessary hack to restart music - inlining the statements resulted in a no-op Especially the second part made it easier to ensure thread-safety overall * Remove redundant check; Already checked at beginning of function
2024-04-20REVIEWED: `DrawRectangleLines()` pixel offsetRay
This could be actually very tricky and GPU/drivers dependant...
2024-04-20REVIEWED: `DrawRectangleLines()` #3884Ray
For consistency, now _almost_ all `Draw*Lines()` functions use `RL_LINES` mode for drawing. It solves the linked issue but it can have other implications, as mentioned in the WARNING comment in `DrawRectangleLines()`. Side note: `DrawRectangleRoundedLines()` now should be reviewed for consistency.
2024-04-20Code gardeningRay
- Review formatting - Improve readability for some functions result return - Minimize early returns - Align LoadFileData() to UnloadFileData()
2024-04-20Added security checks #3924Ray
2024-04-19Review code formatingRay
2024-04-19Update rtext.cRay
2024-04-19Disable some font formats supportRay
2024-04-19Fix window not initializing on primary monitor on GLFW backend (#3923)Rafael Bordoni
The way the current code worked was by calling `GetCurrentMonitor()`, which would always return the monitor at position (0,0). This isn't the primary monitor on all platforms, on Linux in particular it isn't the case. This isn't the case on the SDL backend, after calling `InitWindow()` the window would always show up on the primary monitor. Even on the GLFW backend, if the full screen flag was set it would attempt to put it on the primary monitor as it would call `glfwGetPrimaryMonitor()` to do it, so for consistency's sake we should do it on windowed mode too.
2024-04-17Replaced SQUAD quat interpolation with cubic hermite to align with gltf 2.0 ↵Benji
spec (#3920)
2024-04-15Fix GetKeyPressed for PLATFORM_DESKTOP_SDL (#3869)Arthur
The key handling in PLATFORM_DESKTOP_SDL was faulty in two ways, which led to GetKeyPressed returning incorrect data. CORE.Input.Keyboard.keyPressedQueue was updated only on SDL_TEXTINPUT, meaning only text characters were registered as a pressed key, but not function keys (eg. tab, backspace...). Also on such event, both CORE.Input.Keyboard.keyPressedQueue and CORE.Input.Keyboard.charPressedQueue were assigned the key's corresponding codepoint, when CORE.Input.Keyboard.keyPressedQueue should get the raylib keycode instead. CORE.Input.Keyboard.keyPressedQueue is now updated on SDL_KEYDOWN event instead. Co-authored-by: Arthur <[email protected]>
2024-04-15Added missing interpolation types for GLTF animation channels (#3919)Benji
2024-04-14Reset music.ctxType if loading wasn't succesful (#3917)veins1
Fixes some crashes, e.g. calling StopMusicStream after trying to load Music from a non-existant .mp3 file
2024-04-13Fix FileNotFound: .../src/raylib.h (#3915)Dylan
2024-04-13[build.zig] Fix local dependency breakage (#3913)freakmangd
* fix local dependency breakage * revert accidental change in include path
2024-04-13Changed RLGL_VERSION from "4.5" to "5.0 (#3914)Mute
Line 110 of file rlgl.h is the one in question.
2024-04-10Update to latest zig and simplify build.zig (#3905)freakmangd
* update to latest zig, and don't use srcdir * preserve compatibility, simplify Child.run compatibility
2024-04-10Update rcore_android.c (#3910)Aria
add gamepad previous button state tracking to Android
2024-04-08REVIEWED: Window positioning, avoid out-of-screen window-barRay
2024-04-07Update cgltf.hRay
2024-04-06Remove redundant axis length calculation (#3900)jtainer
2024-04-05Fix #3891 breaking builds for Zig v0.11.0 (#3896)iarkn
The changes brought by #3891 uses `std.process.Child.run` which was renamed from `std.process.Child.exec` in Zig version 0.11.0. This commit adds a version check to use the appropriate function names. Additionally, the `linux_display_backend` configuration option is added so users can set it when running `zig build` with the `-D` option or when using raylib as a dependency.
2024-04-04Update raylib.hRay
2024-04-03REVIEWED: `GetScreenToWorldRayEx()`Ray
2024-04-03Fix framerate recording for .gifs (#3894)Rob Loach
2024-04-02Remove TABSRay
2024-04-02Remove trailing spacesRay
2024-04-01Merge branch 'master' of https://github.com/raysan5/raylibRay
2024-04-01Address parsing issue when generating XML #3893Ray
2024-03-30Fixes zig build that was broken on #3863 (#3891)Nikolas Mauropoulos
* Fixes zig build that was broken on #3863 * Make this work with wayland
2024-03-29Fixing gamepad buttons not working in drm backend (#3888)MrMugame
* Fixing gamepad buttons in drm backend * Remove trailing spaces * Axis enumeration now works properly
2024-03-28Update rcore_drm.cRay
2024-03-28Organizing the drm backend to only use one api to allow for more devices (#3879)MrMugame
* Updating rcore_drm.c to only use one api for input * Change RPI log prefix to DRM * Remove relative checking which is not supported currently * Loop should continue on invalid event in drm backend * Fixed and cleaned up PollKeyboardEvents() in drm backend
2024-03-26[rtextures] Fix LoadImageFromScreen scaling (#3881)proberge-dev
2024-03-21Merge branch 'master' of https://github.com/raysan5/raylibRay
2024-03-21Update rcore.cRay