Commit Graph

5695 Commits

Author SHA1 Message Date
Ray bcd84cd36d Some code reviews -WIP- 2022-03-24 18:56:53 +01:00
Ray 22c17da4d7 Update to miniaudio 11.8 2022-03-24 18:22:09 +01:00
Ray ca12ef48e9 Fixes #2408 2022-03-24 11:44:52 +01:00
Ray 65f28460a1 Update shaders_raymarching.c 2022-03-22 23:53:32 +01:00
Ray 3634adf8d4 Update textures_draw_tiled.c 2022-03-22 21:11:56 +01:00
Ray bd95408b06 Update textures_draw_tiled.c 2022-03-22 21:10:51 +01:00
Ray cb62cb675f Minor tweaks const 2022-03-22 18:45:41 +01:00
irishgreencitrus 40794da9e4 Add raylib.jl binding for Julia (#2403) 2022-03-22 14:45:26 +01:00
Ray 0da7830745 REVIEWED: Avoid some float -> double promotions 2022-03-20 12:15:51 +01:00
Jeffery Myers c65efecf0a Verify there is enough space in the batch for the npatch geometry. (#2401) 2022-03-19 22:26:27 +01:00
João Távora 9ecbc465a9 Fix too many opening parens in src/rtextures.c (#2398)
This is a tiny change that makes code in src/rtextures.c "fold"
correctly in editors/IDE's by matching the number of opening
parenthesis to closing parenthesis.  One of those editors is Emacs ;-)
2022-03-18 12:32:00 +01:00
Rodrigo Escar 9723489ccc Implements OpenURL() for Android Platform (#2396) 2022-03-18 11:41:41 +01:00
Ethan Conneely 3d812f8d0c Fix inline enum (#2393) 2022-03-17 11:52:13 +01:00
Kristian Lein-Mathisen 4954778f68 Improve joystick visualisation in gamepad example again (#2391)
As prior commit, but complete fix for XBox controller and trigger
buttons too.

> The joystick range is a float from -1 through +1. Casting this to int
> yields only three possible values: -1, 0, and 1. This gives a
> misleading joystick placement in the demo.
>
> By casting to int after the multiplication to get pixel values, the
> demo reveals the analog feel of the joystick.
2022-03-14 17:16:09 +01:00
Kristian Lein-Mathisen ec7250ca54 Improve joystick visualisation in gamepad example (#2390)
The joystick range is a float from -1 through +1. Casting this to int
yields only three possible values: -1, 0, and 1. This gives a
misleading joystick placement in the demo.

By casting to int after the multiplication, the demo reveals the
analog feel of the joystick.
2022-03-14 16:00:59 +01:00
Ray d2119848ed REVIEWED: OpenURL() 2022-03-14 15:31:37 +01:00
Antonis Geralis f3b0d7f2fe Add naylib (#2386)
* Add naylib

* Fix license
2022-03-13 22:16:18 +01:00
Guido Bartolucci c3a7bd8c51 Updated Zig bindings to reflect updates to that library (#2385)
* Updated zig bindings info

* Updated raylib-zig license
2022-03-12 21:31:24 +01:00
tixvage 3f01b8a93f Fixed an issue in Makefile when using raygui and physac on unix systems (#2384)
* Fixed an issue when using raygui and physac on unix systems
hash "#" is single-line comment character in bash so echo ignores #include and #define

* tab fix
2022-03-12 21:30:54 +01:00
Ray a5a098c97f Remove space 2022-03-12 21:27:24 +01:00
Komari Spaghetti 8065504aba Simplify build.zig to not require user to specify raylib path (#2383)
We can figure out the source file location based on the location of the
build.zig file. No need to require the library user to specify where
raylib is stored.
2022-03-11 19:04:24 +01:00
Anilforextra cda1324e87 Vector2/Vector3: Add squared distance. (#2376) 2022-03-09 20:05:08 +01:00
Ethan Conneely 43dbe67431 Update parser (#2375)
* Add variable len args support

* Api Regen for 4.1dev
2022-03-08 20:00:09 +01:00
Michael Vetter e9f97e1165 Add repology badge (#2367)
So we can see which distributions package raylib.
And in which version they are.
2022-03-08 19:02:39 +01:00
Marco G. Maia c5d2cc8e66 Update raylib-config.cmake (#2374)
Updated cmake to windows users.
So they can `find_package(raylib [...])` with exported target as raylib instead of ${raylib_LIBRARIES}, etc
2022-03-08 18:58:27 +01:00
megagrump 7584ce6f48 Increase atlas size guesstimate; print warnings if atlas size is too small (#2365) 2022-03-01 11:26:48 +01:00
Chris Warren-Smith 7bbaba38e4 Update BINDINGS.md (#2366)
Update SmallBASIC to 4.1-dev
2022-02-28 14:38:04 +01:00
Ray 7fa75cb24e Removed memset() 2022-02-27 22:32:17 +01:00
Ray ead8003044 Possible fix for #2360 2022-02-25 20:41:18 +01:00
Conifer Coniferoslav 296b57e1f5 Update Swift binding version (#2352)
3.7 -> 4.0
2022-02-22 10:28:30 +01:00
Ray 6e9ec253c8 Support clipboard copy/paste on web 2022-02-20 22:07:52 +01:00
raysan5 937e7b3dd9 REVIEWED: Some functions input parametes that should be const 2022-02-20 20:35:28 +01:00
Antonis Geralis 68bad6986d make const (#2348)
* make const

* make const
2022-02-20 20:12:55 +01:00
DavidLyhedDanielsson 761669272f Fix free camera panning in the wrong direction (#2347) 2022-02-20 19:52:13 +01:00
raysan5 d4382f4a52 Removed trailing spaces 2022-02-18 20:30:46 +01:00
Antonis Geralis 963de06d08 follow style guide (#2346)
* follow style guide

* Update rmodels.c
2022-02-17 00:54:21 +01:00
raysan5 4f2bfc5476 Reviewed bug on FindNearestConnectorMode() 2022-02-15 19:38:28 +01:00
Chris 4815065c47 Update Raylib-cs bindings version (#2343) 2022-02-15 19:35:17 +01:00
Jaedeok Kim b54e9db764 Optimize Vector2Rotate() function (#2340) 2022-02-13 18:43:17 +01:00
megagrump f40eed5adf add premultiplied alpha blend mode (#2342) 2022-02-13 18:42:24 +01:00
Ray 4bc6e0d7de Update rtext.c 2022-02-13 10:47:19 +01:00
Ray 9cf170e6e9 Reviewed makefile to use right shell on right platform 2022-02-13 10:47:09 +01:00
raysan5 8c9a0221a4 Update Makefile 2022-02-12 19:38:14 +01:00
raysan5 2f3fc41c33 Allow setting a custom PLATFORM_SHELL 2022-02-12 19:31:27 +01:00
raysan5 6ef6dbff2d REVIEWED: PLATFORM_OS for PLATFORM_WEB 2022-02-12 19:08:31 +01:00
raysan5 d0008ae8cd REVIEWED: Issue when compiling for PLATFORM_WEB 2022-02-12 18:06:21 +01:00
Peter0x44 dd15531e25 Properly fix make clean under windows (#2341)
* Properly fix make clean under sh.exe

* Ensure make clean works properly under Windows if RAYLIB_RELEASE_PATH is modified
2022-02-12 17:59:48 +01:00
raysan5 ddba8478c5 Revert "Reviewed Makefile clean target to use CMD shell on Windows"
This reverts commit ab47c6401e.
2022-02-12 17:58:38 +01:00
raysan5 ab47c6401e Reviewed Makefile clean target to use CMD shell on Windows
Tested on the following environments:
 - w64devkit.exe
 - Windows 10 cmd
 - Notepad++ NppExec console
2022-02-12 17:37:12 +01:00
Peter0x44 81cced4d83 Fix make clean target failing when shell is not cmd (#2338)
GNU make on Windows first tries to find sh.exe on the path,
and will execute build rules using it if it is present.
The make clean target uses the builtin cmd.exe command del, which
won't work under sh.exe

The reason this is not done for the entire Makefile is because it would
break cross-compilation of raylib.
2022-02-10 20:52:34 +01:00