The title says it all. I have a class with several private sf::Sprites(the parts of the body of the character) and a function to draw them in an animation embedded into the class. Pretty much I want a character select screen where the characters are a class and have a simple animation on each one of them. Since I want both the animation and the choice process to work at the same time, I'll need threads. But when I write something similar to this:
sf::Thread randum_thread(&player_spr::anim_standby(window), &human);
where player_spr is my class, anim_standby is my function and window is my, well, window ;D , I get an error.
Basically, I want to know how to make a thread calling a class' function with parameters.
Thanks in advance,
Ilman