3dphotoshoot

diff src/android/amain.c @ 8:9fc7d52f578d

FINALLY I'm getting an image out of the camera
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 May 2015 04:14:38 +0300
parents e31e23ead56f
children c71c477521ca
line diff
     1.1 --- a/src/android/amain.c	Sat May 23 23:14:44 2015 +0300
     1.2 +++ b/src/android/amain.c	Mon May 25 04:14:38 2015 +0300
     1.3 @@ -28,8 +28,6 @@
     1.4  static JNIEnv *jni;
     1.5  static jclass activity_class;
     1.6  
     1.7 -static unsigned int camtex;
     1.8 -
     1.9  
    1.10  
    1.11  void android_main(struct android_app *app_ptr)
    1.12 @@ -100,7 +98,6 @@
    1.13  		if(cam_init(&cam_data) == -1) {
    1.14  			exit(1);
    1.15  		}
    1.16 -		cam_start_video();
    1.17  
    1.18  		/* initialize the application */
    1.19  		if(game_init() == -1) {
    1.20 @@ -113,18 +110,17 @@
    1.21  		/* cleanup */
    1.22  		init_done = 0;
    1.23  		game_shutdown();
    1.24 -		cam_shutdown();
    1.25  		destroy_gl();
    1.26  		break;
    1.27  
    1.28  	case APP_CMD_GAINED_FOCUS:
    1.29  		/* app focused */
    1.30 -		cam_start_video();
    1.31 +		//cam_start_video();
    1.32  		break;
    1.33  
    1.34  	case APP_CMD_LOST_FOCUS:
    1.35  		/* app lost focus */
    1.36 -		cam_stop_video();
    1.37 +		//cam_stop_video();
    1.38  		break;
    1.39  
    1.40  	case APP_CMD_WINDOW_RESIZED: