projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made fghVisibility more intuitive, documented glutVisibilityfunc and
[freeglut]
/
src
/
android
/
fg_runtime_android.c
diff --git
a/src/android/fg_runtime_android.c
b/src/android/fg_runtime_android.c
index
b5d6cad
..
c92d5f1
100644
(file)
--- a/
src/android/fg_runtime_android.c
+++ b/
src/android/fg_runtime_android.c
@@
-138,7
+138,7
@@
static void extract_assets(struct android_app* app) {
* event loop for receiving input events and doing other things.
*/
void android_main(struct android_app* app) {
* event loop for receiving input events and doing other things.
*/
void android_main(struct android_app* app) {
- LOGI("android_main");
+ LOGI("android_main savedState=%p", app->savedState);
/* Register window resize callback */
app->activity->callbacks->onNativeWindowResized = onNativeWindowResized;
/* Register window resize callback */
app->activity->callbacks->onNativeWindowResized = onNativeWindowResized;
@@
-154,6
+154,7
@@
void android_main(struct android_app* app) {
{
char progname[5] = "self";
char* argv[] = {progname, NULL};
{
char progname[5] = "self";
char* argv[] = {progname, NULL};
+ fgDisplay.pDisplay.app = app;
main(1, argv);
/* FreeGLUT will exit() by itself if
GLUT_ACTION_ON_WINDOW_CLOSE == GLUT_ACTION_EXIT */
main(1, argv);
/* FreeGLUT will exit() by itself if
GLUT_ACTION_ON_WINDOW_CLOSE == GLUT_ACTION_EXIT */
@@
-161,14
+162,6
@@
void android_main(struct android_app* app) {
LOGI("android_main: end");
LOGI("android_main: end");
- /* TODO: Pausing/resuming windows not ready yet, so exiting now */
- exit(0);
-
- /* Finish processing all events (namely APP_CMD_DESTROY) before
- exiting thread */
- while (!app->destroyRequested)
- fgPlatformProcessSingleEvent();
-
/* Let NativeActivity restart us */
/* Users may want to forcibly exit() in their main() anyway because
NativeActivity doesn't dlclose() us, so all statically-assigned
/* Let NativeActivity restart us */
/* Users may want to forcibly exit() in their main() anyway because
NativeActivity doesn't dlclose() us, so all statically-assigned