Arche Washi
3bad05aa7b
fix the issue with GetScreenWidth/GetScreenHeight that was identified on other platforms ( #4451 )
2024-10-30 20:13:53 +01:00
Ray
d15e583460
Update rtext.c
2024-10-29 09:37:38 +01:00
Ray
10c8e4e435
Update rcore_desktop_glfw.c
2024-10-29 09:37:33 +01:00
Jeffery Myers
743e557e1e
Fix inconsistent dll linkage warning on windows ( #4447 )
2024-10-29 09:34:57 +01:00
mpv-enjoyer
de7ab83f5a
Fix empty input string for MeasureTextEx ( #4448 )
2024-10-29 09:33:03 +01:00
Jeffery Myers
0e1fc33c5c
Fix signed/unsigned mismatch in rlgl ( #4443 )
2024-10-26 22:59:50 +02:00
Colleague Riley
7fe5f7126b
Fix MSVC errors for PLATFORM_DESKTOP_RGFW ( #4441 )
...
* (rcore_desktop_rgfw.c) fix errors when compiling with mingw
* define WideCharToMultiByte
* update RGFW
* move stdcall def to windows only
* fix raw cursor input
* Fix warnings, update RGFW, fix msvc errors (make sure windows macro _WIN32 is correct)
2024-10-26 22:59:10 +02:00
Nikolas
38cf9f3224
[rtextures] LoadTextureCubemap(): Copy image before generating mipmaps, to avoid dangling re-allocated pointers ( #4439 )
2024-10-26 22:52:24 +02:00
Ray
7ad8fa689f
REVIEWED: LoadTextureCubemap() to avoid crash #4429
2024-10-26 13:51:10 +02:00
Ray
ec79bffa20
Update stb_truetype.h
2024-10-26 13:13:05 +02:00
Ray
dc679cd1c7
Update stb_image_resize2.h
2024-10-26 13:12:38 +02:00
Ray
28e7e2cffd
Update stb_image.h
2024-10-26 13:12:36 +02:00
Ray
d0e11a8c92
Update qoa.h
2024-10-26 13:12:33 +02:00
Ray
e70bf2bce1
Update dr_wav.h
2024-10-26 13:12:30 +02:00
Ray
c085c73014
Update dr_mp3.h
2024-10-26 13:12:26 +02:00
Ray
c6b1ecc593
Update cgltf.h
2024-10-26 13:12:24 +02:00
Ray
1f6b3384fa
Reviewed formatting, remove end-line points, for consistency with comments
2024-10-26 12:26:00 +02:00
Ray
80b490c8f1
Reviewed formating to follow raylib conventions #4429
2024-10-26 12:15:06 +02:00
Nikolas
7fedf9e0b8
[rtextures/rlgl] Load mipmaps for cubemaps ( #4429 )
...
* [rlgl] Load cubemap mipmaps
* [rtextures] Only generate mipmaps that don't already exist
* [rtextures] ImageDraw(): Implement drawing to mipmaps
* [rtextures] Load cubemap mipmaps
2024-10-26 12:09:38 +02:00
Ray
4e3fc84050
Minor format tweaks
2024-10-26 00:52:22 +02:00
Ray
22c77d17b7
REVIEWED: WebGL2 (OpenGL ES 3.0) backend flags (PLATFORM_WEB) #4330
2024-10-26 00:51:37 +02:00
Ray
16368cd353
REVIEWED: DrawRectangleLines(), considering view matrix for lines "alignment"
2024-10-24 13:11:39 +02:00
RadsammyT
385187f795
[rshapes] Review DrawRectangleLines() pixel offset ( #4261 )
...
* [rshapes] Remove `DrawRectangleLines()`'s + 1 offset
* ... and replace it with a -/+ 0.5 offset divided by current cam's zoom.
2024-10-24 13:08:12 +02:00
Ray
6ff0b03629
REVIEWED: UpdateModelAnimationBoneMatrices() comments
2024-10-24 12:46:02 +02:00
Ray
5065b85d33
Update rlgl.h
2024-10-24 12:45:12 +02:00
Ray
b0140b876b
REVIEWED: GPU skninning on Web, some gotchas! #4412
2024-10-24 12:25:05 +02:00
Ray
3483a4d9cb
Update raylib.h
2024-10-24 11:57:36 +02:00
Ray
5706cfd600
Update Makefile
2024-10-24 11:50:42 +02:00
Ray
d85c6fe2c0
Update raylib.h
2024-10-24 11:50:30 +02:00
Ray
2072b4fa04
Update raylib.h
2024-10-24 09:59:54 +02:00
Jeffery Myers
0b650f62a6
[RTEXTURES] Remove the panorama cubemap layout option ( #4425 )
...
* Remove the panorama cubemap layout, it was not implemented.
Left a todo in the code for some aspiring developer to finish.
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-24 09:06:24 +02:00
Ray
00c1f0836b
Update Makefile
2024-10-24 01:35:37 +02:00
Ray
708089f560
Reviewed and reverted unneeded module check, rtextures should not depend on rtext
2024-10-23 23:29:05 +02:00
Franz
6f4407cb15
Fix typo in rshapes.c ( #4421 )
2024-10-23 17:04:15 +02:00
Asdqwe
7a4a84a561
[rcore] Fix #4405 ( #4420 )
...
* Fix #4405 at runtime
* Add parameter validation
* Remove default global deadzone
2024-10-23 00:59:50 +02:00
Ray
4b60ce700f
Update raylib.h
2024-10-23 00:21:14 +02:00
Ray
352f4ce2c4
Update config.h
2024-10-23 00:21:06 +02:00
Asdqwe
4cd243f0a3
Simplify EmscriptenResizeCallback() ( #4415 )
2024-10-22 13:44:53 +02:00
Asdqwe
f8f6aa0907
[rcore] Adds implementation to SetGamepadVibration() on PLATFORM_WEB and updates it on PLATFORM_DESKTOP_SDL to handle duration ( #4410 )
...
* Updates SetGamepadVibration()
* Handle MAX_GAMEPAD_VIBRATION_TIME
* Revert low/high parameters back to left/rightMotor
* Fix missin semicolon
* Convert duration to seconds
* Add SetGamepadVibration() implementation to PLATFORM_WEB
2024-10-22 00:06:37 +02:00
Ray
cd3de0af0c
Merge branch 'master' of https://github.com/raysan5/raylib
2024-10-21 20:47:10 +02:00
Ray
f4cbc1fbae
REVIEWED: GetGestureHoldDuration() comments
2024-10-21 20:47:08 +02:00
Jeffery Myers
a2fcbc94fd
[Raymath] Add matrix operators to raymath for C++ ( #4409 )
...
* Add matrix operators to raymath for C++
* Fix spaces
2024-10-21 18:38:42 +02:00
Ray
f60c6d472c
Update raymath.h
2024-10-21 17:26:42 +02:00
Ray
f141c75cde
Removed trailing spaces
2024-10-21 17:00:52 +02:00
Ray
c935ca3168
Reviewed formatting #4408
2024-10-21 16:59:55 +02:00
Rapha
f402147a63
Updated instanced rendering support loading ( #4408 )
2024-10-21 16:56:19 +02:00
Ray
7601468211
REVIEWED: Formatting and raymath version #4385
2024-10-21 16:25:45 +02:00
Jeffery Myers
72f8c354b0
[Raymath] Add C++ operator overloads for common math function ( #4385 )
...
* Update raylib_api.* by CI
* Add math operators for C++ to raymath
* better #define for disabling C++ operators
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-21 16:17:50 +02:00
Sage Hane
110ee74875
build.zig: Merge src/build.zig to build.zig ( #4393 )
...
* build.zig: Move `src/build.zig` to `build.zig`
* build.zig: Remove uses of `@src`
* build.zig: Update entry point
2024-10-21 12:57:11 +02:00
Asdqwe
9d0b1f0171
Adds SetWindowOpacity() implementation for PLATFORM_WEB ( #4403 )
2024-10-21 09:47:19 +02:00
Asdqwe
cb21fe88d3
Fix MaximizeWindow() for PLATFORM_WEB ( #4404 )
2024-10-21 09:45:46 +02:00
Asdqwe
4290a0d9f2
[rcore] [web] Updates SetWindowState() and ClearWindowState() to handle FLAG_WINDOW_MAXIMIZED for PLATFORM_WEB ( #4402 )
...
* Updates SetWindowState() and ClearWindowState() to handle FLAG_WINDOW_MAXIMIZED for PLATFORM_WEB
* Update MaximizeWindow() and RestoreWindow() to set/unset the FLAG_WINDOW_MAXIMIZED
2024-10-21 01:04:32 +02:00
Nikolas
51ff6586f4
[rtextures] ImageDraw(): Don't try to blend images without alpha ( #4395 )
2024-10-21 00:31:01 +02:00
Asdqwe
3dbbe60376
Adds MaximizeWindow() and RestoreWindow() implementation for PLATFORM_WEB ( #4397 )
2024-10-21 00:29:32 +02:00
Sage Hane
ce9259cd02
build.zig: Fix various issues around -Dconfig ( #4398 )
...
* build.zig: Fix various issues around `-Dconfig`
* build.zig: Parse all relevant flags from `src/config.h` at comptime
2024-10-21 00:27:25 +02:00
Le Juez Victor
23354e1551
correction of comments ( #4400 )
...
The indication of locations for bone ids and bone weights did not correspond to their default values in config.h
2024-10-21 00:26:15 +02:00
Nikolas
902d3c92e3
[rl_gputex] Correctly load mipmaps from DDS files ( #4399 )
2024-10-21 00:25:33 +02:00
Sage Hane
dc5e6e0ad0
build.zig: Clean up my mess ( #4387 )
2024-10-18 21:03:27 +02:00
Anthony Carbajal
80393c0fb6
[rcore] added sha1 implementation ( #4390 )
...
* added sha1 implementation
* added missing part
* fixed issue
* fix to match other implementations
2024-10-18 01:15:19 +02:00
Asdqwe
a2e31c4e1b
Fix #4388 ( #4392 )
2024-10-17 15:35:49 +02:00
Ray
8cbf34ddc4
WARNING: BREAKING: Renamed several functions for data validation #3930
2024-10-16 19:26:12 +02:00
Ray
361b0e85c1
ADDED: Utility functions: ComputeCRC32() and ComputeMD5()
2024-10-16 16:49:50 +02:00
Jojaby
c9c830cb97
Fix rectangle width and height check to account for squares ( #4382 )
2024-10-15 19:04:30 +02:00
R-YaTian
8d267aaf23
qoi: Added support for image of channels 3 ( #4384 )
2024-10-15 19:03:17 +02:00
yuval_dev
99ff770edc
Fix the type mismatch caused due to unsupported ?[]const u8 ( #4383 )
...
Co-authored-by: Yuval Herman <yuvalherman99@gmail.com>
2024-10-15 19:02:20 +02:00
Sage Hane
c18677e70f
build.zig: Very minor fixes ( #4381 )
2024-10-13 20:24:39 +02:00
Ray
735308f8eb
REVIEWED: CodepointToUTF8(), clean static buffer #4379
2024-10-13 20:02:40 +02:00
Sage Hane
bac3798ad3
build.zig: Fix @src logic and a few things ( #4380 )
2024-10-13 18:58:42 +02:00
Ray
d29eb34cfb
REMOVED: LoadImageSvg()
2024-10-10 21:17:31 +02:00
Ray
1effe92129
WARNING: REMOVED: SVG files loading and drawing, moving it to raylib-extras
2024-10-10 20:37:46 +02:00
Sage Hane
d3f86eb957
build.zig: Improve logic ( #4375 )
...
* build.zig: Fix `@src` logic
* build.zig: Clarify build error
* build.zig: Add option for enabling `raygui`
* build.zig: Expose `Options` type
2024-10-10 18:56:43 +02:00
William Culver
c4be013294
Fix build.zig ( #4374 )
2024-10-10 18:56:29 +02:00
Harald Scheirich
454acca84b
Some update to gltf loading ( #4373 )
...
Only warns when there are more animations than currently implemented
Allows mesh indices to be unsigned char
2024-10-10 18:53:02 +02:00
Ray
3fb1ba25ac
Removed tabs and triple line-breaks
2024-10-08 18:45:52 +02:00
Colleague Riley
44e37c5f97
Update RGFW ( #4372 )
...
* (rcore_desktop_rgfw.c) fix errors when compiling with mingw
* define WideCharToMultiByte
* update RGFW
* move stdcall def to windows only
* fix raw cursor input
2024-10-08 18:39:15 +02:00
Anthony Carbajal
712ab798d1
updated makefile to disable wayland by default ( #4369 )
2024-10-08 18:33:33 +02:00
Anthony Carbajal
43b109a4e3
removed old comment ( #4370 )
2024-10-07 09:32:04 +02:00
Visen
b290d47bd5
[zig] Fix build.zig bug ( #4366 )
...
* fixed zig config.h bug
* zig fmt
2024-10-06 15:52:01 +02:00
Ray
f9e709915a
Fix #4355
2024-10-04 11:24:02 +02:00
Anthony Carbajal
da95f88c36
updated camera speeds with GetFrameTime ( #4362 )
2024-10-04 11:15:43 +02:00
Nikolas
0ef0791854
Allow Zig build script to change desktop backend ( #4358 )
2024-10-04 11:05:19 +02:00
Asdqwe
96d91a3892
[rlgl] Fix rlgl standalone defaults ( #4357 )
...
* Fix rlgl standalone defaults
* Fix rmodels
2024-10-02 11:41:21 +02:00
Jeffery Myers
09987b01cc
[MODELS] Better fix for GPU skinning issues ( #4353 )
...
* Make the max VBO match the animation flag.
* re-enable GPU skinning for mac, and fix the max buffer to be correct based on the GPU skinning support flag.
2024-10-02 10:49:56 +02:00
Asdqwe
d9c10ed264
Fixes GetClipboardText() memory leak for PLATFORM_DESKTOP_SDL ( #4354 )
2024-10-02 10:49:06 +02:00
Asdqwe
282d6478ba
Complements the #4348 GPU skinning fix ( #4352 )
2024-10-01 12:09:06 +02:00
Jeffery Myers
0e7bcd5639
[MODELS] Disable GPU skinning for MacOS platform ( #4348 )
...
* Update raylib_api.* by CI
* Disable GPU skinning on MacOS
Add GPU skinning example to MSVC Projects.
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-30 12:10:02 +02:00
Ray
84a4d93bc4
Fix #4349
2024-09-30 12:06:53 +02:00
Jeffery Myers
0573ef0382
[SHAPES] Add more detail to comment for DrawPixel ( #4344 )
...
* Update raylib_api.* by CI
* Add comment that draw pixel uses geometry and may be slow
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-09-27 23:06:54 +02:00
Menno van der Graaf
55e83468c9
Fix isGpuReady flag on android ( #4340 )
2024-09-24 20:02:54 +02:00
Ray
13178b9373
Update rcore.c
2024-09-22 23:01:22 +02:00
Ray
291063c98f
Update rcore.c
2024-09-22 22:56:21 +02:00
Ray
24a1cd8c5b
Update rcore.c
2024-09-22 22:50:47 +02:00
Ray
352c450ad0
Update rcore.c
2024-09-22 22:43:35 +02:00
Ray
100f6624d6
Update rcore.c
2024-09-22 22:36:17 +02:00
Ray
55a25ac04b
ADDED: MakeDirectory()
2024-09-22 22:11:08 +02:00
Ray
1eb8ff5e54
LoadFontDefault(): Initialize glyphs and recs to zero #4319
2024-09-22 18:05:58 +02:00
Asdqwe
212b1e5fe7
Fix rlgl standalone defaults ( #4334 )
2024-09-21 23:11:40 +02:00
Ray
e5d0cc978a
Some minor tweaks
2024-09-20 17:32:01 +02:00
Daniel Holden
86ead96263
[rmodels] Optional GPU skinning ( #4321 )
...
* Added optional GPU skinning
* Added skinned bone matrices support for different file formats.
* Moved new shader locations to end of enum to avoid breaking existing examples. Added gpu skinning on drawing of instanced meshes.
* Added GPU skinning example.
* Removed variable declaration to avoid shadowing warning.
2024-09-20 17:30:37 +02:00
Ray
0a03ed913b
Update raylib.h
2024-09-17 17:30:40 +02:00
Ray
627e76cf7b
REVIEWED: Directory filter tag #4323
2024-09-17 10:26:32 +02:00
Ray
186787e311
Merge branch 'master' of https://github.com/raysan5/raylib
2024-09-15 13:21:22 +02:00
Ray
0e4ebaf89d
REVIEWED: DrawTexturePro() to avoid negative dest rec #4316
2024-09-15 13:20:43 +02:00
foxblock
16e9317220
[rcore] Add filtering folders to LoadDirectoryFilesEx()/ScanDirectoryFiles() ( #4302 )
...
* Add filtering folders in ScanDirectoryFiles and ScanDirectoryFilesRecursively
Add define FILTER_FOLDER for that purpose
Fix folder names matching filter being added to result
* Move FILTER_FOLDER define to internals of rcore and document option in comment
2024-09-15 13:05:01 +02:00
Ray
e9bbf02b2b
Update rtextures.c
2024-09-15 13:03:12 +02:00
Ray
b807f633d9
REVIEWED: ColorLerp() formatting #4310
2024-09-15 13:01:59 +02:00
SusgUY446
ddc523ffbe
[rtextures] add MixColors. a function to mix 2 colors together ( #4310 )
...
* added MixColors function to mix 2 colors together (Line 1428 raylib.h and Line 4995 in rtextures.c)
* renamed MixColors to ColorLerp (https://github.com/raysan5/raylib/pull/4310#issuecomment-2340121038 )
* changed ColorLerp to be more like other functions
---------
Co-authored-by: CI <-ci@not-real.com>
2024-09-15 12:55:45 +02:00
base
d02fcc5262
chore: GetApplicationDirectory definition for FreeBSD ( #4318 )
2024-09-15 12:51:20 +02:00
Jett
ed702673ea
fix for hardcoded index values in vboID array ( #4312 )
...
changing any of the #defines in CONFIG.H would cause issues when rendering.
2024-09-11 22:57:19 +02:00
masnm
0656440e38
fix vld1q_f16 undeclared in arm on stb_image_resize2.h v2.10 ( #4309 )
2024-09-08 20:24:53 +02:00
masnm
10b01ba7c2
Change implicit conversion to explicit conversion to remove warning ( #4308 )
2024-09-06 23:16:17 +02:00
Michał Jaskólski
42022c3531
fix: In certain cases the connector status is reported UNKNOWN, should be conisdered as CONNECTED ( #4305 )
...
Co-authored-by: Michal Jaskolski <michal.jaskolski@hexagon.com>
2024-09-03 14:38:12 +02:00
carverdamien
59b44a4908
Add uConsole mapping ( #4297 )
2024-09-02 10:01:30 +02:00
hanaxars
5f49ec3d64
Fix missing equal sign ( #4294 )
...
I just noticed there is a missing equal sign. This PR fixes this.
2024-08-28 18:35:35 +02:00
Hesham Abourgheba
8ea5db3ec4
fix(rcore/android): Allow main() to return it its caller on configuration changes. ( #4288 )
2024-08-25 18:51:08 +02:00
Jeffery Myers
91a9888baa
[rModels] Correctly split obj meshes by material ( #4285 )
...
* Correctly split meshes from tinyobj by material so they can be represented by raylib correctly
* PR Feedback
2024-08-25 18:49:52 +02:00
Ray
f5ef357810
Update rtext.c
2024-08-25 13:55:53 +02:00
Ray
5604f6d8a3
Update rlgl.h
2024-08-25 12:57:05 +02:00
Ray
157c7c21d4
ADDED: more uniform data type options #4137
2024-08-25 12:52:27 +02:00
Ray
dec7f12b14
Update raylib.h
2024-08-25 12:51:55 +02:00
Tchan0
d314afc451
rlgl.h: glint64 did not exist before OpenGL 3.2 ( #4284 )
...
Compilation breaks on rlgl.h for early OpenGL versions.
Glint64 did not exist on those versions (< OpenGL 3.2)
2024-08-24 20:35:49 +02:00
Dave Green
0c06a08e07
[rcore][desktop_glfw] Keeping CORE.Window.position properly in sync with glfw window position ( #4190 )
...
* WindowPosCallback added.
CORE.Window.position is now properly kept in sync with the glfw window position.
* Update rcore_desktop_glfw.c
Comments updated.
* Setting CORE.Window.position correctly in InitPlatform() as well.
This also fixes not centering the window correctly when the high dpi flag was enabled.
* Fixes centering the window in the SetWindowMonitor() function.
Here the render size has to be used again in case the high dpi flag is enabled.
* Update Window Position
Update Window Position right away in ToggleFullscreen() & ToggleBorderlessWindowed() functions
2024-08-24 20:33:21 +02:00
Jeffery Myers
0aba21f71c
[RCORE] Update comments on fullscreen and boderless window to describe what they do ( #4280 )
...
* Update raylib_api.* by CI
* update fullscreen and borderless comments to better describe what they do.
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-24 20:31:28 +02:00
Ray
4c9282b090
ADDED: isGpuReady flag, allow font loading with no GPU acceleration
2024-08-24 18:59:24 +02:00
Ray
78e86b6ea5
Update rlgl.h
2024-08-24 18:58:43 +02:00
Colleague Riley
bc0bd98763
(rcore_desktop_rgfw.c) fix errors when compiling with mingw ( #4282 )
...
* (rcore_desktop_rgfw.c) fix errors when compiling with mingw
* define WideCharToMultiByte
2024-08-24 18:43:46 +02:00
Reese Gallagher
7bde76ca2c
[rmodels] More performant point cloud rendering with DrawModelPoints() ( #4203 )
...
* Added the ability to draw a model as a point cloud
* Added example to demonstrate drawing a model as a point cloud
* polished the demo a bit
* picture for example
* adhere to conventions for example
* update png to match aspect ratio
* minor changes
* address code convention comments
* added point rendering to makefiles
* added point rendering to readme and renumbered examples
* comment formatting
---------
Co-authored-by: Reese Gallagher <re325479@ucf.edu.com>
Co-authored-by: Ray <raysan5@gmail.com>
2024-08-24 18:42:38 +02:00
konstruktor227
b0c3013b51
[raudio] Support 24-bit FLACs in LoadMusicStreamFromMemory ( #4279 )
...
Force conversion to 16-bit, same as how it is done in `LoadMusicStream`.
This fixes the problem where 24-bit FLACs play silence or broken sound.
2024-08-23 22:51:29 +02:00
Menno van der Graaf
3079c69725
Replace deprecated Android function ALooper_pollAll with ALooper_pollOnce ( #4275 )
2024-08-23 22:32:20 +02:00
Bugsia
77172e34db
Fixing GenImagePerlinNoise() being stretched, if Image is not rectangular ( #4276 )
2024-08-23 22:22:36 +02:00
listeria
cc88e0b780
rtext: always multiply by sign in TextToFloat() ( #4273 )
...
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
2024-08-21 17:45:14 +02:00
Jeffery Myers
c8bee7c439
[rmodels] Add a warning when loading an OBJ with multiple materials. ( #4271 )
...
* Update raylib_api.* by CI
* Add a temp warning about material assignments during OBJ loading if the file has more than one material. To be replaced when the OBJ translation code is fixed.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-21 17:11:59 +02:00
Paperdomo101
fa3f73d881
[rshapes] Review DrawGradient color parameter names ( #4270 )
...
void DrawCircleGradient(int centerX, int centerY, float radius, Color color1, Color color2);
void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2);
void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);
void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4);
Have been changed to:
void DrawCircleGradient(int centerX, int centerY, float radius, Color inner, Color outer);
void DrawRectangleGradientV(int posX, int posY, int width, int height, Color top, Color bottom);
void DrawRectangleGradientH(int posX, int posY, int width, int height, Color left, Color right);
void DrawRectangleGradientEx(Rectangle rec, Color topLeft, Color bottomLeft, Color topRight, Color bottomRight);
2024-08-21 14:07:52 +02:00
Ray
039df36f4b
REVIEWED: Automation events mouse wheel #4263
2024-08-20 19:13:18 +02:00
hanaxars
7fab03c0b4
Fix warnings ( #4264 )
...
Fix following gcc warnings when SVG enabled:
rtextures.c: In function 'LoadImageSvg':
rtextures.c:374:52: warning: pointer targets in passing argument 1 of 'nsvgParse' differ in signedness [-Wpointer-sign]
374 | struct NSVGimage *svgImage = nsvgParse(fileData, "px", 96.0f);
| ^~~~~~~~
| |
| unsigned char *
In file included from rtextures.c:230:
external/nanosvg.h:2952:28: note: expected 'char *' but argument is of type 'unsigned char *'
2952 | NSVGimage* nsvgParse(char* input, const char* units, float dpi)
| ~~~~~~^~~~~
rtextures.c:407:43: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
407 | if (isSvgStringValid && (fileData != fileNameOrString)) UnloadFileData(fileData);
| ^~
rtextures.c: In function 'LoadImageFromMemory':
rtextures.c:614:52: warning: passing argument 1 of 'nsvgParse' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
614 | struct NSVGimage *svgImage = nsvgParse(fileData, "px", 96.0f);
| ^~~~~~~~
external/nanosvg.h:2952:28: note: expected 'char *' but argument is of type 'const unsigned char *'
2952 | NSVGimage* nsvgParse(char* input, const char* units, float dpi)
| ~~~~~~^~~~~
2024-08-19 13:41:20 +02:00
Colleague Riley
b432aa2b9c
Update RGFW ( #4259 )
...
* update RGFW
* fix bug with GetCurrentMonitor
* update RGFW
* update RGFW
* clean up merge
* update RGFW
2024-08-17 14:00:54 +02:00
Lázaro Albuquerque
308b77cd42
Fix warnings ( #4251 )
...
* Update rmodels.c
fix these warnings:
```
/src/rmodels.c:5744:17: warning: missing initializer for field 'w' of 'Vector4' [-Wmissing-field-initializers]
[build] 5744 | Vector4 outTangent1 = {tmp[0], tmp[1], tmp[2]};
[build] | ^~~~~~~
```
* Update rcore_web.c
fix warnings
2024-08-17 01:07:23 +02:00
Ray
f70d8a33cb
REVIEWED: Shader load failing returns 0, instead of fallback
2024-08-17 00:46:08 +02:00
Lázaro Albuquerque
6e644a27fc
Change some global variables to have internal linkage ( #4252 )
...
* Change some global variables to have internal linkage
* Update rcore.c
* Update rcore.c
2024-08-13 19:16:07 +02:00
hanaxars
65c4003546
Make camera movement independant of framerate ( #4247 )
...
Instead of moving camera with constant speed per frame, speed is multiplied with delta time before movement.
2024-08-12 18:47:52 +02:00
Maxim Knyazkin
13491a485a
Fixed compilation for OpenGL ES ( #4243 )
2024-08-09 19:02:18 +02:00
Maxim Knyazkin
2590a30d04
[rlgl] Adding warnings in case OpenGL 4.3 is not enabled ( #4202 )
...
* Adding warnings for OpenGL 4.3
* Removed logging from frequently called functions
2024-08-09 09:05:46 +02:00
NishiOwO
fe9e371f27
[miniaudio] Fixing miniaudio and Makefile for NetBSD ( #4212 )
...
* fixing miniaudio
* another fix for NetBSD
* adding wl-r. should not affect other bsd
2024-08-09 09:04:18 +02:00
Jeffery Myers
9ef678d90a
Fix warnings ( #4239 )
...
* Update raylib_api.* by CI
* Fix typecast warnings
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-09 08:54:22 +02:00
freakmangd
cae0946764
Fix build.zig and use zig fmt ( #4242 )
...
+ `std.mem.split` is deprecated, `splitScalar` seems like the intended choice here
+ zig files should be formatted according to `zig fmt`
2024-08-09 08:53:29 +02:00
Ray
5af331d708
REVIEWED #4206
2024-08-07 01:01:45 +02:00
lnc3l0t
8b714e9dd9
[build.zig] check if wayland-scanner is installed ( #4217 )
...
#4150 introduced a default value for linux_display_backend,
which makes X11-only systems fail to build.
2024-08-06 18:28:33 +02:00
Ray
9c2ba3bfb7
REVIEWED: possible overflow... again #4206
2024-08-04 23:22:27 +02:00
Ray
923f983719
REVIEWED: Possible overflow #4206
2024-08-04 22:08:38 +02:00
lnc3l0t
b2d48ff172
[build.zig] Override config.h definitions ( #4193 )
...
* [build.zig] Overridable definitions from config.h
The new Options field "config" holds a string the user can set in the
format "-Dflag_a=1 -Dflag_b=0 ..." to override the values set in
`config.h`.
The file is parsed and the default values are appended to the
compilation flags, if the user doesn't override them.
The user string is appended to the compilation flags.
The "-DEXTERNAL_CONFIG_FLAGS" is added to prevent "config.h" inclusion.
Note: a certain format is assumed for the formatting of config.h
Note: this commit references the closed issue #3516
* [build.zig] Only SUPPORT_* definitions are overridable
Lines from `config.h` which contains "SUPPORT" are added to compilation after being parsed:
- remove whitespace
- format to preprocessor option https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
The user supplied flags have priority over the ones read from the file.
NOTE: extension to commit 4da7f82e6f , the logic is simplified
because the SUPPORT flags only have binary values, which makes them easier to parse.
2024-08-04 22:01:28 +02:00