annotate android/testproject/jni/app-android.cpp @ 4715:9bb98766eed0

Shut down the C application properly on quit instead of crashing in the most horrible way possible
author Paul Hunkin <paul@bieh.net>
date Tue, 27 Jul 2010 10:20:22 +0200
parents 0f05f2f16fad
children f2c2a33a1a38
rev   line source
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
1 /*******************************************************************************
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
2 Headers
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
3 *******************************************************************************/
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
4 #include <jni.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
5 #include <sys/time.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
6 #include <time.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
7 #include <android/log.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
8 #include <stdint.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
9
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
10 #include <stdio.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
11 #include <stdlib.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
12 #include <math.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
13
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
14 #include <pthread.h>
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
15
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
16 #include "importgl.h"
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
17 #include "egl.h"
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
18
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
19 /*******************************************************************************
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
20 Globals
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
21 *******************************************************************************/
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
22 static long _getTime(void){
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
23 struct timeval now;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
24 gettimeofday(&now, NULL);
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
25 return (long)(now.tv_sec*1000 + now.tv_usec/1000);
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
26 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
27
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
28 JNIEnv* mEnv = NULL;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
29 JavaVM* mVM = NULL;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
30
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
31 //Main activity
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
32 jclass mActivityInstance;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
33
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
34 //method signatures
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
35 jmethodID midCreateGLContext;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
36 jmethodID midFlipBuffers;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
37
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
38 extern "C" int SDL_main();
4713
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
39 extern "C" int Android_OnKeyDown(int keycode);
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
40 extern "C" int Android_OnKeyUp(int keycode);
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
41 extern "C" int SDL_SendQuit();
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
42
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
43 //If we're not the active app, don't try to render
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
44 bool bRenderingEnabled = false;
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
45
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
46 /*******************************************************************************
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
47 Functions called by JNI
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
48 *******************************************************************************/
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
49
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
50 extern "C" void Java_org_libsdl_android_SDLActivity_nativeInit( JNIEnv* env,
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
51 jobject obj ){
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
52
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
53 __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: Native Init");
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
54
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
55 mEnv = env;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
56
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
57 bRenderingEnabled = true;
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
58
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
59 SDL_main();
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
60 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
61
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
62 extern "C" jint JNI_OnLoad(JavaVM* vm, void* reserved){
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
63
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
64 JNIEnv* env = NULL;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
65 jint result = -1;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
66
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
67 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
68 return result;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
69 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
70
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
71 mEnv = env;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
72
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
73 __android_log_print(ANDROID_LOG_INFO, "SDL", "JNI: OnLoad");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
74
4712
8319aa8fa4dc Code cleanup
Paul Hunkin <paul@bieh.net>
parents: 4711
diff changeset
75 jclass cls = mEnv->FindClass ("org/libsdl/android/SDLActivity");
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
76 mActivityInstance = cls;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
77 midCreateGLContext = mEnv->GetStaticMethodID(cls,"createGLContext","()V");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
78 midFlipBuffers = mEnv->GetStaticMethodID(cls,"flipBuffers","()V");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
79
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
80 if(!midCreateGLContext || !midFlipBuffers){
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
81 __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: Bad mids\n");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
82 }else{
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
83 __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: Good mids\n");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
84 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
85
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
86 return JNI_VERSION_1_4;
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
87 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
88
4713
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
89 extern "C" void Java_org_libsdl_android_SDLActivity_onNativeKeyDown(JNIEnv* env,
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
90 jobject obj, jint keycode){
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
91
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
92 int r = Android_OnKeyDown(keycode);
4714
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
93 __android_log_print(ANDROID_LOG_INFO, "SDL",
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
94 "SDL: native key down %d, %d\n", keycode, r);
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
95
4713
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
96 }
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
97
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
98 extern "C" void Java_org_libsdl_android_SDLActivity_onNativeKeyUp(JNIEnv* env,
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
99 jobject obj, jint keycode){
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
100
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
101 int r = Android_OnKeyUp(keycode);
4714
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
102 __android_log_print(ANDROID_LOG_INFO, "SDL",
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
103 "SDL: native key up %d, %d\n", keycode, r);
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
104
4714
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
105 }
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
106
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
107 extern "C" void Java_org_libsdl_android_SDLActivity_onNativeTouch(JNIEnv* env,
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
108 jobject obj, jint action, jfloat x, jfloat y, jfloat p){
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
109
4714
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
110 __android_log_print(ANDROID_LOG_INFO, "SDL",
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
111 "SDL: native touch event %d @ %f/%f, pressure %f\n",
0f05f2f16fad - Modified build system
Paul Hunkin <paul@bieh.net>
parents: 4713
diff changeset
112 action, x, y, p);
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
113
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
114 }
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
115
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
116 extern "C" void Java_org_libsdl_android_SDLActivity_nativeQuit( JNIEnv* env,
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
117 jobject obj ){
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
118
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
119 //Stop rendering as we're no longer in the foreground
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
120 bRenderingEnabled = false;
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
121
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
122 //Inject a SDL_QUIT event
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
123 int r = SDL_SendQuit();
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
124
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
125 __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: Native quit %d", r);
4713
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
126 }
ba38983b10c2 Added preliminary keyboard event support
Paul Hunkin <paul@bieh.net>
parents: 4712
diff changeset
127
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
128
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
129
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
130 /*******************************************************************************
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
131 Functions called by SDL
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
132 *******************************************************************************/
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
133 extern "C" void sdl_create_context(){
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
134 __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL: sdl_create_context()\n");
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
135
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
136 bRenderingEnabled = true;
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
137
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
138 mEnv->CallStaticVoidMethod(mActivityInstance, midCreateGLContext );
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
139 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
140
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
141 extern "C" void sdl_render(){
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
142
4715
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
143 if(!bRenderingEnabled){
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
144 return;
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
145 }
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
146
9bb98766eed0 Shut down the C application properly on quit instead of crashing in the most horrible way possible
Paul Hunkin <paul@bieh.net>
parents: 4714
diff changeset
147 //When we get here, we've accumulated a full frame
4711
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
148 mEnv->CallStaticVoidMethod(mActivityInstance, midFlipBuffers );
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
149 }
ed040b480a9f - Restructured threads and application structure.
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
150