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:
parent
070c7894c6
commit
c318cd56e6
|
|
@ -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_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/window.h> // Required for: AWINDOW_FLAG_FULLSCREEN definition and others
|
||||||
//#include <android/sensor.h> // Required for: Android sensors functions (accelerometer, gyroscope, light...)
|
//#include <android/sensor.h> // Required for: Android sensors functions (accelerometer, gyroscope, light...)
|
||||||
|
|
|
||||||
|
|
@ -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
|
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
|
||||||
// NOTE: Already provided by rlgl implementation (on glad.h)
|
// NOTE: Already provided by rlgl implementation (on glad.h)
|
||||||
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
|
#include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@
|
||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
#ifndef RAYLIB_H /* this should never actually happen, it's only here for IDEs */
|
#ifndef RAYLIB_H // this should never actually happen, it's only here for IDEs
|
||||||
#include "raylib.h"
|
#include "../raylib.h"
|
||||||
#include "../rcore.c"
|
#include "../rcore.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
#ifdef USING_SDL3_PACKAGE
|
||||||
#define USING_SDL3_PROJECT
|
#define USING_SDL3_PROJECT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -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 <fcntl.h> // POSIX file control definitions - open(), creat(), fcntl()
|
||||||
#include <unistd.h> // POSIX standard function definitions - read(), close(), STDIN_FILENO
|
#include <unistd.h> // POSIX standard function definitions - read(), close(), STDIN_FILENO
|
||||||
#include <termios.h> // POSIX terminal control definitions - tcgetattr(), tcsetattr()
|
#include <termios.h> // POSIX terminal control definitions - tcgetattr(), tcsetattr()
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,10 @@
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
// TODO: Include the platform specific libraries
|
// 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
|
// Types and Structures Definition
|
||||||
|
|
|
||||||
|
|
@ -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
|
#define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3
|
||||||
// NOTE: Already provided by rlgl implementation (on glad.h)
|
// NOTE: Already provided by rlgl implementation (on glad.h)
|
||||||
#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
|
#include "GLFW/glfw3.h" // GLFW3: Windows, OpenGL context and Input management
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user