include raylib.h and rcore.c in platform files

this has already been done in `rcore_desktop_rgfw.c`, but not perfectly
as the comments state, its there for LSPs
This commit is contained in:
JohnnyCena123 2025-10-08 15:51:39 +03:00
parent 070c7894c6
commit c318cd56e6
7 changed files with 32 additions and 3 deletions

View File

@ -46,6 +46,11 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
#include <android_native_app_glue.h> // Required for: android_app struct and activity management
#include <android/window.h> // Required for: AWINDOW_FLAG_FULLSCREEN definition and others
//#include <android/sensor.h> // Required for: Android sensors functions (accelerometer, gyroscope, light...)

View File

@ -49,6 +49,11 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management

View File

@ -48,8 +48,8 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H /* this should never actually happen, it's only here for IDEs */
#include "raylib.h"
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif

View File

@ -48,6 +48,11 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
#ifdef USING_SDL3_PACKAGE
#define USING_SDL3_PROJECT
#endif

View File

@ -48,6 +48,11 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
#include <fcntl.h> // POSIX file control definitions - open(), creat(), fcntl()
#include <unistd.h> // POSIX standard function definitions - read(), close(), STDIN_FILENO
#include <termios.h> // POSIX terminal control definitions - tcgetattr(), tcsetattr()

View File

@ -47,6 +47,10 @@
**********************************************************************************************/
// TODO: Include the platform specific libraries
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
//----------------------------------------------------------------------------------
// Types and Structures Definition

View File

@ -45,6 +45,11 @@
*
**********************************************************************************************/
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
#include "../raylib.h"
#include "../rcore.c"
#endif
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
// NOTE: Already provided by rlgl implementation (on glad.h)
#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management