Tell me how to display fps using SDL 2? Maybe there is some tutorial?
I read http://lazyfoo.net/SDL_tutorials/lesson07/index.php.
Problem: I do not have the function SDL_Flip.
I deduce through SDL_RenderCopy
and SDL_RenderPresent
.
You can of course cram the surface with text into the texture, but I need to output fps. Is it possible to constantly shove it into texture?