Commit Graph

10114 Commits

Author SHA1 Message Date
Ray
a946097de4 Remove trailing spaces 2026-08-26 19:47:40 +02:00
Ray
ba0ac542c5 Update rtext.c 2026-08-26 19:46:45 +02:00
Ross Metcalfe
173b854168 Fix memory leak in rtext LoadFontFromImage method (#6100)
Fix for
[rtext] Memory leak at LoadFontFromImage when failing to compute spacing's
2026-08-26 19:43:03 +02:00
Alexandre Almeida
4c1dc51a6f Fix unused variable warnings (SDL) (#6096) 2026-08-26 18:39:42 +02:00
Alexandre Almeida
b7d7e70ac5 Fix Font name conflict (#6094) 2026-08-26 18:38:45 +02:00
Jorge A. Gomes
d9bf63bdf4 Updated BINDINGS.md for raylib-py 6.0 (#6095)
Co-authored-by: Jorge A. Gomes <jorgegomes83@gmail.com>
2026-08-26 18:37:52 +02:00
Ray
71643d8cda REVIEWED: GetWindowHandle(), avoid on SDL2 with Linux #6085
It generates conflicts with raylib Font symbol
2026-08-25 20:18:08 +02:00
Ray
0fb5c98293 Update models_mesh_uv_painting.c 2026-08-25 19:44:14 +02:00
Ray
e4ccc91d4e REVIEWED: example: textures_portal_window 2026-08-25 19:38:34 +02:00
github-actions[bot]
f3a471fd89 rlparser: update raylib_api.* by CI 2026-08-25 17:26:56 +00:00
Matthew Roush
820b971eff [rshapes] Add some missing Draw*LinesEx() functions and new example shapes_outlines_testbed (#6072)
* [rshapes] Add `DrawEllipseLinesEx()`

Add DrawEllipseLinesEx() to the API for consistency with other shape drawing functions.

* [rshapes] Add `DrawTriangleLinesEx()`

Add DrawTriangleLinesEx() to the API for consistency with other shape drawing functions.

* [rshapes] Add `DrawCircleSectorLinesEx()`

Add DrawCircleSectorLinesEx() to the API for consistency with other shape drawing functions.

* [rshapes] Add `DrawRingLinesEx()`

Add DrawRingLinesEx() to the API for consistency with other shape drawing functions.

* [examples] Add shapes_outlines_testbed

This example stress tests the previously existing and newly added shape outline functions.
2026-08-25 19:26:42 +02:00
William Guimont-Martin
5f58fbe6d7 Added raylib_mojo binding for Mojo language (#6093) 2026-08-25 19:17:03 +02:00
Omar Ibrahim
5c5b357b4a [rcore][win32] Implement GetClipboardImage() (#6091) 2026-08-25 19:16:28 +02:00
PanicTitan
bcc834fc3e [examples] Add models_mesh_uv_painting (#6084)
* [examples] Add models_mesh_uv_painting

Example showing paintable models textures

* Fixed window size and use the raygui header for the buttons
2026-08-25 19:15:43 +02:00
PanicTitan
5b818bb318 [examples] New example models procedural decals (#6083)
* [examples] Add models_procedural_decals

A decal example that works on the web

* Using raygui button
2026-08-25 19:14:58 +02:00
Zaveshaa
e1efefb7f4 [cmake] Propagate Cocoa backend frameworks to consumers of static raylib on macOS (#6086)
* [cmake] Fix standalone configuration of examples project

Configuring examples/ as a standalone project (cd examples && cmake .)
failed with 'Unknown CMake command add_if_flag_compiles' and a missing
cmake_minimum_required() error on CMake 4.x.

- Add cmake_minimum_required(VERSION 3.22), matching the root project
- Include raylib's AddIfFlagCompiles helper via ../cmake
- Default PLATFORM to Desktop when not inherited from the raylib build

* [cmake] Propagate Cocoa backend frameworks to consumers of static raylib on macOS

Bundled GLFW links '-framework Cocoa/IOKit/QuartzCore' privately, and the
static-install export block removes glfw from the exported dependencies.
As a result the installed CMake package only carried OpenGL.framework,
and linking any consumer of libraylib.a failed with undefined Objective-C
symbols (_objc_retain etc.).

Append the three frameworks to the static install interface when the
bundled GLFW is used, so installed consumers get a complete link line.

* Gate macOS Cocoa framework propagation to the Desktop platform
2026-08-24 16:19:56 +02:00
Zaveshaa
2c0021ad89 [cmake] Fix standalone configuration of examples project (#6079)
Configuring examples/ as a standalone project (cd examples && cmake .)
failed with 'Unknown CMake command add_if_flag_compiles' and a missing
cmake_minimum_required() error on CMake 4.x.

- Add cmake_minimum_required(VERSION 3.22), matching the root project
- Include raylib's AddIfFlagCompiles helper via ../cmake
- Default PLATFORM to Desktop when not inherited from the raylib build
2026-08-24 13:34:47 +02:00
PanicTitan
9bde204f1d [examples] Add textures_portal_window (#6082)
Add a example showing a portal like effect
2026-08-24 13:33:43 +02:00
Ray
47231e37ef REVIEWED: shaders_lights_bloom example 2026-08-23 21:05:34 +02:00
PanicTitan
0088b85952 [examples] Add lights_bloom_post (#6081)
Add a bloom light effect example
2026-08-23 20:58:02 +02:00
PanicTitan
338458a92b Fix crash when adding a new textures or audio examples (#6089)
rexm could crash and corrupt examples_list.txt when adding a new example in the textures category. This happened because the tool searched for the category name as plain text, and "text" happens to be part of "textures" (and shows up inside names like core_render_texture), so it sometimes found the wrong spot and inserted the new example in the middle of an unrelated line.

This fix makes the search look for the exact category boundary instead of just any matching text, so it always finds the right place. It also fixes a small out-of-bounds issue that could happen specifically with the audio category, since it's the last one in the list.

Tested by creating a new textures example and a new audio example, both now work correctly and the examples list stays intact.
2026-08-23 20:50:26 +02:00
Jeffery Myers
3836f13878 Also include the playsoundapi.h file that is where playsound is now in lean and mean, this ensures that it gets picked up by the replacement macro in more modern SDKs. (#6088) 2026-08-23 15:29:28 +02:00
William
abe23bf82d [build] Updated examples/Makefile after testing on OSX (#6077)
* Updated examples/Makefile after testing on OSX

I may be wrong, but the best way to install ray lib is through home-brew, and I'd expect that that should be a search path for others.

* Update Makefile

Fixed issues
2026-08-21 21:14:57 +02:00
Ray
6cceb2b873 Update README.md 2026-08-21 21:14:21 +02:00
Ray
86430c156c Update README.md 2026-08-21 21:13:25 +02:00
Ray
3b57140640 Update README.md 2026-08-21 21:11:29 +02:00
Ray
f472c67bb2 Update README.md 2026-08-21 21:08:36 +02:00
Ray
23033d1f18 Update README.md 2026-08-21 21:07:03 +02:00
cladxv
d7225acd8e Add raymojo binding for Mojo language (#6076) 2026-08-21 20:53:09 +02:00
cladxv
af3045377a add raystar binding to BINDINGS.md (#6075) 2026-08-20 16:25:23 +02:00
Ray
f9e2215c49 Update README.md 2026-08-19 21:17:17 +02:00
Ray
d75a6589f0 REVIEWED: GetWindowPosition() #5932 2026-08-19 20:25:01 +02:00
Austin W Smith
47c8e897ce [rcore][GLFW] Fix borderless-windowed mode being always on top (#5868)
* Fix borderless fullscreen always on top

Don't pass a monitor to glfwSetWindowMonitor(). This avoids setting the flag which keeps the window always on top.

* Update for borderless-windowed always on top bug

Only apply the fix for Windows OS, since that seems to be the only
platform with the issue.
2026-08-19 20:02:32 +02:00
luphi
1129d42b48 Mostly rewrote GetPrevDirectoryPath() to correct its behavior in a few cases (#6073) 2026-08-19 19:53:56 +02:00
andzdroid
c58072d595 Update emscripten mouse handling (#6070) 2026-08-18 14:33:31 +02:00
andzdroid
b98c4e031d [rcore_web_emscripten] Handle emscripten keyboard events (#6067)
* Handle emscripten keyboard events

* Prevent stuck keys by clearing on blur event
2026-08-17 18:51:06 +02:00
Ray
9506b58633 Update BINDINGS.md 2026-08-17 18:46:33 +02:00
cladxv
44aa771cc0 add raymod binding for modula 2 and 3 (#6068) 2026-08-17 18:45:49 +02:00
andzdroid
dad422a430 Fix time calculation in GetTime function (#6061) 2026-08-14 00:46:53 +02:00
Philipp
ae83a50fb3 Update BINDINGS.md (#6060) 2026-08-13 21:20:52 +02:00
Alexandre Almeida
4f4b3aef45 Use unmodified GLFW (#6058)
* Use unmodified GLFW

* egl_context.c and osmesa_context.c are common to all platforms

* Define _glfwConnectNull() function
2026-08-13 11:01:10 +02:00
Ray
6862f7b9ca Update BINDINGS.md 2026-08-13 10:56:03 +02:00
Pixeller
ad6b19a37c Add mach-raylib (#6059) 2026-08-13 10:50:22 +02:00
Ray
bb474f69d8 Updated macOS libraries 2026-08-12 13:06:29 +02:00
Alexandre Almeida
77353e7f31 Update GLFW to 3.5.1 (#6051)
* Update GLFW to 3.5.1

* Remove cocoa_time.c from rglfw.c

* Add macos_time.c to rglfw.c

* Redo changes from pull request #3863

* Makefile: add QuartzCore framework when building for macOS

* Add QuartzCore when building for macOS to other build files

* Remove unused GLFW dependencies
2026-08-12 13:02:51 +02:00
dennis
fba8ea01f5 [rlsw] Fix #ifdef -> #if for RLSW_DOUBLE_BUFFERING in sw_default_framebuffer_free() (#6054) 2026-08-12 12:57:23 +02:00
cladxv
57917f1656 add component pascal/oberon2 bindings (#6055) 2026-08-12 12:55:13 +02:00
yoobezxc
d46a59367f [msbuild] MSVC x64 build compatibility support (#6052) (#6053)
Change EnableEnhancedInstructionSet to NotSet for compatibility old hardware.
2026-08-11 21:14:47 +02:00
Federico Andres
868413839a Fix glTF pose sampled at the end of an animation returning a pose from the start (#6048)
GetPoseAtTimeGLTF searches for the interval containing the requested time
with (tstart <= time) && (time < tend). A time equal to the last keyframe
satisfies no interval, so the loop ends without a match and keyframe stays
at its 0 default, making the function return a pose from the beginning of
the animation.

LoadModelAnimationsGLTF samples at t = j/60 for j in [0, keyframeCount),
with keyframeCount = (int)(duration*60) + 1, so the last sample lands
exactly on the end of the animation whenever duration*60 is a whole
number. The last pose of those clips is wrong, which looks like a jerk
right before the animation ends.

Measured on a glTF with a 0.85 s clip: the delta between the last two
poses was 23x the median delta between consecutive poses; with this
change it is 0.3x, in line with every other step.
2026-08-11 21:13:19 +02:00
David Buzatto
1225932449 [examples] Add core_scissor_shape (#6032)
* [examples] Add core_scissor_shape

Clip drawing to an arbitrary shape using the stencil buffer, since
BeginScissorMode() only supports axis-aligned rectangles.

* [examples] Rename to gl_scissor_shapes.c

Rename core_scissor_shape to gl_scissor_shapes, move to others. Per @raysan5's review feedback on the PR: keep OpenGL-facing examples
under examples/others, consistent with rlgl_standalone and
raylib_opengl_interop, to avoid multi-platform/build-system issues.
2026-08-11 18:33:25 +02:00