Fix compilation for android (#3360)

This commit is contained in:
ubkp 2023-10-01 18:03:14 -03:00 committed by GitHub
parent ef67e77b9c
commit e9e38dde2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -16,6 +16,11 @@
// NOTE: GLFW3 already includes gl.h (OpenGL) headers
#endif
#if defined(PLATFORM_ANDROID)
#include <EGL/egl.h> // Native platform windowing system interface
//#include <GLES2/gl2.h> // OpenGL ES 2.0 library (not required in this module, only in rlgl)
#endif
#if defined(PLATFORM_DRM)
#include <fcntl.h> // POSIX file control definitions - open(), creat(), fcntl()

View File

@ -7,9 +7,6 @@
#include <android_native_app_glue.h> // Required for: android_app struct and activity management
#include <jni.h> // Required for: JNIEnv and JavaVM [Used in OpenURL()]
#include <EGL/egl.h> // Native platform windowing system interface
//#include <GLES2/gl2.h> // OpenGL ES 2.0 library (not required in this module, only in rlgl)
static bool InitGraphicsDevice(int width, int height); // Initialize graphics device
static void AndroidCommandCallback(struct android_app *app, int32_t cmd); // Process Android activity lifecycle commands
static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event); // Process Android inputs