[SDL] Are there any working SDL Android examples?

Manuel Massing m.massing at warped-space.de
Tue Jul 26 00:51:25 PDT 2011


William,

I suspect you're rendering into a double-buffer (even if not explicitly 
requested). Try requesting a double-buffered surface explicitly using the
SDL_DOUBLEBUF | SDL_OPENGL flags,  and call SDL_GL_SwapBuffers /
SDL_GL_SwapWindow after each frame.

Or use a renderer with SDL_RenderFillRect, SDL_RenderPresent, see
example code at  http://wiki.libsdl.org/moin.cgi/SDL_RenderPresent

Manuel



More information about the SDL mailing list