Update rcore_android.c
This commit is contained in:
parent
49d797cc72
commit
71d00e0da7
1 changed files with 7 additions and 1 deletions
|
@ -50,6 +50,7 @@
|
||||||
#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...)
|
||||||
#include <jni.h> // Required for: JNIEnv and JavaVM [Used in OpenURL()]
|
#include <jni.h> // Required for: JNIEnv and JavaVM [Used in OpenURL()]
|
||||||
|
#include <android/native_activity.h>
|
||||||
|
|
||||||
#include <EGL/egl.h> // Native platform windowing system interface
|
#include <EGL/egl.h> // Native platform windowing system interface
|
||||||
|
|
||||||
|
@ -129,11 +130,16 @@ void android_main(struct android_app *app)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: Add this to header (if apps really need it)
|
// NOTE: Add this to header (if apps really need it)
|
||||||
extern struct android_app *GetAndroidApp(void)
|
struct android_app *GetAndroidApp(void)
|
||||||
{
|
{
|
||||||
return platform.app;
|
return platform.app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern struct ANativeActivity *GetANativeActivity(void)
|
||||||
|
{
|
||||||
|
return platform.app->activity;
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// Module Functions Definition: Window and Graphics Device
|
// Module Functions Definition: Window and Graphics Device
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue