Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sfml thread multi argument function

// with std::bind
void func(std::string, int, double)
{
}

sf::Thread thread(std::bind(&func, "hello", 24, 0.5));
Source by www.sfml-dev.org #
 
PREVIOUS NEXT
Tagged: #sfml #thread #multi #argument #function
ADD COMMENT
Topic
Name
1+7 =