I'm trying to use SDL_AddTimer or SDL_SetTimer, it's the same... My problem is that I don't know what I'm doing wrong with the callback function... I have this method:
Code:Uint32 showNextFrame(Uint32 interval,void*param){
.........
return interval
}
And then on another method within the same class I have:
Code:SDL_AddTimer(30,showNextFrame, NULL);
I'm getting this error:
error C2664: 'SDL_AddTimer' : cannot convert parameter 2 from 'unsigned __int32 (unsigned __int32,void *)' to 'unsigned __int32 (__cdecl *)(unsigned __int32,void *)'