summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorRay <[email protected]>2024-07-01 18:28:44 +0200
committerRay <[email protected]>2024-07-01 18:28:44 +0200
commitd243094ede4386ed2ff6e07009fa5b292dda328c (patch)
treec5a1e2b9646eaf0b4c85bbb9a9ad0d74dc94fdaa /src/rcore.c
parent1fb0565148dbdf8f6969b3c8900e9882cb2839ef (diff)
downloadraylib-d243094ede4386ed2ff6e07009fa5b292dda328c.tar.gz
raylib-d243094ede4386ed2ff6e07009fa5b292dda328c.zip
WARNING: BREAKING: Renamed `PLATFORM_DESKTOP` to `PLATFORM_DESKTOP_GLFW`
This could potentially be a breaking change, for consistency, now every possible desktop backend has the proper name assigned: GLFW, SDL, RGFW raylib build system has been reviewed to fallback to `PLATFORM_DESKTOP_GLFW` by default when `PLATFORM_DESKTOP` defined
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 2c9af11d..e68a9a7d 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3,7 +3,7 @@
* rcore - Window/display management, Graphic device/context management and input management
*
* PLATFORMS SUPPORTED:
-* > PLATFORM_DESKTOP (GLFW backend):
+* > PLATFORM_DESKTOP_GLFW (GLFW backend):
* - Windows (Win32, Win64)
* - Linux (X11/Wayland desktop mode)
* - macOS/OSX (x64, arm64)
@@ -493,9 +493,13 @@ void __stdcall Sleep(unsigned long msTimeout); // Required for: Wai
const char *TextFormat(const char *text, ...); // Formatting of text with variables to 'embed'
#endif // !SUPPORT_MODULE_RTEXT
-// Include platform-specific submodules
#if defined(PLATFORM_DESKTOP)
- #include "platforms/rcore_desktop.c"
+ #define PLATFORM_DESKTOP_GLFW
+#endif
+
+// Include platform-specific submodules
+#if defined(PLATFORM_DESKTOP_GLFW)
+ #include "platforms/rcore_desktop_glfw.c"
#elif defined(PLATFORM_DESKTOP_SDL)
#include "platforms/rcore_desktop_sdl.c"
#elif defined(PLATFORM_DESKTOP_RGFW)
@@ -564,10 +568,12 @@ void InitWindow(int width, int height, const char *title)
{
TRACELOG(LOG_INFO, "Initializing raylib %s", RAYLIB_VERSION);
-#if defined(PLATFORM_DESKTOP)
+#if defined(PLATFORM_DESKTOP_GLFW)
TRACELOG(LOG_INFO, "Platform backend: DESKTOP (GLFW)");
#elif defined(PLATFORM_DESKTOP_SDL)
TRACELOG(LOG_INFO, "Platform backend: DESKTOP (SDL)");
+#elif defined(PLATFORM_DESKTOP_RGFW)
+ TRACELOG(LOG_INFO, "Platform backend: DESKTOP (RGFW)");
#elif defined(PLATFORM_WEB)
TRACELOG(LOG_INFO, "Platform backend: WEB (HTML5)");
#elif defined(PLATFORM_DRM)