ubkp
8a1779b2ad
Rename windowM* to screenM* ( #3312 )
2023-09-14 11:57:23 +02:00
ubkp
719365f209
Add SetWindowMaxSize for desktop and web ( #3309 )
...
* Add SetWindowMaxSize for desktop and web
* Remove SizeInt and respective adjustments
2023-09-13 16:37:11 +02:00
Peter0x44
9d230d753b
Implement FLAG_WINDOW_RESIZABLE for web ( #3305 )
...
Fixes #3231
2023-09-11 19:03:33 +02:00
MichaelFiber
37f60e75e7
Remove unneeded #if ( #3301 )
...
Co-authored-by: MichaelFiber <michael@cubeofb.org>
2023-09-09 09:47:07 +02:00
Ray
b68d0850b1
Some code restructuring for input functions, consistency review
2023-09-08 20:01:52 +02:00
MichaelFiber
18e9784c6d
Remove PLATFORM_RPI ( #3232 )
...
* Remove PLATFORM_RPI
* remove build artifacts
---------
Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
Ray
b0c6972e5c
Update rcore.c
2023-09-06 23:33:29 +02:00
Ray
d7debba222
Mouse offset and scaling must be considered also on web!
2023-09-06 23:16:31 +02:00
Ray
bdda1efd44
Fix #3247
2023-09-04 18:43:25 +02:00
Ray
6e18d96e7a
Some tweaks
2023-09-02 12:54:36 +02:00
Ray
8157d4283e
REVIEWED: GetFileLength(), added comment #3262
2023-08-29 19:26:15 +02:00
Ray
150663f78a
Use type name instead of valid specifier
...
long long --> long long int
2023-08-29 19:25:44 +02:00
Ethan Conneely
fc0d132566
Remove e from secondes ( #3270 )
2023-08-28 22:49:45 +02:00
Nickolas McDonald
9c9fba6a6c
[Feature] IsKey... safety checks and more ( #3256 )
...
* [Feature] Add GetKeyRepeat
* Update rcore.c
* Simpler design, only one repeat per frame
* Update config.h
* Update rcore.c
* Add KEYBOARD_KEYS_MASK
* Update config.h
* reversions
* Update rcore.c
* Update rcore.c
* change docs
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update raylib.h
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
* Update rcore.c
2023-08-26 14:48:28 +02:00
ubkp
4fa66f2635
Fix SetClipboardText for web ( #3257 )
2023-08-26 14:40:30 +02:00
vitopigno
5ed83dfa29
Update rcore.c ( #3255 )
2023-08-21 00:36:00 +02:00
Ray
dfd0436428
Reviewed IsKeyPressedRepeat() #3248
2023-08-21 00:34:35 +02:00
actondev (Christos)
b3f82a148a
Add IsKeyPressedRepeat (desktop only) ( #3245 )
...
Since the key pressed are handle by comparing current vs previous
state (ie frame), a special way is needed to handle key repeats.
2023-08-20 23:53:20 +02:00
Ray
93f59a6f59
Review tabs and trail-spaces
2023-08-10 22:47:17 +02:00
RadsammyT
03ecf2202e
Fix typos in rcore.c comments ( #3234 )
...
* Fix typos in rcore.c comments
thought i corrected "dettach"
Fix typos in rcore.c comments
* 'fordward' > forward
2023-08-08 20:10:40 +02:00
mohad12211
db55bed72b
fix: check if ctrl modifier is among the currently set modifiers ( #3230 )
2023-08-07 19:51:36 +02:00
Le Juez Victor
c9864d8ac1
Fixed Android app black screen issue when reopening after incomplete closing ( #3227 )
...
* Fixed black screen issue when resuming the app on Android
Partly explained here: https://github.com/raysan5/raylib/issues/3127
* Fix APP_CMD_TERM_WINDOW for Android
2023-08-06 22:04:20 +02:00
vitopigno
d3058fe589
[CORE] Support for SetWindowTitle and InitWindow for web ( #3222 )
...
* Update raylib.h
Changed SetWindowTitle's description
* Update rcore.c
SetWindowTitle now works on web
* Update rcore.c
InitWindow title now works with web platform too.
2023-08-04 12:04:19 +02:00
ubkp
464e714a2e
Adds BORDERLESS_WINDOWED_MODE for PLATFORM_DESKTOP ( #3216 )
2023-08-02 19:16:35 +02:00
Jeffery Myers
04678bc585
int math done with floats causes warnings. ( #3218 )
2023-08-02 19:12:38 +02:00
ubkp
4fd40f0333
Fixes GetCurrentMonitor() detection inconsistency issue ( #3215 )
2023-08-01 10:42:50 +02:00
ubkp
962030e70a
Changes SetWindowMonitor() to no longer force fullscreen ( #3209 )
...
* Changes SetWindowMonitor() to no longer force fullscreen
* Readds fullscreen support
2023-07-28 20:08:41 +02:00
ubkp
090b857912
Fix mouse wheel not working in PLATFORM_RPI or PLATFORM_DRM ( #3193 )
2023-07-23 20:35:41 +02:00
ubkp
b980268ba7
[example] Core Input Gestures for Web ( #3172 )
...
* [example] Core Input Gestures for Web
* Fix Doubletap for web
* Changes TAP_TIMEOUT and rgGetCurrentTime to seconds
2023-07-16 13:07:29 +02:00
Ray
b807c590cb
Merge branch 'master' of https://github.com/raysan5/raylib
2023-07-10 19:13:53 +02:00
Ray
0b9fae3c53
Reviewed rcamera/rgestures file-macros for consistency #3161
2023-07-10 19:13:44 +02:00
ubkp
4b6cbd2340
Fix Touch pointCount for web ( #3163 )
2023-07-10 18:58:56 +02:00
ubkp
ffe4d36e0a
Fix swipe gestures for web ( #3151 )
2023-07-03 09:29:26 +02:00
Ray
d1ab031a27
ADDED: SetWindowFocused() #3142
2023-07-02 17:48:00 +02:00
Ray
df90da0b37
Update rcore.c
2023-07-02 10:50:40 +02:00
Le Juez Victor
5e1a81555c
Review android_main() in rcore.c ( #3121 )
2023-06-20 11:01:57 +02:00
lesleyrs
2209e5b0ca
fix window flags order ( #3114 )
2023-06-16 18:08:10 +02:00
Ray
a0a18384cb
Fix typo
2023-06-16 16:34:47 +02:00
Ray
ba802fdd5e
tweaks
2023-06-03 19:50:46 +02:00
Ray
e497603678
ADDED: Experimental support for OpenGL ES 3.0 -WIP-
...
Just added the required flags to request the OpenGL ES 3.0 context but it has not been tested...
2023-05-31 18:36:33 +02:00
Ray
1b4634702c
Minor tweak
2023-05-21 11:20:42 +02:00
Ray
c3f049fd74
review formatting
2023-05-16 11:02:00 +02:00
Le Juez Victor
675efbda3b
Fix Android app freeze after calling CloseWindow() ( #3067 )
...
Fixed that the Android application was not closed properly after calling `CloseWindow()` and continued to run.
2023-05-16 11:00:44 +02:00
Ray
e17cf9ecd7
REVIEWED: Formating
2023-05-15 11:30:31 +02:00
hamyy
26a3536958
GetCurrentMonitor() bugfix ( #3058 )
...
* GetCurrentMonitor() bugfix
* GetCurrentMonitor() bugfix
2023-05-14 21:20:43 +02:00
Ray
7d68aa6869
REVIEWED: Modules description layout
2023-05-01 14:04:22 +02:00
Ray
59596e4266
Update rcore.c
2023-04-29 20:39:36 +02:00
Ray
ac2e9cd00f
REVIEWED: Update CORE.Input.Touch.pointCount #3024
2023-04-23 11:48:01 +02:00
Ray
9d38363e09
Remove trailing spaces
2023-04-17 12:18:06 +02:00
Ray
770e239f73
Minor tweaks to raylib events automation system
2023-03-22 19:47:42 +01:00
Ray
b436c8d7e5
ADDED: Security check for emscripten_run_script() #2954
2023-03-12 13:48:11 +01:00
Ray
ee3e40c663
Update rcore.c
2023-03-12 13:47:02 +01:00
Ray
614e0518a7
Remove trailing spaces
2023-03-06 14:58:58 +01:00
Ray
cf1ebada0e
Tweak WindowDropCallback() #2943
2023-03-06 13:15:13 +01:00
Ray
d3f5bc4043
REVIEWED: GetWindowHandle() #2950
2023-03-05 20:06:45 +01:00
Ray
ab14ad5d75
Close issue #2949
2023-03-05 11:26:37 +01:00
Ray
1611cd54e7
REVIEWED: GetWindowHandle() #2938
2023-03-04 18:56:04 +01:00
Ray
7fd2bf1a32
Minimal tweak
2023-02-25 01:07:52 +01:00
Ray
215eb967e8
Update rcore.c
2023-02-24 18:31:16 +01:00
Ray
b4d824d6fc
REVIEWED: GetMonitorWidth() and GetMonitorHeight() #2934
2023-02-21 23:10:03 +01:00
Ray
8169d0eab2
REVIEWED: IsWindowFocused() to consider Android App state #2935
2023-02-21 23:01:23 +01:00
Ray
bcae065c88
REVIEWED: IsShaderReady()
2023-02-21 13:15:11 +01:00
Ray
1347a15539
ADDED: SetWindowIcons() to set multiple icon image sizes
2023-02-21 13:14:51 +01:00
Ray
beb44f1dac
Avoid centering mouse when program launches
2023-02-15 13:11:26 +01:00
Ray
903d85e323
Make sure window position always inits in the middle of the current monitor
2023-02-15 12:53:41 +01:00
Ray
5dedb27ce0
REVIEWED: Issue with camera jump on first frame
2023-02-14 22:51:34 +01:00
Ray
ea590c44a9
REVIEWED: Camera redesign PR
2023-02-14 20:00:51 +01:00
Julio C. Galindo
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
...
* Fixed some grammar mistakes.
* Fixed some typos.
2023-02-09 13:17:47 +01:00
Nikolas
f784961b9c
Enable GetWindowHandle() on macOS ( #2915 )
2023-02-07 22:18:14 +01:00
Ray
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +01:00
Ray
60d0ab418a
some typos review
2023-02-05 11:44:12 +01:00
Rob Loach
83ff7b2466
ADDED: IsShaderReady(), IsImageReady(), IsFontReady(), IsWaveReady(), IsSoundReady(), IsMusicReady() ( #2892 )
...
These IsReady() functions provide a method in order to verify whether or not the object was loaded successfully. They're useful to make sure the assets are there prior to using them.
2023-01-27 19:24:03 +01:00
Rob Loach
d8af76f67c
Fix to use TRACELOG() instead of TraceLog() for internal modules ( #2881 )
...
There were a few raylib modules that continued to use TraceLog() instead of the TRACELOG() macro. This change ensures that all the internal raylib modules use the TRACELOG() pattern consistently.
2023-01-22 11:10:38 +01:00
Ray
78ae3b38a6
minor format tweak
2023-01-21 19:31:47 +01:00
Daijiro Fukuda
c6376acfc4
Set initial window position for display-sized fullscreen ( #2742 )
2023-01-10 12:45:53 +01:00
Ray
6dd1d2d931
ADDED: Required define on Linux #2729
2023-01-10 12:20:45 +01:00
Ray
ce8000ee7e
REVIEWED: GetClipboardText() on PLATFORM_WEB
2023-01-04 20:13:44 +01:00
Ray
73234d2a28
Avoid trying to setup uniform for invalid locations
2023-01-03 17:44:06 +01:00
Ray
62f63f9e48
REVIEWED: Avoid possible gamepad index as -1 #2839
...
WARNING: It could require further review of `GamepadThread()` function where `js_event gamepadEvent.number` detecting current pressed button could generate a missmatch with index 0 (reserved for button unknow). Or maybe `0` could just be `GAMEPAD_BUTTON_NONE`? In that case, consistency with other inputs should be carefully considered...
2023-01-02 17:06:52 +01:00
Ray
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
Ray
03cc540d5f
Minor tweak
2022-12-18 18:00:21 +01:00
Ray
72b9f3c5de
Minor tweaks
2022-12-17 12:15:19 +01:00
Ray
2edf5a9584
REVIEWED: Issue with shader linkage
2022-11-29 10:45:10 +01:00
jtainer
50a716c0d9
Updated rcore.c, renamed 'time' to 'nanoSeconds' ( #2816 )
...
* Updated rcore.c, renamed 'time' to 'time_nsec'
When PLATFORM_ANDROID, PLATFORM_RPI or PLATFORM_DRM were defined, there is a compilation error to redefinition of the variable 'time', so the second instance of 'time' was changed to 'time_nsec' which both fixes the name collision and more accurately describes what that variable represents.
* Renamed 'time_nsec' to 'nanoSeconds'
2022-11-29 00:46:10 +01:00
Daijiro Fukuda
66a2cdee40
Fix array out of range ( #2814 )
...
This breaks other values of the struct.
2022-11-28 22:35:44 +01:00
Ray
fc5894e734
REVIEWED: Some compilation warnings (for strict rules)
2022-11-28 14:16:59 +01:00
Ray
c0010105c2
REVIEWED: UnloadDirectoryFiles()
2022-11-22 17:09:39 +01:00
Ray
f6558fe6e0
Minor tweaks
2022-11-22 01:02:54 +01:00
Pere001
c8fd93d356
Warning on GetRandomValue range limit ( #2800 )
...
Added a comment explaining the range limitations of GetRandomValue.
Added a run-time warning TRACELOG when GetRandomValue is called with an invalid range.
2022-11-15 12:29:19 +01:00
Ray
ca6f58eed1
Update rcore.c
2022-11-05 00:31:13 +01:00
Ray
28e8b2add3
REVIEWED: Issue with OpenURL()
2022-10-26 18:04:20 +02:00
Random
03f5fce672
removed glfwSetWindowPos on InitWindow ( #2732 )
...
* removed glfwSetWindowPos on InitWindow
* removed execute permission from CMakeLists
2022-10-02 10:46:33 +02:00
Random
f14955512f
fix issue #2728 ( #2731 )
...
* fix issue #2728
* updated gamecontrollerdb: fixes GLFW warning due to invalid entry
2022-09-30 10:09:49 +02:00
Ray
45da03df23
Reviewed monitor checking order
2022-09-29 12:00:20 +02:00
Ray
0ced04f0df
Fix #2722
2022-09-29 11:08:00 +02:00
Ray
2ef0b064e5
Fix isssue #2718
2022-09-25 14:09:28 +02:00
Ray
ea87491a82
ADDED: Support CAPS/NUM lock keys registering if locked
2022-09-25 00:14:59 +02:00
Ray
4b1d4b4f6b
Update rcore.c
2022-09-22 20:30:02 +02:00
Ray
5530a3ceb8
REVIEWED: ScanDirectoryFilesRecursively(), fix #2704
2022-09-19 18:20:36 +02:00
Denis Pobedrya
27781a4767
Remove touch points on touch up events on Android ( #2711 )
...
Fixes #2683
Remove elements from touch point related arrays when touch up and
similar events are processed. This makes GetTouchPointCount() always
report the actual count of touch points, and all positions returned by
GetTouchPosition() correspond to positions of currently happening
touches.
2022-09-18 23:01:10 +02:00
Nikolas
42ecd72547
[rlgl] Check for extensions before enabling them ( #2706 )
...
* [rlgl] Check for extensions before enabling them
* Shift to glad on macOS
* #undef CORE_OPENGL_33
* Remove version hack and fix ASTC compression assumption
* Remove loader from glad
* Use GLAD_MALLOC/FREE instead of malloc/free
* More explicit extension checking
2022-09-18 21:08:51 +02:00
Denis Pobedrya
8f597b3cc3
Basic gamepad support for Android ( #2709 )
...
Currently assumes a single gamepad, has no code specific to gamepad
detection (gamepad is "detected" when an event related to gamepad
arrives). Also assumes that all gamepads look roughly like an xbox/ps
controller. Both assumptions are not strictly true, but an
implementation like that probably covers 85% of usecases.
Also it doesn't update previousButtonState so functions
IsGamepadButtonPressed() and IsGamepadButtonReleased() don't work, but
they didn't work previously on Android anyway, and they are flaky on
desktop as they are now, so the mechanism for these two functions
probably should be reworked anyway.
It's certainly an improvement compared to the previous android gamepad
handling code, which put gamepad events into touch related structs.
2022-09-18 19:58:52 +02:00
Denis Pobedrya
ff25402f68
Fix viewport scaling bug on android after context rebind ( #2703 )
...
On android after rebinding context (which happens when you minimize and
navigate back to an app, or when you turn a screen off and back on)
there's a bug that viewport has a wrong scale and part of it is off
screen.
The change fixes it on devices I tried, but the solution feels hacky to
me. However when I attempted instead to call SetupViewport() again which
feels like a more proper solution, it didn't fix it.
2022-09-18 11:28:55 +02:00
Denis Pobedrya
8e57c8ace3
Fix touchscreen input related functions on Android ( #2702 )
...
Fix display -> screen coordinate conversion for android platform and
move it to the platform event handling code, simplifying
GetTouchPosition() function implementation.
Co-authored-by: Denis Pobedrya <denis.pobedrya@gmail.com>
2022-09-17 23:15:11 +02:00
Ray
ad5ffd78d6
REVIEWED: rlgl enums and comments
2022-09-05 11:15:28 +02:00
Ray
082920eb80
WARNING: RENAMED exported symbol to raylib_version #2671
2022-09-02 21:35:08 +02:00
Ray
de968e3623
WARNING: RENAMED symbol raylibVersion to raylib_version
...
I want to note this is a special symbol exported
2022-09-02 21:32:58 +02:00
Ray
2a798d64a2
Export raylibVersion symbol. Fixes #2671
2022-09-02 21:28:19 +02:00
Daijiro Fukuda
7bb8ffc29e
Win32: resolve some symbols re-definition of windows.h in glfw3native.h ( #2643 )
...
* Win32: resolve some symbols re-definition of windows.h in glfw3native.h
This reflects GLFW's fix: https://github.com/glfw/glfw/issues/1348
This enables to build with a external GLFW containing the
following fix:
* 05f6c13d11
Currently, glfw3native.h of the internal GLFW is customized at
2feea87b61
This fix is compatible with the current customized glfw3native.h.
This fix enables us to update it to the latest and remove the
customization.
* Win32: remove unneeded typedef
2022-08-21 11:44:16 +02:00
Ray
2ad7967db8
REVIEW: Fix issue with external GLFW missing define #2638
2022-08-17 10:19:52 +02:00
HarriP
e0b487c641
Fix string lacking null termination in IsFileExtension ( #2637 )
...
When file extension is longer or equal length compared to buffer holding lowercased string, strncpy does not null terminate the string.
Increased buffer size by 1 to ensure it will always be null-terminated, so that following strcmp does not read out of buffer bounds.
2022-08-13 17:36:29 +02:00
Ray
2c0071c851
Reviewed issue with negative key #2619
2022-08-07 19:19:18 +02:00
veins1
4b2357dc34
Can't alt-tab out of fullscreen window ( #2618 )
2022-08-06 18:42:52 +02:00
Ray
df5514088e
REVIEWED: GetMouseWheelMove(), avoid move scaling on PLATFORM_WEB
...
Tested with latest emscripten 3.1.18
2022-08-02 18:07:44 +02:00
Ray
fd191a32ea
Remove trailing spaces
2022-08-02 00:36:31 +02:00
Ray
2e5fc3d0c2
Avoid cleaning the front buffer to a specific color!
...
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap.
It's up to the user to call `ClearBackground()` if desired
2022-08-01 10:05:40 +02:00
Ray
7853155f99
REMOVED: Config option: SUPPORT_MOUSE_CURSOR_POINT
2022-08-01 09:57:11 +02:00
Jeffery Myers
e9029d3d00
[CORE] Fix Warnings ( #2582 )
...
* Fix raymath warning with floor to floorf
* signed unsigned missmatches
2022-07-19 06:36:03 +02:00
Ray
e722a8dbef
WARNING: BREAKING: REMOVED: *StorageValue() functions
...
Those functions were platform dependent and user has no control over the file created. They have been removed from raylib and just moved to `core_storage_values` example.
2022-07-05 13:24:14 +02:00
Ray
f579a3a708
REVIEWED: DecompressData()
2022-07-03 11:11:50 +02:00
Ray
da5d04061e
Updated PLATFORM_RPI info #2547
2022-06-25 12:10:28 +02:00
Ray
5426262ae6
REVIEWED: IsFileExtension() #2530
...
Max file extension size set to 16
2022-06-18 20:44:15 +02:00
Ray
c1d9489294
Update rcore.c
2022-06-18 16:22:42 +02:00
Ray
d4f60f8303
REVIEWED: LoadDroppedFiles(), fixed issues
2022-06-17 12:06:58 +02:00
Ray
2824aacd5d
Update rcore.c
2022-06-16 13:06:18 +02:00
Ray
9998a86625
Update rcore.c
2022-06-12 22:56:24 +02:00
Ray
ad56a49da8
Reviewed latest PR
2022-06-12 20:51:31 +02:00
Steven Schveighoffer
e1e0bc4266
Add function to read both X and Y mouse scrolling from a trackpad ( #2517 )
...
(GetMouseWheelMoveV).
2022-06-12 17:30:07 +02:00
Ray
875601c4cc
REVIEWED: FilePathList, consider maximum capacity
2022-06-12 11:32:10 +02:00
Ray
b8f67c6285
WARNING: BREAKING: REDESIGNED: Filepath loading API
...
REDESIGNED: `LoadDirectoryFiles()`
ADDED: `LoadDirectoryFilesEx()`
REDESIGNED: `LoadDroppedFiles()`
ADDED: `IsPathFile()`
This BIG BREAKING change simplifies the functions and gives more control to the user:
- A new `struct FilePathList` has been added to avoid exposing complex pointers.
- User is responsible of memory loading/unloading
- Filepaths loading support recursive directories and file extension filters
2022-06-11 23:24:13 +02:00
Ray
b549baa6b7
New feature: support MOUSE_PASSTHROUGH #2516
2022-06-11 12:08:16 +02:00
Ray
4a6e8bb90b
Minor formattng tweak
2022-06-09 21:01:51 +02:00
gulrak
5e3ef42201
GetMonitorWidth()/GetMonitorHeight(): return current video resolution instead max available ( #2514 )
...
* GetMonitorWidth()/GetMonitorHeight(): current video resolution instead max available
* adapt header comment to reflect change
2022-06-09 21:00:04 +02:00
flashback-fx
8c55b40e9e
Unify busy waiting behavior across conditional compilation branches ( #2508 )
...
* Unify busy waiting behavior across conditional compilation branches
* Inline busy waiting code instead of using static function
2022-06-07 21:01:29 +02:00
Ray
bf208decc0
REVIEWED: Compilation warnings
2022-06-07 10:04:24 +02:00
Ray
e6bc401c93
WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()
...
RENAMED: `ClearDroppedFiles()` to `UnloadDroppedFiles()`
2022-06-06 20:39:37 +02:00
Ray
ebbcc2ffce
WARNING: RENAMED: GetDirectoryFiles() to LoadDirectoryFiles()
...
RENAMED: `ClearDirectoryFiles()` to `UnloadDirectoryFiles()`
2022-06-06 20:30:24 +02:00
Ray
461cdda71e
Reviewed latest PR, variable name
2022-06-06 20:23:14 +02:00
flashback-fx
c11d30bafe
Change WaitTime argument from milliseconds to seconds ( #2506 )
2022-06-06 20:18:37 +02:00
Ray
865a44adda
REVIEWED: Mouse device support on PLATFORM_DRM #2381
2022-06-05 11:34:23 +02:00
flashback-fx
cda89ebb58
Fix regression that was causing video stuttering ( #2503 )
2022-06-05 11:14:26 +02:00
gulrak
789e504069
use GetWindowScaleDPI to calculate size for rlReadScreenPixels in screenshot/recording ( #2446 )
2022-05-20 17:25:47 +02:00
Ray
5ecc289201
REVIEWED: Support OpneBSD for timming functions
2022-05-16 19:24:16 +02:00
Ray
db16833d8c
ADDED: EnableEventWaiting() / DisableEventWaiting()
...
Events waiting can be enabled/disabled, it toggles event polling.
2022-05-12 16:51:46 +02:00
Ray
f3aac87422
Some minor tweaks
2022-05-12 16:35:28 +02:00
Crydsch
b2c2b5ee21
remove fps requirement for drm connector selection ( #2468 )
2022-05-09 17:12:38 +02:00
Ray
df3f64bfd2
Corrected typo
2022-05-07 18:04:34 +02:00
Ray
ed2ab55034
Remove line ending spaces
2022-05-05 20:39:14 +02:00
Ray
5c66cc1c9b
Update rcore.c
2022-04-28 17:38:52 +02:00
Ray
a7ce537d32
Check for mouse devices on PLATFORM_DRM
2022-04-26 09:30:20 +02:00
Ray
38a3523f59
REVIEWED: SwapScreenBuffers() for PLATFORM_DRM
...
Avoid calling `abort()`, `LOG_ERROR` already manages it. Code looks cleaner now.
2022-04-25 21:00:17 +02:00
Ray
6e722d416b
Update rcore.c
2022-04-25 19:35:19 +02:00
Ray
e543922055
Review formatting
2022-04-24 17:58:51 +02:00
Juan Carlos González Amestoy
f2c7b0d3bf
- Fix issue #2371 ( #2437 )
2022-04-24 17:05:45 +02:00
Ray
74ca81338e
REDESIGNED: Set rlgl internal framebuffer #2420
2022-04-24 12:37:50 +02:00
Maiko Steeman
ccfac59c60
Fix for vr rendering not taking render target size into account ( #2424 )
2022-04-24 11:48:50 +02:00
Ray
e1ee4b1466
Reviewed MouseScrollCallback() #2371
2022-04-24 11:16:35 +02:00
Ray
d433de7efa
Initialize (reset) input global state #2360
2022-04-24 11:02:50 +02:00
Ray
47d768c3d6
REVIEWED: ToggleFullscreen()
2022-04-23 23:40:56 +02:00
Ray
f71cc53bc9
WARNING: RENAMED: some parameters from length to size
...
When referring to byte array SIZE, I find it more clear than length
2022-04-06 20:50:50 +02:00
Ray
cb62cb675f
Minor tweaks const
2022-03-22 18:45:41 +01:00
Ray
0da7830745
REVIEWED: Avoid some float -> double promotions
2022-03-20 12:15:51 +01:00
Rodrigo Escar
9723489ccc
Implements OpenURL() for Android Platform ( #2396 )
2022-03-18 11:41:41 +01:00
Ray
d2119848ed
REVIEWED: OpenURL()
2022-03-14 15:31:37 +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
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
raysan5
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
raysan5
4f2bfc5476
Reviewed bug on FindNearestConnectorMode()
2022-02-15 19:38:28 +01:00
Ray
d38fe92c3f
RENAMED: GetFileSize() to GetFileLength()
...
`GetFileSize()` conflicts with the infamous `windows.h`
2022-01-28 00:23:28 +01:00
raysan5
0f00c41aad
ADDED: GetFileSize()
2022-01-27 14:07:05 +01:00
Nikolas
5b8b24c0c5
Fix GetApplicationDirectory on macOS ( #2304 )
...
Previously failed to build with an implicit declaration of `_NSGetExecutablePath`.
2022-01-22 17:25:53 +01:00
Laurentino Luna
3c359ff4bc
Review code conventions for specific defines for GetApplicationDirectory() ( #2293 )
...
Unless these imports require to have this format, the code has been adjusted to the conventions
2022-01-18 18:30:19 +01:00
Jeffery Myers
bec27a6ebc
[CORE] Fixes for GetApplicationDirectory on 32 bit windows builds ( #2290 )
...
* Fix a signature error with the windows calls in GetApplicationDirectory for 32 bit builds.
* break is better than loop var to -1
2022-01-17 18:05:48 +01:00
Jeffery Myers
f4dea6919a
[CORE] Bug and formating fixes for GetApplicatonDir ( #2285 )
...
* Fix formating problems with GetApplicationDir.
Don't ever return an empty string
* always return a valid path even if it's ./
* remove the need for the dll and just use the normal GetModuleFileName function
2022-01-14 20:16:25 +01:00
Ray
464026f15c
Update rcore.c
2022-01-12 12:00:47 +01:00
Ray
b4e0ed6007
Review formating
2022-01-10 13:54:51 +01:00
Jeffery Myers
fbf34f7c0d
[CORE] Add a function to return the application directory. ( #2256 )
...
* Add a function to return the application directory.
* CI fixes
2022-01-08 19:47:52 +01:00
Ray
7eb341ccaf
WARNING: REVIEWED: A big bug with GetMouseWheelMove()
2022-01-01 17:49:07 +01:00
raysan5
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +01:00
raysan5
bb875b1db7
Update rcore.c
2021-12-31 18:18:27 +01:00
raysan5
8f2d9838a3
Reviewed fullscreen switch on PLATFORM_WEB
...
The previous implementation somewhat break the expected behaviour for games and examples when pressing the `Fullscreen` button in the provided `shell.html`.
Just reverted for the moment for further investigation.
2021-12-31 17:46:31 +01:00
Ray
4bb894f171
tweaks
2021-12-31 11:01:43 +01:00
Tushar Singh
d91b9171fa
[Feature] Added SetWindowOpacity(float opacity) ( #2254 )
...
* Added drawing text with shadow
* Added SetWindowOpacity()
* Edited Mis-spell
* Fixed conventions
2021-12-30 13:13:50 +01:00
Ray
1653fc5bb5
Update rcore.c
2021-12-16 00:19:09 +01:00
Ray
ef6959ed54
ADDED: raylibVersion symbol #2190
2021-12-06 19:53:09 +01:00
Ray
c4a62ca1e4
ADDED: Modules info at initialization
2021-12-06 12:02:57 +01:00
Ray
e637ad9d2a
Support custom modules inclusion
...
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
2021-12-04 19:56:02 +01:00
Ray
9088135b49
REVIEWED: Formating and comments
2021-11-25 01:07:54 +01:00
Arnaud Valensi
b248a00c90
Fix scissor on macos ( #2170 )
...
* Expose GetRenderWidth and GetRenderHeight functions
* Fix scissor on macos
* Fix typo
2021-11-25 01:03:20 +01:00
raysan5
7755cd0019
Tweak to minimize buffer overflow possibility
2021-11-18 10:25:28 +01:00
raysan5
03f55d8f9e
Minor tweaks
2021-11-17 13:36:28 +01:00
lib-omar
91135c8799
Fixed file/alloc limitation in GetDirectoryFiles() ( #2126 )
...
MAX_DIRECTORY_FILES macro removed.
ClearDirectoryFiles() tweaked to reflect changes.
2021-11-10 19:52:30 +01:00
Ray
21ec8c38ae
Review variables initialization
...
- All variables are initialized on declaration, some arrays were not properly initialized
- Static array buffers require memset() for re-initialization on every function call
2021-11-09 11:49:03 +01:00
raysan5
7f4ae653f3
Review display output order
2021-11-03 13:24:56 +01:00
raysan5
703df42586
Avoid duplicate output info on PLATFORM_RPI
2021-11-03 12:55:46 +01:00
Ray
8649032428
Update comment
2021-11-01 01:08:55 +01:00
Ray
65076464d5
REVIEWED: KeyCallback()
...
Register keys independently of the actions
2021-10-26 22:27:18 +02:00
Jeffery Myers
086f76ba7a
Fix warnings in raylib build ( #2084 )
2021-10-25 10:18:42 +02:00
mausimus
8f5bd3e185
web: clear resizedLastFrame ( #2077 )
2021-10-23 10:52:36 +02:00
Richard Smith
fcc6a61d9e
replace hardcoded number of mouse buttons with MAX_MOUSE_BUTTONS ( #2076 )
2021-10-23 10:52:04 +02:00
raysan5
befdb5963e
REMOVED: IsGamepadName()
...
This function is not required, users can check it with `GetGamepadName()`
2021-10-22 12:21:31 +02:00
raysan5
83cd22ee5a
Minor tweaks
2021-10-22 12:20:42 +02:00
raysan5
dd6e006d78
Reviewed multitouch example #1988
2021-10-22 11:53:47 +02:00
raysan5
719c1551cc
Reviewed latest PR formatting and details
2021-10-19 13:30:23 +02:00
warzes
9f2ff3e4d6
Support create OpenGL debug context in OpenGL 4.3 ( #2068 )
...
* - support create OpenGL debug context in OpenGL 4.3
* - additional events in debug message
- fixed glEnable(GL_DEBUG_OUTPUT)
* Reviewed OpenGL Debug Context
2021-10-19 12:43:27 +02:00
raysan5
2ec8ce649a
ADDED: EncodeDataBase64() and DecodeDataBase64()
2021-10-18 14:10:51 +02:00
raysan5
1c9093fd24
Avoid GRAPHICS_API_OPENGL_* defines
...
Those defines are only used inside `rlgl` module
2021-10-18 13:25:59 +02:00
michaelfiber
c87e91d27a
Update SetupViewport so that it doesn't subtract offset from render dimensions when calling rlViewport ( #2064 )
...
Co-authored-by: Michael <michael@cubeofb.org>
2021-10-17 10:21:51 +02:00
Ray
99f6707e2c
Support OpenGL 4.3
...
- Support Compute Shaders by rlgl API
- Support SSBO by rlgl API
2021-10-16 23:49:31 +02:00
Ray
3e604a8645
Remove trailing spaces
2021-10-14 00:11:37 +02:00
Ray
83b3478fe4
Reviewed some TODO
2021-10-13 23:45:57 +02:00
Ray
f8719e7ec3
Reviewed latest PR formatting
2021-10-10 22:38:58 +02:00
Arnaud Valensi
7c36f3f6b8
Fix dpi issues ( #1987 )
2021-10-10 22:34:56 +02:00
raysan5
700d448d75
Updated external libraries
2021-10-06 21:13:17 +02:00
Ray
8d7f97ee04
Remove trailing spaces
2021-10-06 01:20:46 +02:00
mausimus
6541895901
Revert "reset resizedLastFrame on web platform ( #2020 )" ( #2032 )
2021-10-04 09:47:41 +02:00
tomarigr
5d8c477d12
[rcore] fix rpi4 Failed to get DRM resources ( #2031 )
...
* [rcore] fix rpi4 Failed to get DRM resources
card1 is not always the the correct card to use on rpi4
rpi os finds the correct card and links it to /dev/dri/by-path/platform-gpu-card during boot.
this fix makes sure that we always point to the correct card on rpi4
* Update rcore.c
2021-10-04 01:59:59 +02:00
Ray
f869229b7f
Minor format tweaks
2021-10-03 12:09:59 +02:00
mausimus
93efa565f9
reset resizedLastFrame on web platform ( #2020 )
2021-09-29 23:27:10 +02:00
Ray
00a763ea44
Reviewed some TODO comments
2021-09-23 00:18:47 +02:00
Ray
99ab4d6cb8
WARNING: MODULES RENAMING!!!
...
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.
The renamed modules are:
- `core` -> `rcore`
- `shapes` -> `rshapes`
- `textures` -> `rtextures`
- `text` -> `rtext`
- `models` -> `rmodels`
- `camera` -> `rcamera`
- `gestures` -> `rgestures`
- `core` -> `rcore`
All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00