Ray
646d70e93a
Remove trailing spaces
2024-04-02 09:38:06 +02:00
Ray
dcb9db5fe6
Update rcore.c
2024-03-21 15:43:00 +01:00
Ray
93a828f744
REVIEWED: GetMouseRay() functions rename #3830
2024-03-07 12:33:37 +01:00
aiafrasinei
3b7be85151
Screen space related functions consistency ( #3830 )
...
* Screen/world-space related functions rename
* Update raylib_api.* by CI
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-07 12:28:11 +01:00
GideonSerf
371d25c8c9
Gamepad rumble support with SDL2 ( #3819 )
...
* Added gamepad rumble to rcore_desktop.c and rcore_desktop_sdl.c
Still need to add to the rest of the platforms.
* Add SetGamepadVibration warnings to unimplemented platforms.
* Added MAX_GAMEPAD_VIBRATION_TIME
The rumble in SDL2 will continue for MAX_GAMEPAD_VIBRATION_TIME unless the user cancels it with a call to SetGamepadVibration(0.0f,0.0f,0.0f)
* Cast float duration value to Uint 32
* Changed defines from int to float and fixed typo
---------
Co-authored-by: Gideon Serfontein <gse@newspacesystems.com >
2024-02-24 16:47:27 +01:00
Ray
e42e3188f5
Remove some unneeded line breaks
2024-02-18 11:59:40 +01:00
Ray
401c5a8638
Minor tweaks to avoid some CodeQL warnings
2024-02-13 15:58:02 +01:00
Jeffery Myers
4cd71a9750
Fix warnings in raylib ( #3793 )
2024-02-10 20:02:05 +01:00
Luís Almeida
9a5dddc311
Added viewport independent raycast ( #3709 )
...
* added viewport independent raycast
* Renamed GetMouseRayEx to GetViewRay
2024-02-04 11:37:10 +01:00
Ray
f033b30703
Review formating and some defines naming consistency
2024-02-04 11:33:38 +01:00
oblerion
d91e9104aa
[rcore] Fix GetFileNameWithoutExt() ( #3771 )
...
* Update rcore.c
fix [rcore] GetFileNameWithoutExt
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
2024-02-04 11:28:58 +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
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
64ba5cb570
Update a comment ( #3724 )
2024-01-11 19:33:24 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +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
Matthew Oros
cec2261e96
[rcore] Flip VR screens ( #3633 )
2023-12-13 21:24:24 +01:00
Ray
299cd9b830
Update rcore.c
2023-11-21 00:14:42 +01:00
Ray
5c79c5a2ec
Update rcore.c
2023-11-13 16:11:10 +01:00
Ray
4f67f5f159
REVIEWED: TakeScreenshot(), potential issues
2023-11-12 12:38:10 +01:00
ubkp
9634c84e1c
Fix automation recording ( #3523 )
2023-11-11 16:06:23 +01:00
Ray
16b79f2c70
Format tweaks
2023-11-10 19:22:22 +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
e7114a5c2a
Update rcore.c
2023-11-08 19:34:29 +01:00
Jeffery Myers
6cd37e57a6
Fix warnings in visual studio ( #3512 )
2023-11-06 20:31:07 +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
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
b40f93b9e3
Comments tweaks
2023-11-02 18:12:22 +01:00
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
Ray
de7beef05d
Remove trailing spaces
2023-10-31 15:54:52 +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
fc7dcff4a7
ADDED: Pseudo-random numbers generator!
2023-10-29 21:11:30 +01:00
Ray
09075d515a
Some notes and comments
2023-10-29 20:44:32 +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
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
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
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
Ray
081fffd46e
REVIEWED: Issue with functions definitions
2023-10-19 13:57:31 +02:00
Ray
982641228c
REDESIGNED: Move platforms to separate directory #3313
2023-10-19 13:36:10 +02:00