push
everything in your main function starting from SDL_WaitEvent needs to be in a loop.
otherwise, SDL only processes a single event (the one you waited for with SDL_WaitEvent) and continually updates the screen using your UpdateScreen method.
thanks a lot
I didn’t think about that ^^’
if statements aren’t loops… try while(true){ if(SDL_PollEvent(&event)){ … } }
nfries88 wrote:
if statements aren’t loops… try while(true){ if(SDL_PollEvent(&event)){ … } }
did it exactly like that just forgot I’m just “writing” with my function and not “using” it ^^’ thanks