I'm having trouble finding documentation on SDL_gfx, and I can't figure this out. I've managed to use SDL_gfx to automatically cap the framerate, and I it's working a lot better than my manual attempt (combining SDL_Delay and SDL_Getticks).
Now I've been trying to learn more about it, and I stumbled onto something.
Here's the whole struct:
typedef struct {
Uint32 framecount;
float rateticks;
Uint32 lastticks;
Uint32 rate;
} FPSmanager;
Most variables in this struct are pretty straightforward, but I have no idea of what lastticks stands for. Does anyone know?