SFML community forums
Help => System => Topic started by: Baschey on May 13, 2015, 03:30:46 pm
-
Hi there ! :)
I have a problem with create Thread.
My function - void Func(ObjectSAi obj[],float time,ObjectS &object)
Thread TH(&Func,Mass,time,Player)//is not work(to many arguments of function, or wrong argument of function).
Pls help me :) . How to pass arguments to functions ?
-
How to pass arguments to functions ?
I think you should spend some time learning the programming language before using SFML ;)
And there's also a documentation that says how the functions (in that case the sf::Thread constructor) are invoked.
-
Hmm strange, all right, i will use std :: thread.