Stanley Fuller
0932cd3059
[rtext] Add BDF font support ( #3735 )
...
* Add BDF font support
* Include font ascent in glyph y-offset when loading BDF font
2024-02-03 19:28:12 +01:00
IoIxD
7ec43022c1
Fix segfault in ExportWaveAsCode ( #3769 )
...
`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-01 21:16:57 +01:00
Marrony Neris
c0b081fac0
Fix MeasureTextEx() height calculation ( #3770 )
2024-02-01 21:14:22 +01:00
Ray
25306eae42
REVIEWED: Issue on parsing #3765
2024-02-01 00:05:30 +01:00
Ray
d79828076f
REVIEWED: macOS issues #3767
2024-02-01 00:03:06 +01:00
Ray
deaffb0698
Review PR #3746 formating
2024-01-29 21:16:17 +01:00
Jeffery Myers
bebf9547bd
[CORE,RLGL] Fix scale issues when ending a mode ( #3746 )
...
* 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-29 21:10:23 +01:00
Brian E
812645b077
cleaned away unused macros in rcamera.h ( #3762 )
2024-01-28 13:49:07 +01:00
Alessandro Nikolaev
cf10cdd6b3
Added missing "standalone" functions to raudio.c & fixed return bug ( #3760 )
...
* Added GetFileNameWithoutExt, GetFileName & strprbrk to raudio.c
* Gave return values to SaveFileData & SaveFileText in raudio.c
2024-01-28 13:46:27 +01:00
veins1
f4add5f10d
Fix rlSetUniformSampler ( #3759 )
...
Fix rlSetUniformSampler not setting sampler uniform if the same texture was already passed to a different sampler uniform
2024-01-28 13:45:19 +01:00
Victor Gallet
ff1eeafb95
Fix bug to retrieve material specular map in DrawMesh function, with incorrect index ( #3758 )
2024-01-23 12:37:54 +01:00
Idir Carlos Aliane
cb97a8063d
[rtext.c] fixing some comments to align comments style ( #3756 )
2024-01-22 23:15:25 +01:00
Idir Carlos Aliane
6f1c31b25d
Change some minor comments to align with comments style ( #3755 )
2024-01-22 21:26:18 +01:00
Idir Carlos Aliane
c133fee286
[raymath.h] Small code refactor ( #3753 )
...
* [raymath.h] Small refactor to avoid duplicated code
* Fixing some blank spaces to match same syle convention
2024-01-22 19:48:18 +01:00
Brian E
27645e16ab
fixed small typo, replaced th with the ( #3752 )
2024-01-22 11:36:38 +01:00
Antonio Raúl
ef92ced370
fix CheckCollisionPointPoly ( #3750 )
2024-01-22 11:35:55 +01:00
Alexandre Almeida
5c25913e09
Fix Android keycode translation and duplicate key constants ( #3733 )
...
* 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 21:22:33 +01:00
John
192f7f1b29
[rcore rglfw] Feature Test Macros before include ( #3737 )
...
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 <jaylcypher@github.com>
2024-01-20 21:08:19 +01:00
Hongyu Ouyang
0a8165c0ac
Make raylib/raygui work better on touchscreen ( #3728 )
...
* Fix that touch doesn't work for click/drag/raygui
* Add comments
* comments update
2024-01-20 21:05:30 +01:00
Ray
c57b8d5a6a
REVIEWED: ImageKernelConvolution(), formating and warnings
2024-01-15 20:32:46 +01:00
Blockguy24
d2b1256e5c
Fix bounds check for ImageDrawRectangleRec ( #3732 )
2024-01-14 11:21:29 +01:00
Ray
cb2572fe07
Avoid asserts because could crash some decompressions https://github.com/raysan5/raygui/issues/364
2024-01-13 16:57:25 +01:00
Karl Zylinski
520c8cffb2
Simplified GetWindowScaleDPI() so it does not fetch the wrong DPI scale some times (Windows looks at center of window while the old raylib code looked on upper left corner of window, now it just uses the glfw function to fetch the window's current scaling). Also introduced a callback to update the CORE.Window.screenScaling when the content scaling updates, previously scaling did not work correctly on systems with multiple monitors that have different DPI scaling. ( #3701 )
2024-01-13 10:49:04 +01:00
Andrew Lee
b7141d556e
Add shared library build option for build.zig and update to zig 0.12.0-dev.2139 ( #3727 )
...
* update build.zig to 0.12.0-dev.2139 and add shared lib option
* add no-sanitize workarounds
2024-01-13 10:46:53 +01:00
kolunmi
9d628d1d49
Enable animation names for the m3d model format. ( #3714 )
2024-01-11 19:49:25 +01:00
freakmangd
482722d881
Update to latest zig 0.12.0dev while keeping 0.11.0 compatibility ( #3715 )
...
* update build.zig for latest zig 0.12.0dev while still allowing 0.11.0
* update examples/build.zig and add nicer message for type mismatch
2024-01-11 19:48:37 +01:00
Lieven Petersen
a820c37ab2
implemented fill color TODO in ImageResizeCanvas() ( #3720 )
2024-01-11 19:48:14 +01:00
Le Juez Victor
746f129bfe
Fix ImageDrawRectangleRec ( #3721 )
2024-01-11 19:37:42 +01:00
Hongyu Ouyang
64ba5cb570
Update a comment ( #3724 )
2024-01-11 19:33:24 +01:00
Tim Romero
2c124c96df
[rtext] Adjust font atlas area calculation so padding area is not underestimated at small font sizes. ( #3719 )
2024-01-10 21:34:04 +01:00
Alice Nyaa
be0ea89f83
Simplified for loop for some image manip functions ( #3712 )
2024-01-06 19:41:43 +01:00
Ray
a4dc325a0c
Reviewed Makefile SDL2 expected include/lib paths #3705
2024-01-05 22:51:46 +01:00
Ray
b4cb0f3e7d
REVIEWED: LoadImageAnimFromMemory() #3704
2024-01-05 22:33:56 +01:00
Ray
e428ec940b
Merge branch 'master' of https://github.com/raysan5/raylib
2024-01-05 22:33:22 +01:00
Ray
c95b71d40d
Update raudio.c
2024-01-05 22:33:02 +01:00
ubkp
19bdcedf1c
Hide unused warnings from stb_image_resize2.h ( #3708 )
2024-01-05 22:22:58 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
Ray
1f3121d2fa
Revert "Update raylib.h"
...
This reverts commit 7ea6adb29e .
2023-12-28 23:17:07 +01:00
Ray
dde738a2fd
Merge branch 'master' of https://github.com/raysan5/raylib
2023-12-28 23:16:57 +01:00
ubkp
fd5e1e6afb
[rtextures] Fix LoadImageAnimFromMemory() warning for fileData ( #3686 )
...
* Fix LoadImageAnimFromMemory() warning for fileData
* Add LoadImageAnimFromMemory() to raylib.h
* Fix missing ; on previous commit
2023-12-28 23:15:04 +01:00
ubkp
5b5a2d035d
Fix TextReplace warning for const ( #3687 )
2023-12-28 23:13:47 +01:00
Ray
7ea6adb29e
Update raylib.h
2023-12-28 22:10:10 +01:00
IoIxD
3fc43c1096
LoadImageAnimFromMemory ( #3681 )
2023-12-28 20:12:52 +01:00
maverikou
7cfdf33ff0
TextReplace const correctness ( #3678 )
...
* TextReplace const correctness
* cleanup
2023-12-28 20:09:49 +01:00
ubkp
43b4f90eb7
Fix SUPPORT_WINMM_HIGHRES_TIMER for PLATFORM_DESKTOP_SDL ( #3679 )
2023-12-28 20:08:04 +01:00
WisonYe
1727ddb9ea
[ fix-crash-caused-by-zig-build ] - Fixed 'Illegal instruction' crash on 'rtextures' and 'raudio' model that caused by zig build. ( #3682 )
2023-12-28 15:41:33 +01:00
Jeffery Myers
ad64a43b34
[rshapes] Expose shapes drawing texture and rectangle ( #3677 )
...
* provide access to the shape texture so that shapes can be extended outside of raylib with the same optimizations as internal raylib functions.
* PR feedback, comply with C standards
* oops
2023-12-28 15:40:03 +01:00
Ray
e039a221a3
Review formating
2023-12-23 14:07:45 +01:00
Antonis Geralis
7ca95512d8
Review UnloadAutomationEventList ( #3658 )
...
* Review UnloadAutomationEventList
* Update raylib.h
* Update rcore.c
* Update core_automation_events.c
* Fix mistake
2023-12-23 12:14:39 +01:00
Ray
efe3510a9a
REVIEWED: SDL text input to Unicode codepoints #3650
...
REVIEWED: GLFW naming conventions to reflect codepoints reading
2023-12-23 12:04:19 +01:00
Ray
1792bce292
REVIEWED: LoadTextureCubemap(), added mipmaps #3665
2023-12-23 11:26:23 +01:00
Ray
68b6c79c3f
Update rlgl.h
2023-12-20 01:03:52 +01:00
Ray
2fe68a8a12
REVIEWED PR deferred render
2023-12-20 00:51:51 +01:00
Jett
e71153258b
fix for deferred rendering example. ( #3655 )
...
* fix for deferred rendering example.
* missed defines to build.
2023-12-20 00:27:59 +01:00
Cinghy Creations
57a5ebe6c6
Don't use a separate thread when polling for gamepad events on DRM platforms ( #3641 )
2023-12-19 10:47:04 +01:00
kolunmi
8b5943d930
[rmodels] Set cgltf callbacks to use LoadFileData() and UnloadFileData() ( #3652 )
2023-12-19 10:38:57 +01:00
ubkp
9fcfc8d64b
[rcore] Fix ShowCursor(), HideCursor() and review SetMouseCursor() for PLATFORM_WEB ( #3647 )
...
* Fix ShowCursor(), HideCursor() and review SetMouseCursor() for PLATFORM_WEB
* Add static to cursorLUT[]
* Re-review SetMouseCursor()
2023-12-17 13:46:21 +01:00
ubkp
2487174b48
Fix CORE.Input.Mouse.cursorHidden with callbacks for PLATFORM_WEB ( #3644 )
2023-12-16 18:25:55 +01:00
ubkp
0df78d4eeb
Fix fullscreen known issue 1 for PLATFORM_WEB ( #3642 )
2023-12-16 18:22:02 +01:00
Ray
f3adde8bbd
REVIEWED: DrawSplineLinear() to SUPPORT_SPLINE_MITERS
2023-12-15 18:40:19 +01:00
Toctave
0fc1765ff3
Implement miters in DrawSplineLinear ( #3585 )
...
* Implement miters in DrawSplineLinear
* Follow raylib style
2023-12-15 18:34:34 +01:00
Dongkun Lee
9de79861ea
BM Font Extender ( #3536 )
...
* loadbmfont
* bmfontextender
* bm font
* Modify LoadBM Font
* Delete loadbmfontex.diff
* REVIEWED: `LoadBMFont()` PR
* Update rtext.c
* Update rtext.c
---------
Co-authored-by: Dongkun Lee <hope81dklee@outlook.com>
Co-authored-by: Ray <raysan5@gmail.com>
2023-12-15 18:32:01 +01:00
ubkp
e001f7e75e
Add ToggleFullscreen() and required changes for PLATFORM_WEB ( #3634 )
2023-12-15 17:36:27 +01:00
ubkp
489f0b93f9
[rcore] Add GetWindowPosition() implementation for PLATFORM_WEB and fixes #3636 style/format ( #3637 )
...
* Add GetWindowPosition() implementation for PLATFORM_WEB and fixes #3636 style/format
* Remove double space
2023-12-15 16:24:45 +01:00
ubkp
10c82595b0
Add GetMonitorWidth() and GetMonitorHeight() implementations for PLATFORM_WEB ( #3636 )
2023-12-14 20:55:33 +01:00
Ray
38626dcffd
REVIEWED: HighDPI support on Web platform #3372 -WIP-
...
NOTE: The code is commented until the build system gets updated to latest emscripten.
2023-12-14 15:32:53 +01:00
Ray
d29b36310f
Merge branch 'master' of https://github.com/raysan5/raylib
2023-12-14 15:32:45 +01:00
Ray
88db11fda4
Update rtextures.c
2023-12-14 15:30:48 +01:00
Matthew Oros
cec2261e96
[rcore] Flip VR screens ( #3633 )
2023-12-13 21:24:24 +01:00
Matthew Oros
387506faab
[rcore] Remove unused vScreenCenter ( #3632 )
2023-12-13 21:22:44 +01:00
Romash
222f6f7877
Fix box blur symmetry & simplify code ( #3631 )
2023-12-13 21:21:08 +01:00
Benjamin Schmid Ties
6083d2b9f3
fixed coding style in function TextToFloat ( #3627 )
...
* function to convert string to float
* fix code to match coding conventions
2023-12-13 21:20:13 +01:00
Ray
c5ebdb8ba7
REVIEWED: Issue in sequence generation #3612
2023-12-11 09:33:21 +01:00
Ray
6f3c87a999
Fix #3613
2023-12-11 09:21:30 +01:00
ubkp
a2e45239c3
[rcore] Complement SetWindowState() and ClearWindowState() for PLATFORM_WEB ( #3625 )
...
* Complement SetWindowState() and ClearWindowState() for PLATFORM_WEB
* Add FLAG_WINDOW_RESIZABLE to SetWindowState() and ClearWindowState() for PLATFORM_WEB
2023-12-11 09:11:42 +01:00
ubkp
39457ace2f
[rcore] Add ToggleBorderlessWindowed() implementation for PLATFORM_WEB ( #3622 )
...
* Add ToggleBorderlessWindowed() for PLATFORM_WEB
* Fix coding convention
2023-12-11 09:11:20 +01:00
ubkp
44eeda2475
Optimize gesture handling for PLATFORM_DRM ( #3616 )
2023-12-11 08:58:55 +01:00
ubkp
ed8a18ea64
[rcore] Fix real touch gestures for PLATFORM_DESKTOP_SDL ( #3614 )
...
* Fix touch gestures for PLATFORM_DESKTOP_SDL
* Complement note and optimization
* Events optimization
* Optimize gesture handling
* Reverts previous commit and fixes GESTURE_DRAG to not trigger GESTURE_SWIPE* when it ends
* Reapply previous gesture handling optimization also fixing GESTURE_DRAG to not trigger GESTURE_SWIPE* when it ends
2023-12-11 08:57:51 +01:00
David Williams
032cc497ca
Updating CMake version to 5.0 so libraries are correctly versioned ( #3615 )
2023-12-09 19:33:12 +01:00
ubkp
a9ba51aa72
[rcore] Fix IsMouseButtonUp() for PLATFORM_WEB and PLATFORM_DRM ( #3611 )
...
* Fix IsMouseButtonUp() for PLATFORM_WEB
* Fix IsMouseButtonUp() for PLATFORM_DRM
2023-12-07 19:53:27 +01:00
ubkp
ab9bddb3bd
[rcore] Fix IsMouseButtonUp() and add touch events for PLATFORM_DESKTOP_SDL ( #3610 )
...
* Fix IsMouseButtonUp() and add touch events for PLATFORM_DESKTOP_SDL
* Fix coding convention
2023-12-07 19:53:02 +01:00
Kenneth M
8b33d1eeb9
Fix IsMouseButtonUp() ( #3609 )
2023-12-07 19:50:36 +01:00
lesleyrs
6b93180130
Fix for free camera mode ( #3603 )
...
* fix free and fp cam
* revert
2023-12-07 19:49:49 +01:00
ubkp
d99617d084
[rcore] Fix IsKeyPressedRepeat() for PLATFORM_DESKTOP_SDL ( #3605 )
...
* Fix IsKeyPressedRepeat() for PLATFORM_DESKTOP_SDL
* Fix missing space
2023-12-07 19:47:58 +01:00
ubkp
984e83c2d0
Fix GetKeyPressed and GetCharPressed for SDL ( #3604 )
2023-12-05 10:02:48 +01:00
Ray
731b210f51
REVIEWED: WARNING: LoadFontData() avoid fallback glyphs
...
This is a redesign on font loading, missing glyphs are skipped instead of falling back to font `.notdef` special character (usually "tofu" character).
It is changed because not all fonts support a fallback glyph.
One improvement could be allowing users to define a custom fallback character, for example `?` glyph.
2023-12-04 17:32:55 +01:00
Ray
a016b4ded2
REVIEWED: LoadFontData(), load image only if glyph has been found in font
2023-12-03 20:17:16 +01:00
Ray
8a586249d7
Fix Wrong Makefile flag #3593
2023-12-03 20:16:19 +01:00
Ray
d0a783e362
Revert "Fix Windows Hardcoding ( #3600 )"
...
This reverts commit 4ae2af0bcc .
2023-12-03 20:08:48 +01:00
Ray
5aa84a34ea
Revert "Fix warning while using external GLFW older than version 3.4.0 ( #3599 )"
...
This reverts commit f1b0d15813 .
2023-12-03 20:06:34 +01:00
mr sihc
4ae2af0bcc
Fix Windows Hardcoding ( #3600 )
...
Compiles on Linux & co. now
2023-12-03 19:55:16 +01:00
Marco Maia
f1b0d15813
Fix warning while using external GLFW older than version 3.4.0 ( #3599 )
...
Co-authored-by: Marco Maia <marco.maia@iarasystems.com.br>
2023-12-03 19:53:52 +01:00
ubkp
0748dc2d1e
Remove a duplicated loop for PLATFORM_DRM ( #3590 )
2023-12-01 14:55:48 +01:00
Peter0x44
55e7d1aad1
Expose OpenGL take 2 ( #3588 )
...
For some reason, there are actually two macros needed to control this.
Yes, I tried with only one, both are needed
2023-11-30 22:43:02 +01:00
Peter0x44
ef5069862d
Fix mistake in pr #3572 ( #3587 )
2023-11-30 20:07:50 +01:00
Ray
e9ddb15d9d
REVIEWED: rlgl function description and comments
2023-11-30 19:04:38 +01:00
Ray
6b136fac67
ADDED: ExportMeshAsCode()
2023-11-30 13:01:19 +01:00
ubkp
e84099bfd4
Fix CheckCollisionCircleRec() ( #3584 )
2023-11-30 10:11:45 +01:00
ubkp
bd81bdc24a
Fix IsKeyPressedRepeat() for PLATFORM_DRM direct input ( #3583 )
2023-11-30 10:09:57 +01:00
Peter0x44
e7a486fa81
Hide unneeded internal symbols when building raylib as an so or dylib ( #3573 )
2023-11-28 20:43:45 +01:00
RadsammyT
fe53ba80dd
Fix typos in src/platforms/rcore_*.c ( #3581 )
2023-11-28 20:39:10 +01:00
ubkp
1906f1eddf
Fix SetMousePosition() for SDL ( #3580 )
2023-11-28 20:37:04 +01:00
ubkp
811abcb19f
Fix rcamera.h so mouse/keyboard and gamepad can coexist for input ( #3579 )
2023-11-27 16:36:09 +01:00
ubkp
c35c531551
Fix SetWindowIcon() for SDL ( #3578 )
2023-11-27 16:34:17 +01:00
Emmanuel Méra
fc4b0c9aec
Corrected the path of android ndk toolchains for OSX platforms ( #3574 )
2023-11-25 19:11:29 +01:00
Peter0x44
94aba23ef4
Expose glad functions when building raylib as a shared lib ( #3572 )
2023-11-24 00:41:44 +01:00
Steven Schveighoffer
b122270aa3
Fix version info in rlgl.h ( #3558 )
2023-11-21 22:47:52 +01:00
Ray
4dae94821b
Merge branch 'master' of https://github.com/raysan5/raylib
2023-11-21 00:15:06 +01:00
Ray
299cd9b830
Update rcore.c
2023-11-21 00:14:42 +01:00
Ray
994c4f4bdf
Update rcore_desktop_sdl.c
2023-11-20 23:21:04 +01:00
MrScautHD
0137efde7a
Expanding Possibilities: Integrating Additional glTF / GLB Data Formats for Enhanced 3D Experiences ( #3546 )
...
* Add more gltf data formats
* Fix forgot to save bone ids
* Fix misstake
* Fix code format
* Removed useless formats
2023-11-18 20:07:30 +01:00
Alexandre Almeida
f6de0358e1
Disable unused miniaudio features ( #3544 )
...
* Disable unused miniaudio features
* Fix mistakes
2023-11-18 20:06:19 +01:00
Karim
21469e92b0
Image convolution function ImageKernelConvolution ( #3528 )
...
* Added image convultion ImageKernelConvolution
* comment changes
* spelling changes and change to kernel size
* removed kernel normalization inside function
* fix to formating
2023-11-18 20:05:45 +01:00
_Tradam
e41a0c9721
fix for running gles2 with sdl on desktop ( #3542 )
2023-11-18 20:03:13 +01:00
Dennis E. Hamilton
f607cac267
Preparing for 5.1-dev ( #3550 )
...
Adjusting raylib.h to reflect post-5.0 changes now.
2023-11-18 20:01:02 +01:00
Ray
e84a420766
Update miniaudio to v0.11.21
2023-11-15 10:25:09 +01:00
ubkp
db70db5f4d
Fix missing keys on PLATFORM_DESKTOP_SDL ( #3539 )
2023-11-14 11:49:27 +01:00
Ray
5c79c5a2ec
Update rcore.c
2023-11-13 16:11:10 +01:00
ubkp
87f26c845c
Fix mouse button order for SDL ( #3534 )
2023-11-13 00:16:31 +01:00
Ray
4f67f5f159
REVIEWED: TakeScreenshot(), potential issues
2023-11-12 12:38:10 +01:00
Le Juez Victor
9099077075
[rlgl] Fixed return type of GetCompressedFormatName ( #3529 )
...
The return type of `GetCompressedFormatName` has been corrected from `char *` to `const char *`
2023-11-12 00:09:00 +01:00
Ray
1b88f2ec03
Review #3526
2023-11-11 20:53:36 +01:00
ubkp
9634c84e1c
Fix automation recording ( #3523 )
2023-11-11 16:06:23 +01:00
Ray
107ece438a
Reviewed duplicate lines
2023-11-10 19:48:47 +01:00
Ray
e4ea116857
Reviewing automation events on web...
2023-11-10 19:25:28 +01:00
Ray
16b79f2c70
Format tweaks
2023-11-10 19:22:22 +01:00
Ray
30dcbaff20
Update rlgl.h
2023-11-10 13:33:42 +01:00
Ray
737cd0be7f
Updated for upcoming raylib 5.0
2023-11-10 13:27:13 +01:00
maksut
1b524bb2ec
WindowShouldClose(), reset shouldClose flag when window is inited ( #3518 )
2023-11-09 23:36:22 +01:00
Ray
80aafdb38f
REVIEWED: BeginScissorMode() #3510
2023-11-09 23:35:24 +01:00
Ray
c471d22965
Update miniaudio.h
2023-11-09 23:22:30 +01:00
Ray
33580991c7
Update shell.html
2023-11-08 19:34:38 +01:00
Ray
e7114a5c2a
Update rcore.c
2023-11-08 19:34:29 +01:00
Ray
bd3ffa7db3
REDESIGNED: Spline drawing functionality
...
This change allows more versatile and consistent splines drawing. It also gives more control to advance users to draw splines as individual segments.
2023-11-08 17:42:35 +01:00
Ray
fe757b6267
Update rtextures.c
2023-11-08 17:40:23 +01:00
ubkp
271a72f2f2
Fix absRange for PLATFORM_DRM ( #3517 )
2023-11-07 22:15:23 +01:00
Ray
f01d3db739
ADDED: GetSplinePoint*() functions for spline evaluation
...
RENAMED: `DrawLine<spline_type>()` to `DrawSpline<spline_type>()` for more consistent and clear naming
REVIEWED: Bezier drawing parameters order, more consistent
REVIEWED: Spline-based examples -WIP-
2023-11-07 19:25:49 +01:00
Ray
c69e1c379b
Merge branch 'master' of https://github.com/raysan5/raylib
2023-11-07 19:22:21 +01:00
Ray
e8a3f9f7fa
ADDED: Open-graph image alt properties
2023-11-07 19:22:12 +01:00
ubkp
9a2b735645
Fix mouse/touch/gestures for PLATFORM_DRM ( #3515 )
2023-11-07 19:02:24 +01:00
Ray
a57ac0b18e
Update m3d.h
2023-11-07 13:52:36 +01:00
Ray
30987eaf06
Update cgltf.h
2023-11-07 13:52:33 +01:00
Ray
02aa1ee873
Updated dr audio libraries
2023-11-07 13:48:48 +01:00
Ray
11de73dfd6
Update miniaudio.h
2023-11-07 13:44:55 +01:00
Jeffery Myers
6cd37e57a6
Fix warnings in visual studio ( #3512 )
2023-11-06 20:31:07 +01:00
Ray
0a9bd393dc
REVIEWED: sinfl external library to avoid ASAN complaints #3349
2023-11-06 19:30:00 +01:00
Ray
8b2103fc77
REVIEWED: ScanDirectoryFiles*()- Paths building slashes sides #3507
2023-11-06 19:15:11 +01:00
Ray
8739c28949
REVIEWED: Scissor mode to support RenderTexture #3510
2023-11-06 19:09:12 +01:00
gulrak
56b5a5c4f0
BeginScissorMode checks for render texture to avoid using GetWindowScaleDPI ( #3510 )
2023-11-06 19:03:12 +01:00
Ray
304bf2cd17
ADDED: Flag to know we are rendering to texture #3510
2023-11-06 19:02:11 +01:00
JupiterRider
2252f747b7
Update Makefile ( #3509 )
2023-11-05 19:42:56 +01:00
Ray
925978ffde
Update qoa.h
2023-11-05 19:41:22 +01:00
Ray
6ebfc6023b
Update rl_gputex.h
2023-11-05 19:40:00 +01:00
Ray
57f77c3858
Update qoi.h
2023-11-05 19:39:57 +01:00
Ray
53451e98a7
Updated open graph for examples
2023-11-05 13:02:29 +01:00
Ray
cbf0324c34
Updating web shells open-graph info
2023-11-05 12:18:54 +01:00
freakmangd
39b539c42f
Allow raylib to be built with zig 0.11.0 and zig 0.12.0dev (master) ( #3506 )
...
* allow zig 0.11.0 and 0.12.0dev to build raylib
* update comment
2023-11-04 21:05:21 +01:00
Ray
32e4be6fb9
Update rcore.c
2023-11-03 22:23:50 +01:00
Ray
2d1b211920
ADDED: LoadRandomSequence()/UnloadRandomSequence()
2023-11-03 20:21:43 +01:00
AndreaBoroni
5da0074fed
Fixed Issue 3504 ( #3505 )
2023-11-03 19:12:42 +01:00
Ray
301d1b85ab
Update raylib version to **raylib 5.0**
2023-11-02 18:18:27 +01:00
Ray
3c3e311190
Remove unneeded line on web platform
2023-11-02 18:18:05 +01:00
Ray
807516a991
Support OpenGL ES 3.0 building on Web
...
For some reason, the equivalent requested context (WebGL 2.0) is not provided, despite being properly requested.
2023-11-02 18:13:37 +01:00
Ray
b40f93b9e3
Comments tweaks
2023-11-02 18:12:22 +01:00
Ray
01bbd42519
Update rprand.h
2023-11-02 18:11:13 +01:00
ubkp
fe34fc7c6b
Partial fix the gesture system for DRM ( #3502 )
2023-11-02 17:35:11 +01:00
Caleb Barger
ba75a7a23b
build.zig updates for 0.11.0 release. ( #3501 )
2023-11-02 09:14:34 +01:00
ubkp
de1ceae4b0
[core] Fix gestures for PLATFORM_DESKTOP_SDL ( #3499 )
...
* Fix gestures for SDL
* Review the gesture handling for SDL
* Review 2
2023-11-02 09:13:41 +01:00
Ray
35d27fb11b
REVIEWED: Pointers exposing not required for ES3
2023-11-02 09:04:05 +01:00
Ray
d77c918d51
Update rcore_web.c
2023-11-01 16:24:06 +01:00
Ray
c563490cf8
Update rcore_web.c
2023-11-01 15:28:31 +01:00
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
ubkp
ba21b8d274
Moves keymapUS[] and fixes GetCharPressed for DRM ( #3498 )
2023-11-01 12:20:33 +01:00
Ray
1407f6eb46
ADDED: rlBlitFramebuffer(), required for deferred render
2023-10-31 20:46:06 +01:00
Ray
15142a30f5
Update rmodels.c
2023-10-31 20:20:11 +01:00
Ray
43f36b9b05
REDESIGNED: LoadOBJ(), fix #3398
...
- Now triangulated meshes are properly supported
- Simplified code to consider issue situation
- Removed mesh split per material, just define separate mesh if multiple materials are required
2023-10-31 20:15:45 +01:00
Ray
de7beef05d
Remove trailing spaces
2023-10-31 15:54:52 +01:00
Ray
f88604e6d5
Reviewed QOA seek PR
2023-10-31 15:54:38 +01:00
Ray
0a3567439d
Comments tweaks
2023-10-31 15:49:42 +01:00
veins1
6842012748
Fix QOA seeking ( #3494 )
2023-10-31 15:48:24 +01:00
Ray
0d186a0557
REVIEWED: LoadModel(), removed cube fallback mechanism #3459
2023-10-31 11:32:07 +01:00
ubkp
ab61bad168
Fix relative mouse mode for DRM ( #3492 )
2023-10-31 10:16:12 +01:00
Jett
ff04d52f12
Added rlEnablePointMode ( #3490 )
...
for rendering meshes with points.
similar to wire mode.
(NOTE) they still backface cull, so disable that if you want to show the entire mesh.
2023-10-31 08:43:32 +01:00
Ray
7677e4b928
REVIEWED: GetModelBoundingBox() #3485
2023-10-30 20:41:33 +01:00
Ray
b8fce54c0f
Minor tweaks
2023-10-30 13:29:14 +01:00
Ray
abdebc244d
Update rcore.c
2023-10-30 13:14:15 +01:00
Ray
9642fffbbb
REVIEWED: GetRender*() issue on macOS highDPI #3367
2023-10-30 13:13:31 +01:00
Ray
ec91b44fb6
Merge branch 'master' of https://github.com/raysan5/raylib
2023-10-29 21:11:40 +01:00
Ray
fc7dcff4a7
ADDED: Pseudo-random numbers generator!
2023-10-29 21:11:30 +01:00
ubkp
049a6d475d
Fix drm hang up on exit and mouse input issues ( #3484 )
2023-10-29 20:55:02 +01:00
Ray
09075d515a
Some notes and comments
2023-10-29 20:44:32 +01:00
Ray
4625c41431
ADDED: Support for SDL building on Makefile
2023-10-29 20:44:18 +01:00
Ray
601e391b06
Remove physac library from raylib building
...
At this moment, physac is an external unmaintained library, better move out of raylib.
2023-10-29 20:43:52 +01:00
Ray
21243c8234
Update rcore_desktop_sdl.c
2023-10-29 20:42:29 +01:00
JaanDev
1fd61a00e4
Fix compressed DDS texture loading issues ( #3483 )
2023-10-29 20:21:00 +01:00
ubkp
12f3bc10c2
[core] Move rcore.h content to inside rcore.c ( #3479 )
...
* Move rcore.h content inside rcore.c
* Remove extern CoreData CORE
2023-10-29 20:20:19 +01:00
Ray
b4865588f8
REVIEWED: GetCurrentMonitor() #3472
2023-10-29 16:36:46 +01:00
ubkp
01c264123d
Remove rcore.h include from SDL ( #3475 )
2023-10-29 16:23:38 +01:00
SuperUserNameMan
b46505b13d
Update tinyobj_loader_c.h ( #3474 )
...
temporary quickfix for issue #3473
2023-10-27 17:13:10 +02:00
Alexandre Almeida
2db7c727b6
GetCurrentMonitor() - use closest monitor ( #3472 )
2023-10-27 17:01:05 +02:00
Ray
3afd0a55b9
Update miniaudio to latest dev #3471
2023-10-27 16:55:27 +02:00
Ray
f721429f25
ADDED: SetAutomationEventBaseFrame(int frame)
2023-10-27 01:19:10 +02:00
Ray
99dac5451c
ADDED: Automation Events System, exposed to users
...
Added new API to record and play events
Added examples illustrating functionality
2023-10-26 23:59:19 +02:00
Ray
067dbe8657
ADDED: Drop files support to PLATFORM_DESKTOP_SDL
2023-10-26 23:57:07 +02:00
Ray
d0141bd105
Remove trail spaces
2023-10-26 23:56:38 +02:00
Ray
e4547eb422
Remove trail spaces
2023-10-26 23:56:03 +02:00
Ray
1cef62cf05
REVIEWED: glfwGetError() not availbale on PLATFORM_WEB fix #3470
2023-10-26 11:10:41 +02:00
Ray
77730c80d9
Updated to miniaudio v0.11.19 #3448
2023-10-26 10:34:39 +02:00
Ray
eddeafd2ed
Revert "Fix IsGestureDetected parameter inconsistency in raylib.h with rgextures.h ( #3464 )"
...
This reverts commit 804f1a83eb .
2023-10-26 10:28:00 +02:00
jestarray
804f1a83eb
Fix IsGestureDetected parameter inconsistency in raylib.h with rgextures.h ( #3464 )
...
closes https://github.com/raysan5/raylib/issues/3463
2023-10-26 10:24:21 +02:00
Alexandre Almeida
2f6b2897fe
GetCurrentMonitor() - check window center instead of top-left corner ( #3468 )
2023-10-26 10:18:00 +02:00
2Bear
9a687e3153
Fix missing PLATFORM_DESKTOP_SDL checks. ( #3469 )
2023-10-26 10:15:25 +02:00
ubkp
cb1c2ffda1
Fix gamepad names for PLATFORM_DESKTOP/GLFW ( #3462 )
2023-10-25 19:13:51 +02:00
ubkp
b0c0f2e560
Fix OpenURL on SDL ( #3460 )
2023-10-25 12:17:54 +02:00
Ray
7e5eff8a29
Revert "Fix #3461 "
...
This reverts commit 8fbd42d592 .
2023-10-25 10:15:19 +02:00
Ray
8fbd42d592
Fix #3461
2023-10-25 10:14:17 +02:00
Ray
803b1a910e
REVIEWED: Check OpenGL version required, fix #3457
2023-10-23 19:59:29 +02:00
Ray
a0f0034352
REVIEWED: InitPlatform() organization and code-gardening
2023-10-23 19:15:40 +02:00
Ray
3ff6026917
REVIEWED: Move screen capture logic to rcore.c, available for all platforms
2023-10-23 18:32:24 +02:00
Lukas
daf227a185
Fixes a memory leak as a result of creating an AudioBuffer* with the old source.frameCount. This internally allocates memory to the structs data pointer which is then later overridden by the correct sound data of the source sound. ( #3458 )
...
Additionally added a volume assignment from old to new as currently there is no way to get the volume of a sound and the AudioBuffer struct is not reachable from user code due to opaque definition.
2023-10-23 18:16:28 +02:00
Jeffery Myers
4ed776368a
When the frame counter gets to 0, reset the FPS average counter. This allows the window to be closed and reopened with clean FPS stats. ( #3445 )
2023-10-23 10:11:50 +02:00
Peter0x44
b3028e4891
Review prerequisites of rcore.c ( #3453 )
...
rcore_desktop_sdl.c was not present in the list of prerequisites this
patch changes them to use a wildcard, so any other platforms added in
future will be tracked properly
2023-10-22 19:45:49 +02:00
Peter0x44
e33e9da277
Add DrawCircleLinesV for consistency ( #3452 )
...
ImageDrawCircleLinesV already existed, so I'm not sure why this was
missing. It is trivial to implement, anyway
2023-10-22 17:13:49 +02:00
Ray
0e029f719b
Revert "REVIEWED: sinfl, fix #3349 "
...
This reverts commit c4fb6c8517 .
2023-10-22 15:17:35 +02:00
Ray
2b90b5600c
Revert "Update sinfl.h"
...
This reverts commit da9bc564d2 .
2023-10-22 15:15:56 +02:00
Ray
da9bc564d2
Update sinfl.h
2023-10-22 10:31:35 +02:00
Ray
c4fb6c8517
REVIEWED: sinfl, fix #3349
2023-10-22 10:27:22 +02:00
Ray
1aad6a2fc0
REVIEWED: New platform backend template comments
2023-10-22 10:09:03 +02:00
Ray
bcfa7c6718
Update rcore_desktop.c
2023-10-22 10:08:39 +02:00
ubkp
8cda4273ec
[core] Complement implementations for SDL (3) ( #3450 )
...
* Fix SetWindowMinSize and SetWindowMaxSize
* Fix window resizes to update the viewport
* Fix window resizes to update the viewport 2
2023-10-22 09:45:04 +02:00
ubkp
e5993c4a4b
[core] Complement implementations for SDL (2) ( #3447 )
...
* Add note and todo to GetWindowScaleDPI
* Complement ToggleFullscreen and change ToggleBorderlessWindowed
* Complement SetWindowState and ClearWindowState
2023-10-21 12:11:54 +02:00
ubkp
c66eb49199
[core] Complement implementations for SDL ( #3444 )
...
* Complement SetWindowMonitor SDL implementation
* Complement SetWindowMonitor SDL implementation 2
* Complement SetWindowMonitor SDL implementation 3
* Complement GetMonitorPosition SDL implementation
* Small tweaks to various SDL implementation
* Small tweaks to various SDL implementation 2
2023-10-20 17:38:14 +02:00
Ray
081fffd46e
REVIEWED: Issue with functions definitions
2023-10-19 13:57:31 +02:00
Ray
b674e344a8
REVIEWED: Issue with symbols exposure
2023-10-19 13:46:02 +02:00
Ray
65dd0afb60
Update Makefile
2023-10-19 13:41:09 +02:00
Ray
982641228c
REDESIGNED: Move platforms to separate directory #3313
2023-10-19 13:36:10 +02:00
ubkp
a64d606cb3
Fix GetMonitorPhysical* dpi ( #3442 )
2023-10-19 13:09:27 +02:00
Ray
f09840dcdc
Merge branch 'master' of https://github.com/raysan5/raylib
2023-10-19 13:05:54 +02:00
Ray
19ff0e5fb1
REVIEWED: rlLoadTexture() #3440
2023-10-19 13:05:50 +02:00
Le Juez Victor
d7a098ebd3
[core] Add more missing implementations to SDL ( #3439 )
...
* [core] Add more missing implementations to SDL
Add functions: `SetWindowState`, `ClearWindowState`, `SetWindowIcon`
* Completing `SetWIndowState` and `ClearWindowState`
* Add VSync support for SDL
* Fix `CORE.Window.display` size issue
* Fix getting monitor size
We now get the size of the monitor where the window is located
* Add `ToggleBorderlessWindowed`
* Add `ToggleFullscreen`
* Add `GetMonitorPosition`
* Add `SetWindowMonitor`
NOTE: The function is implemented but incomplete
* Replace `TraceLog` by `TRACELOG`
* Fixed mouse delta issue in relative mode
Fixed a delta retrieval issue with `GetMouseDelta` when the mouse is in relative mode. Solution by @ubkp
* Fix `IsKeyPressed` issue
An issue caused `IsKeyPressed` to continuously return true for most keys when pressed
* Fix `SetGamepadMappings` returning
2023-10-19 00:09:00 +02:00
ubkp
d0a265cee8
[core] Add more missing implementations to SDL ( #3436 )
...
* Add more missing implementations 1
* Add more missing implementations 2
* Add more missing implementations 3
* Add more missing implementations 4
* Add more missing implementations 5
* Add more missing implementations 6
2023-10-18 08:05:35 +02:00
Ray
fc6152613f
REVIEWED: raylib 5.0-dev version for a future release
2023-10-18 00:33:05 +02:00
Ray
53cd60bb29
REVIEWED: Move InitWindow()/CloseWindow() to rcore.c #3313
2023-10-18 00:03:47 +02:00
Michael Scherbakow
9534f48425
fix build.zig ( #3433 )
...
for zig master (2023-10-17)
2023-10-17 23:36:42 +02:00
Alexey Kutepov
d7d04a07a2
[raudio] Implement GetMasterVolume() ( #3434 )
...
It feels a little unfinished when you can SetMasterVolume but can't
really Get it. So to finish the symmetry here is the GetMasterVolume
implementation.
2023-10-17 23:35:38 +02:00
Le Juez Victor
80432fde62
Fix SDL keyboard issue ( #3435 )
...
* Fix SDL keyboard issue
We have added a mapping table between raylib keys and SDL scancodes.
* Change `ScancodeToKey` array type
2023-10-17 23:29:28 +02:00
ubkp
f353cd1c3a
[core] Add some missing implementations to SDL ( #3432 )
...
* Add missing implementations
* Add missing implementations 2
* Add missing implementations 3
* Add missing implementations 4
* Add missing implementations 5
2023-10-17 12:01:01 +02:00
Ray
99ede0f747
Added some notes for alternative implementations #3362
2023-10-17 11:09:56 +02:00
Dor Shapira
af83764f4f
Implement GetCurrentMonitor in rcore_desktop_sdl ( #3431 )
...
* Implemented GetCurrentMonitor
* remove traceloog in GetCurrentMonitor
2023-10-17 09:53:53 +02:00
ubkp
fab99b8309
Remove rcore.h include from android ( #3429 )
2023-10-16 14:59:08 +02:00
Peter0x44
859c67792a
Make sure rcore.o gets compiled in more situations ( #3423 )
...
Currently doing the following:
```
make
touch rcore_desktop.c
make
```
Will not result in rcore.o getting compiled again, despite that
rcore_desktop.c has changed
This commit resolves that
2023-10-16 14:08:55 +02:00
neyrox
c4296b166a
Fix GenMeshPlane when resX != resZ ( #3425 )
...
Co-authored-by: Stanislav Yablonskiy <s.yablonskiy@pixonic.com>
2023-10-16 14:06:12 +02:00
ubkp
73363f829b
[core] Fix some mouse issues on SDL ( #3428 )
...
* Fix mouse wheel getting stucked scrolling up or down
* Fix mouse movement on 3D
* Fix mouse button presses
2023-10-16 09:43:20 +02:00
Ray
84818c96f2
ADDED: NEW PLATFORM: SDL (DESKTOP) rcore_desktop_sdl #3313
2023-10-16 00:51:44 +02:00
MichaelFiber
18bedbd095
[core] Change axisCount to be an array ( #3421 )
...
* Update `PLATFORM_DRM` implementation of `GetGamepadAxisCount`
* Update
* Update `PLATFORM_DRM` implementation of `GetGamepadName`
* Add example to test gamepad info functions
Fix typo
* Update new gamepad info example
* Move axis count update out of GamepadThread - race condition
* Remove pointless if statement
* Start integrating stuff from the mikesinput lib
* Add more logging
* Add semicolon
* Add forgotten static
* More fixes
* Update axisCount to be array
* More debugging
* Add forgotten index to ready check
* Add path logging
* Missing parenthesis
* Add missing slash
* Fix axis count being reset to 0
* Fix missing paren
* Test polling joystick button events
* Major updates
* Fix missing array index
* Fix another missing array index
* Update example
* dumb logging
* Wrong constant for ev.code handling
* More dumb logging
* Remove some logging
* Add FPS to gamepad info example and try for max FPS
* tweak
* Revert example
* Add fps back
* Clean up after merge
* Switch axisCount to be an array
2023-10-14 22:51:35 +02:00
ubkp
781f717530
Remove the rcore.h include from drm, web, template ( #3420 )
2023-10-14 22:47:35 +02:00
Le Juez Victor
6d7112fde7
Fix some omissions ( #3418 )
...
Changes the return type of `InitGraphicsDevice()` from `bool` to `int`.
Adds a return at the end of `InitPlatform()`.
2023-10-14 22:46:46 +02:00
Ray
37e3ffcaac
REVIEWED: SetMouseCursor() #3416
2023-10-14 22:45:56 +02:00
BeardedBread
b79e381092
Fix SetMouseCursor implementation for PLATFORM_WEB ( #3416 )
...
* Fix SetMouseCursor implementation for PLATFORM_WEB
- Restrict function to only set the cursor inside the canvas
* Set the CORE input mouse
2023-10-14 22:42:03 +02:00
Blue
bf639f02a8
Fix raygui.c leftover from zig build ( #3417 )
2023-10-14 22:38:36 +02:00
Le Juez Victor
2498170b95
Fix screen size check in InitPlatform() ( #3415 )
2023-10-14 15:11:56 +02:00
BeardedBread
d31b439e04
Implement SetMouseCursor for PLATFORM_WEB ( #3414 )
2023-10-14 15:10:33 +02:00
Ray
54950f9a3d
Make sure CORE.Window.ready is set
2023-10-14 12:55:31 +02:00
Ray
b34c2ecbcb
WARNING: REDESIGN: InitPlatform() to initialize all platform data #3313
...
`InitGraphicsDevice()` could be confusing because the function actually initialized many things: window, graphics, inputs, callbacks, timming, storage... restructured it.
2023-10-14 12:49:54 +02:00
Ray
4521a142c3
tweaks
2023-10-14 11:48:20 +02:00
Ray
005ba155c0
Minor tweaks
2023-10-14 10:56:09 +02:00
Purple4pur
4981acb241
fix zig syntax errors in examples, and make it install executables correctly ( #3395 )
2023-10-13 19:55:52 +02:00
Daniil Kisel
5a0d9c8d43
Fix UpdateSound parameter name ( #3405 )
2023-10-13 19:54:43 +02:00
Le Juez Victor
36abc48cf8
Normalize gestureEvent.position coordinates ( #3406 )
...
Fixed the fact that coordinates were not normalized on Android, preventing detection of `GESTURE_DOUBLE_TAP`
2023-10-13 19:54:00 +02:00
ubkp
f3c27ec157
Fix android, drm compilation issue on InitWindow ( #3407 )
...
* Fix drm compilation issue on InitWindow
* Fix android compilation issue on InitWindow
2023-10-13 19:53:31 +02:00
Babak
0f4a8cf7cb
Ported to stb_image_resize2.h ( #3403 )
2023-10-13 16:37:35 +02:00
Le Juez Victor
0daa5ce1e7
Fix GetMouseDelta() issue for Android ( #3404 )
2023-10-13 16:36:42 +02:00
Ray
2e65bc675c
Moved some platforms functions to generic rcore #3313
...
Reviewed `InitWindow()` to clearly note platform specific code
2023-10-13 14:14:16 +02:00
Ray
876e6b3a0d
REVIEWED: TextFormat(), added "..." for truncation #3366
...
It seems more standard than [TRUN]
2023-10-11 20:25:09 +02:00
ubkp
6ed8acde67
Fix windowMin/Max to screenMin/Max for android, drm, template ( #3400 )
2023-10-11 19:29:21 +02:00
Ray
61af8e7631
REVIEWED: #3399 , Fix #3366
2023-10-11 12:20:03 +02:00
Murlocohol
28fb58f0ea
[rtext] TextFormat() warn user if buffer overflow occured. ( #3399 )
...
* [rtext] TextFormat now alerts user to truncation.
* Update rtext.c
* Update rcore.c
* Update rtext.c
2023-10-11 12:15:40 +02:00
Ray
da9c2894fe
Reorganized some functions, WaitTime() is common to all platforms
2023-10-11 12:10:38 +02:00
Ray
a2c5f01059
Reordered one function
2023-10-11 11:55:12 +02:00
Ray
0d175a69ae
REVIEWED: Mouse and Touch functions generic to all platforms #3313
2023-10-11 11:36:44 +02:00
Ray
6ebfec99c5
Added gamepad functions as generic for all platforms
2023-10-11 11:14:03 +02:00
Ray
ddca525132
RENAMED: rcore_custom to rcore_template
2023-10-11 11:11:09 +02:00
MichaelFiber
daba1a2794
Split drm update input ( #3397 )
...
* Update `PLATFORM_DRM` implementation of `GetGamepadAxisCount`
* Update
* Update `PLATFORM_DRM` implementation of `GetGamepadName`
* Add example to test gamepad info functions
Fix typo
* Update new gamepad info example
* Move axis count update out of GamepadThread - race condition
* Remove pointless if statement
2023-10-11 10:30:51 +02:00
Ray
101a9b0445
Added comments and review some functions #3313
2023-10-10 11:59:41 +02:00
Ray
b94e6290a4
Added some comments and tweaks #3313
2023-10-10 10:50:09 +02:00
Ray
67a1e1ffae
Update rtextures.c
2023-10-10 10:48:46 +02:00
Murlocohol
9702a17152
[raymath] Hotfix for Vector2Angle() and Vector2LineAngle() ( #3396 )
...
* Hotfix for Vector2LineAngle(), should probably be reviewed along with the rest of raylib angle functions to determine what coordinate system we want.
* Hotfix for Vector2LineAngle(), should probably be reviewed along with the rest of raylib angle functions to determine what coordinate system we want.
* [raymath] Hotfix for Vector2Angle and corresponding example
* [raymath] Hotfix for Vector2Angle and corresponding example
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-10-10 10:42:11 +02:00
Murlocohol
f0d949f931
Hotfix for Vector2LineAngle(), should probably be reviewed along with the rest of raylib angle functions to determine what coordinate system we want. ( #3394 )
2023-10-10 08:59:09 +02:00
Ray
0d8a6cfbfa
Revert "Update zig build system to zig version 0.11.0 ( #3393 )"
...
This reverts commit 540ad99442 .
2023-10-10 08:48:55 +02:00
Purple4pur
540ad99442
Update zig build system to zig version 0.11.0 ( #3393 )
...
* update build.zig for zig 0.11.0
* fix build.zig in examples to install executable correctly
* discard build.zig, only use src/build.zig, to avoid annoying zig-out path problem
* update zig version note
2023-10-09 13:05:19 +02:00
Ray
cfffa74f96
REVIEWED: Libs include order
2023-10-09 11:17:22 +02:00
Ray
f93d0ff9bc
Update raudio.c
2023-10-09 11:17:09 +02:00
Ray
b55cf40b91
Format tweaks
2023-10-09 11:07:02 +02:00
Ray
a38afcf053
Merge branch 'master' of https://github.com/raysan5/raylib
2023-10-09 10:51:41 +02:00
Ray
f86f4159e6
Avoid references to PLATFORM_ flags #3313
2023-10-09 10:51:37 +02:00
SuperUserNameMan
dfb0326d00
Update rcore.c ( #3326 )
2023-10-09 09:54:43 +02:00
Ray
33c84b3c00
Update rmodels.c
2023-10-09 09:53:52 +02:00
Dennis E. Hamilton
7ab911b9a4
Ensure m3d faces in non-decreasing materialid sequence ( #3385 )
...
This modification replaces the expensive qsort protection with an
insertion sort that is near-instantaneous in the expected ordered case.
2023-10-09 09:49:58 +02:00
Masoud Naservand
d309b1eaa7
Call nsvgDeleteRasterizer() on created rasterizer ( #3392 )
...
the `NSVGrasterizer *rast` needs to be passed
to nsvgDeleteRasterizer() when we are done with it.
2023-10-09 09:47:54 +02:00
Ray
ea9de852bd
ADDED: Custom platform template! #3313
2023-10-09 09:46:57 +02:00