Commit Graph

12 Commits

Author SHA1 Message Date
twinaphex
87421d477c Clean up JNI: (...)
* pthread_key_create is used to set a destructor for every thread
created through jni_thread_getenv
* To grab a JNIEnv pointer - go through jni_thread_getenv
* jni_thread_getenv sets pthread_setspecific for the JNIEnv pointer
to bind destructor
* Reuse activity->vm everywhere instead of creating local pointer
copies
* Don't use DetachCurrentThread outside of platform_android's (new)
jni_thread_destruct function - the destructor will do this for us
now
2013-11-20 17:33:19 +01:00
ToadKing
b6af8b0e92 more camera changes, still no image 2013-11-19 15:13:29 -05:00
ToadKing
894b2870c0 more android camera work. no longer crashes, but still no image 2013-11-19 14:20:29 -05:00
twinaphex
21bc30a44c (Android) Make RetroActivity invoke JNI_OnLoad - grab pointer to
RetroActivity class - try to use from camera/android.c
2013-11-19 14:30:45 +01:00
Themaister
7b8dc09d57 Pass a dummy affine transform for android camera. 2013-11-18 09:32:29 +01:00
twinaphex
c4f389fdb4 (Android) Camera - android_camera_stop - free GL texture 2013-11-18 03:56:22 +01:00
ToadKing
104dafe53f [Android] fill in camera stub functions - needs testing, probably doesn't work yet 2013-11-17 21:48:49 -05:00
twinaphex
8b561a315e (Android) Camera - add FIXMEs 2013-11-18 02:06:27 +01:00
twinaphex
0381cf1ffe (Android) Camera - caps passed to int should contain
RETRO_CAMERA_BUFFER_OPENGL_TEXTURE
2013-11-18 01:55:22 +01:00
twinaphex
1e4e0544bf (Android) Cache JNI environment/pointer to RetroActivity class
inside camera struct - attach thread at init function and detach
thread at free function
2013-11-18 01:47:51 +01:00
twinaphex
43b513b86b (Camera) Cleanup Android camera driver 2013-11-18 00:31:06 +01:00
twinaphex
51891483c4 (Android) Stub android camera C driver - will interface with JNI
functions
2013-11-18 00:28:27 +01:00