First fo j_post i’ve scan my system with AVG, there isn’t any virus and i check and mail i send and recive.
Here is my SDL problem:
I want to make a timer but it seems that the syntax isn’t good
anime = SDL_AddTimer(500, anime_perso, NULL);
my callback function is :
void anime_perso(void)
{
if(new_x < rond_x)
{
rond_x = rond_x - 1;
}
if(new_x > rond_x)
{
rond_x = rond_x + 1;
}
if(new_y < rond_y)
{
rond_y = rond_y - 1;
}
if(new_y > rond_y)
{
rond_y = rond_y + 1;
}
}
But i don’t understand how to set up the timer. The error is :
passing void (*)(char *)' as argument 2 of
SDL_AddTimer(unsigned int, Unit32 ()(unsigned int, void), void *)’
If someone can help me please
Thomas LAURO
-------------- next part --------------
Ce message Envoi est certifi? sans virus connu.
Analyse effectu?e par Anti-virus AVG (http://www.grisoft.com).
Version: 7.0.211 / Base de donn?es virus: 261.9.2 - Date: 12/02/2004