Mercurial > sdl-ios-xcode
comparison src/video/android/SDL_androidgl.c @ 4710:aeac51289991
Last test version with GLSurface
author | Paul Hunkin <paul@bieh.net> |
---|---|
date | Mon, 28 Jun 2010 21:35:28 +1200 |
parents | 6dc26b9d8368 |
children | ed040b480a9f |
comparison
equal
deleted
inserted
replaced
4709:6dc26b9d8368 | 4710:aeac51289991 |
---|---|
41 /* | 41 /* |
42 These things are in the JNI android support | 42 These things are in the JNI android support |
43 */ | 43 */ |
44 extern pthread_mutex_t mSDLRenderMutex; | 44 extern pthread_mutex_t mSDLRenderMutex; |
45 extern pthread_cond_t mSDLRenderCondition; | 45 extern pthread_cond_t mSDLRenderCondition; |
46 extern void sdl_render(); | |
46 | 47 |
47 /* GL functions */ | 48 /* GL functions */ |
48 int Android_GL_LoadLibrary(_THIS, const char *path){ | 49 int Android_GL_LoadLibrary(_THIS, const char *path){ |
49 __android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_LoadLibrary\n"); | 50 __android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_LoadLibrary\n"); |
50 return 0; | 51 return 0; |
87 return 0; | 88 return 0; |
88 } | 89 } |
89 | 90 |
90 void Android_GL_SwapWindow(_THIS, SDL_Window * window){ | 91 void Android_GL_SwapWindow(_THIS, SDL_Window * window){ |
91 | 92 |
93 /* | |
92 pthread_mutex_lock(&mSDLRenderMutex); | 94 pthread_mutex_lock(&mSDLRenderMutex); |
93 pthread_cond_wait(&mSDLRenderCondition, &mSDLRenderMutex); | 95 pthread_cond_wait(&mSDLRenderCondition, &mSDLRenderMutex); |
94 pthread_mutex_unlock(&mSDLRenderMutex); | 96 pthread_mutex_unlock(&mSDLRenderMutex); |
95 | 97 */ |
96 | 98 |
97 //__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SwapWindow\n"); | 99 //__android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_SwapWindow\n"); |
100 sdl_render(); | |
98 | 101 |
99 } | 102 } |
100 | 103 |
101 void Android_GL_DeleteContext(_THIS, SDL_GLContext context){ | 104 void Android_GL_DeleteContext(_THIS, SDL_GLContext context){ |
102 __android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_DeleteContext\n"); | 105 __android_log_print(ANDROID_LOG_INFO, "SDL", "[STUB] GL_DeleteContext\n"); |