예제 #1
0
void* ds_thread(void *spt)
{
    Sprite *sprite = (Sprite*)spt;
    int nb = sprite->Getnbr_img(), st = sprite->getSwitch_time(), i=0;
    while (sprite->isDisplayed()) {
        sprite->switchSurface(i);
        Screen::synchronise(st);
        i++;
        if (i == nb) i=0;
    }
return NULL;
}