SDL_RenderPresent draws current gRenderer then previous run |
gatris
|
I just get this:
http://lazyfoo.net/tutorials/SDL/27_collision_detection/index.php edited wall size: wall.w = 40 + rand() % 40; wall.h = 300 + rand() % 40; and add some rows in main() SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); SDL_RenderPresent( gRenderer ); set Debug line at first SDL_RenderPresent( gRenderer ); and get iteration between current and previous application instance did I miss something? thanks in advance, GK |
|||||||||||
|
gatris
|
I done development of my project under Windows 7, 64-bit, Visual Studio 2010 and all works fine, and
always draws correct picture, not in this order: - correct picture, - previous run last picture, - correct picture, - previous run last picture, - ... I copied c++ file from Visual Studio 2010 to XCode and just change from:
to
is OSX SDL2 is somewhat other than in Windows 7? |
|||||||||||||||||
|