Let's say I have a class called Game, and a public method that looks like this:
void Game::initialize(sf::RenderWindow &winMain);
How would I go about creating a thread that uses this function? I tried these but it didn't work:
sf::Thread loadingThread(&Game::loadWorld, &myGame, winMain);
sf::Thread loadingThread(std::bind(&Game::loadWorld, winMain), &myGame);