raylib/examples/core
Ray fecf56e15a
WARNING: rcore module split per-platform **BIG CHANGE** (#3388)
* Submodules (#3311)

* Check in current state

* Add submodules to Makefile and clean up some imports

* Start moving InitGraphicsDeivce

* Move android_main and CloseWindow() out of rcore

* Move WindowShouldClose out of rcore

* Move IsWindowHidden out of rcore

* Move IsWindowMinimized out of rcore

* Move IsWindowMaximized, IsWindowFocused and IsWindowResized out of rcore

* Move ToggleFullscreen out of rcore

* Move MaximizeWindow, MinimizeWindow and RestoreWindow out of rcore

* Move 13 functions out of rcore:
ToggleBorderlessWindowed
SetWindowState
ClearWindowState
SetWindowIcon
SetWindowIcons
SetWindowTitle
SetWindowPosition
SetWindowMonitor
SetWindowMinSize
SetWindowMaxSize
SetWindowSize
SetWindowOpacity
SetWindowFocused

* Minor clean up, revert makefile change, include submodules directly in rcore

* Fix makefile comment

* Remove rcore.h from Makefile

* Remove debug include

* Move 18 functions from rcore to submodules
GetWindowHandle
GetMonitorCount
GetCurrentMonitor
GetMonitorPosition
GetMonitorWidth
GetMonitorHeight
GetMonitorPhysicalHeight
GetMonitorRefreshRate
GetWindowPosition
GetWindowScaleDPI
GetMonitorName
SetClipboardText
GetClipboardText
ShowCursor
HideCursor
EnableCursor
DisableCursor
GetTime

* Move TakeScreenshot, OpenURL, GetGamepadName out of rcore into submodules

* remove debugging #defines

* Move GetMonitorPhysicalWidth from rcore to submodule

* Move GetGamepadAxisCount from rcore

* Move SetGamepadMappings out of rcore

* Move GetMouseX, GetMouseY, GetMousePosition out of rcore

* Move SetMousePosition out of rcore

* Move GetMouseWheelMove out of rcore

* Move the last functions out of rcore

* Move shared function defs and some global var to rcore.h

* Clean up rcore.c and rcore.h a little more

* Remove unnecessary #define

---------

Co-authored-by: MichaelFiber <michael@cubeofb.org>

* REVIEWED: `PLATFORM_DESKTOP` Windows building

* Revert "REVIEWED: `PLATFORM_DESKTOP` Windows building"

This reverts commit 71a12171f7.

* Reviewed Windows building

* [split] Fix compilation for web (and desktop) (#3329)

* Fix compilation for web

* Remove EM_ASM_INT from core_input_gestures_web example

* Fix raymath undefined symbols for desktop and web

* Remove raylib_opengl_interop from examples Makefile

* Revert previous commit (8651c78)

* Fix TraceLog for web and desktop

* [split] `rcore`, `rcore_web` and `rcore_desktop` changes (batch 2) (#3334)

* Fix formatting

* Reapply commit 9d230d7 (#3305) that was missing

* Reapplies commits 719365f (#3309) and 8a1779b (#3312) that were missing

* Reapply commit 5c9cc3f (#3323) that was missing

* Reapply commit a2b3b1e that was missing

* Revert commit cef25c6 to fix macro redefined warning

* Move rcore.h #include to after config.h to fix macro redefinitions warnings

* [split] `rcore`, `web`, `desktop`, `android` changes (batch 3) (#3338)

* First pass to remove unneeded platform macros for web

* Second pass to remove unneeded platform macros for web

* Move GetTouchX, GetTouchY, GetTouchPosition from rcore to web, desktop, android

* Move SetMouseCursor from rcore to android, desktop, web

* [split] `rcore`, `web`, `desktop`, `android` changes (batch 4) (#3343)

* Fix ToggleBorderlessWindowed duplicated glfwSetWindowSize calls

* First pass to remove unneeded platform macros for android

* Second pass to remove unneeded platform macros for android

* Remove unneeded platform macros for desktop

* Relocate GetGamepadName and update SetGamepadMappings on android, desktop, web

* Add missing comment to web

* [split] `rcore`, `web`, `desktop`, `android` changes (batch 5) (#3345)

* Move SetExitKey from core to android, desktop, web

* Move some callbacks from core to desktop and web

* Relocate emscripten callbacks on web

* Relocate android callbacks on android

* Revert "Relocate android callbacks on android"

This reverts commit bbdbecc01e.

* Updates UnloadVrStereoConfig on rcore

* Update SetClipboardText on android

* Fix screenMin/Max default values for android

* [split] `rcore`, `drm` changes (#3347)

* Tweak makefiles for PLATFORM_DRM and move rcore_drm's dependencies to rcore.h

* Move drm functions to rcore_drm.c

* Fix a typo in rcore.c

* Add SetExitKey to rcore_drm.c

---------

Co-authored-by: MichaelFiber <michael@cubeofb.org>

* Fix compilation for android (#3360)

* Fix android include (#3364)

* Reviewed platform split #3313

 - Added file headers info
 - Added TRACELOG message for unimplemented functions
 - Reviewed code formatting and organization
 - Several code tweaks

* REVIEWED: `GetDirectoryPath()`

---------

Co-authored-by: MichaelFiber <42419558+michaelfiber@users.noreply.github.com>
Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: ubkp <118854183+ubkp@users.noreply.github.com>
2023-10-08 18:36:07 +02:00
..
resources Reviewed uniform name 2021-10-20 11:55:00 +02:00
core_2d_camera_mouse_zoom.c Update year to 2023 2023-01-01 16:07:51 +01:00
core_2d_camera_mouse_zoom.png Reviewed example formating 2022-07-19 22:06:18 +02:00
core_2d_camera_platformer.c add missing space in one of the cameraDescriptions (#2977) 2023-03-21 08:31:29 +01:00
core_2d_camera_platformer.png Create core_2d_camera_platformer.png 2020-01-09 13:23:40 +01:00
core_2d_camera_split_screen.c Reviewed examples for consistency 2023-09-08 13:27:13 +02:00
core_2d_camera_split_screen.png Reviewed examples for consistency 2023-09-08 13:27:13 +02:00
core_2d_camera.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_2d_camera.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_3d_camera_first_person.c REVIEWED: UpdateCameraPro() to use Vector3 2023-03-12 19:40:43 +01:00
core_3d_camera_first_person.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_3d_camera_free.c Reviewed examples for consistency 2023-09-08 13:27:13 +02:00
core_3d_camera_free.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_3d_camera_mode.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_3d_camera_mode.png examples review 2019-05-14 15:34:23 +02:00
core_3d_camera_split_screen.c Reviewed examples for consistency 2023-09-08 13:27:13 +02:00
core_3d_camera_split_screen.png Reviewed examples for consistency 2023-09-08 13:27:13 +02:00
core_3d_picking.c REVIEWED: Camera redesign PR 2023-02-14 20:00:51 +01:00
core_3d_picking.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_basic_screen_manager.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_basic_screen_manager.png Create core_basic_screen_manager.png 2021-06-30 18:54:36 +02:00
core_basic_window_web.c Remove PLATFORM_RPI (#3232) 2023-09-07 17:42:28 +02:00
core_basic_window.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_basic_window.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_custom_frame_control.c Fix warnings and bad project settings for 4.5 release (#2894) 2023-01-27 19:20:42 +01:00
core_custom_frame_control.png ADDED: Example: core_custom_frame_control 2021-06-22 21:20:14 +02:00
core_custom_logging.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_custom_logging.png Add SetTraceLogCallback to enable users setting custom logging (#597) 2018-07-26 21:57:45 +02:00
core_drop_files.c Remove trailing spaces 2023-03-06 14:58:58 +01:00
core_drop_files.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_input_gamepad.c Remove PLATFORM_RPI (#3232) 2023-09-07 17:42:28 +02:00
core_input_gamepad.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_input_gestures_web.c WARNING: rcore module split per-platform **BIG CHANGE** (#3388) 2023-10-08 18:36:07 +02:00
core_input_gestures_web.png [example] Core Input Gestures for Web (#3172) 2023-07-16 13:07:29 +02:00
core_input_gestures.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_input_gestures.png examples review 2019-05-14 15:34:23 +02:00
core_input_keys.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_input_keys.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_input_mouse_wheel.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_input_mouse_wheel.png examples review 2019-05-14 15:34:23 +02:00
core_input_mouse.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_input_mouse.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_input_multitouch.c Fixed bug : touches become sticky (#2857) 2023-01-14 19:41:42 +01:00
core_input_multitouch.png Review some examples 2019-04-12 13:29:53 +02:00
core_loading_thread.c Update core_loading_thread.c 2023-03-19 11:25:29 +01:00
core_loading_thread.png new example: core_loading_thread 2019-05-02 12:22:54 +02:00
core_random_values.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_random_values.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_scissor_test.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_scissor_test.png Reviewed new examples 2019-07-28 15:09:01 +02:00
core_smooth_pixelperfect.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_smooth_pixelperfect.png Update examples screenshots 2021-10-17 21:39:52 +02:00
core_storage_values.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_storage_values.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_vr_simulator.c Remove PLATFORM_RPI (#3232) 2023-09-07 17:42:28 +02:00
core_vr_simulator.png Reorganize examples folder 2017-04-04 01:54:49 +02:00
core_window_flags.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_window_flags.png Updated several files while porting examples to web 2020-12-24 13:51:24 +01:00
core_window_letterbox.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_window_letterbox.png [example] Integrate virtual mouse in main example 2020-03-28 18:36:30 +01:00
core_window_should_close.c Update year to 2023 2023-01-01 16:00:56 +01:00
core_window_should_close.png ADDED: example: core_window_should_close 2022-07-07 11:07:41 +02:00
core_world_screen.c REVIEWED: Camera redesign PR 2023-02-14 20:00:51 +01:00
core_world_screen.png Reorganize examples folder 2017-04-04 01:54:49 +02:00