This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File 3 of 5 in
6f2641d
|
@@ -41,7 +41,7 @@ extern "C" int SDL_main(); |
|
|
Functions called by JNI |
|
|
*******************************************************************************/ |
|
|
|
|
|
extern "C" void Java_org_libsdl_android_TestActivity_nativeInit( JNIEnv* env, jobject obj ) |
|
|
extern "C" void Java_org_libsdl_android_SDLActivity_nativeInit( JNIEnv* env, jobject obj ) |
|
|
{ |
|
|
__android_log_print(ANDROID_LOG_INFO, "SDL", "JNI: NativeInit"); |
|
|
|
|
@@ -63,7 +63,7 @@ extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved) |
|
|
|
|
|
__android_log_print(ANDROID_LOG_INFO, "SDL", "JNI: OnLoad"); |
|
|
|
|
|
jclass cls = mEnv->FindClass ("org/libsdl/android/TestActivity"); |
|
|
jclass cls = mEnv->FindClass ("org/libsdl/android/SDLActivity"); |
|
|
mActivityInstance = cls; |
|
|
midCreateGLContext = mEnv->GetStaticMethodID(cls,"createGLContext","()V"); |
|
|
midFlipBuffers = mEnv->GetStaticMethodID(cls,"flipBuffers","()V"); |
|
|
Oops, something went wrong.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.