summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2024-05-16[rcore_web] Relative mouse mode issues. (#3940)Cemal Gönültaş
* [rcore_web] Relative mouse mode issues. * Review formatting.
2024-05-16[RAYMATH] Revert Extern 'C' in raymath (#3985)Jeffery Myers
* Update raylib_api.* by CI * Remove Extern C for raymath, it breaks some cases in mingw-w64 and does not fix any warning issues. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-15LazyPath.path has been deprecated, using b.path() (#3983)CosmicBagel
This works in zig 0.12, LazyPath.path has been removed in zig 0.13 Co-authored-by: CosmicBagel <>
2024-05-13[raymath] Add extern "C" to raymath header for C++ (#3978)Jeffery Myers
* Update raylib_api.* by CI * Add an extern C to raymath to prevent warnings in C++ --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-13feat(zig): add `opengl_version` option (#3979)Alexei Mozaidze
Added `opengl_version` option to `src/build.zig`.
2024-05-12Reviewed input params #3974Ray
2024-05-10remove #define RGFWDEF and make the #undefs only happen for their OS (RGFW) ↵Colleague Riley
(#3971) * Fix Makefile issues (RGFW) (linux) (macOS) * Do not use nanosleep on windows at all (PLATFORM_DESKTOP_RGFW) * remove #define RGFWDEF and make the #undefs only happen for their OS
2024-05-09Do not use "nanosleep" on windows at all (PLATFORM_DESKTOP_RGFW) (#3970)Colleague Riley
* Fix Makefile issues (RGFW) (linux) (macOS) * Do not use nanosleep on windows at all (PLATFORM_DESKTOP_RGFW) --------- Co-authored-by: ColleagueRiley <[email protected]>
2024-05-09Fix Makefile issues (RGFW) (linux) (macOS) (#3969)Colleague Riley
Co-authored-by: ColleagueRiley <[email protected]>
2024-05-07Fixes for loading Music (#3966)veins1
* Fixes for loading Music Fix for #3889 Fixes for QOA crashes. Memory leak FIX on unsuccessful .wav loading. * Added comments
2024-05-07make RGFW a custom platform (#3941)Colleague Riley
* fix minor bugs and errors (x86) for the RGFW platform, update RGFW platform license, update makefile info for RGFW platform * revert * (RGFW) (winapi) fix mouse hide bug when cursor changes * ensure PLATFORM_SHELL is defined (PLATFORM_RGFW) --------- Co-authored-by: ColleagueRiley <[email protected]>
2024-05-07Implementing GetMonitorWidth/Height for DRM (#3956)gabriel-marques
* Implementing GetMonitorWidth/Height and GetMonitorPhysicalWidth/Height for drm Added implementation for DRM for functions : - GetMonitorWidth() - GetMonitorHeight() - GetMonitorPhysicalWidth() - GetMonitorPhysicalHeight() - GetMonnitorName() These functions take an argument but only the value 0 is accepted. This is because the DRM platform implementation manages only one screen for now * Refactor "GetMonitor" properties for DRM Platform Refactored GetMonitorHeight, GetMonitorWidth, GetMonitorPhysicalHeight, GetMonitorPhysicalWidth and GetMonitorName to accept only argument "0" as more than one screen is not supported in DRM platform.
2024-05-05[rcore_desktop] Fix 3693 initial window geometry (#3950)Christian Haas
* Rework window placement and dimensions for multi-monitor setups; - fullscreen apps use primary monitor, exclusively - non-fullscreen apps come in two variants: a) pre-determined window size by user b) use-active-monitor dimensions by user specifying 0x0 Either way, the window shall be centred at the monitor where it was created This may have been the original intent, yet the primary monitor was used also for the second case, regardless where the window opened. * Clean up code, handle error, fix integer-overflow for centering windowed fullscreen
2024-05-05[rlgl] Fix incorrect matrix multiplication order in `rlMultMatrixf` (#3935)bohonghuang
2024-05-05Minor formatting tweaksRay
2024-05-01Set default init values for random #3954Ray
2024-05-01Default shader attrib locations need to be exposedRay
They need to be exposed on `rlgl.h` header section (not implementation section) because with some specific use cases (custom config.h, rmodels module enabled), building fails otherwise.
2024-05-01Update rprand.hRay
2024-05-01Reviewed some warningsRay
2024-04-30Changed one minor Comment (#3949)UmgefallenesGlas
2024-04-28WARNING: BREAKING: REDESIGN: `SetTextLineSpacing()`Ray
Redesigned function to only consider separation between the end of vertical size of one line and the beginning of next line
2024-04-28REVIEWED: `DrawLine()` to avoid pixel rounding issues #3931Ray
2024-04-28Made comments on raylib.h match those present in rcamera.h (#3942)Tomas Fabrizio Orsi
Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
2024-04-28Use builtin_clz for clang on windows (#3939)OetkenPurveyorOfCode
2024-04-28FIX: Added CAMERA_CUSTOM check in `UpdateCamera(Camera *camera, int mode)` ↵Tomas Fabrizio Orsi
(#3938) Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
2024-04-24FIX: Issue with texcoords loading for glTFRay
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)