I have an Engine class that holds the SFML loop and everything else the game needs to run. In the main() function, I declare the Engine with a unique_ptr and run it like so:
int WinMain()
{
std::unique_ptr<Engine> engine = std::unique_ptr<Engine>(new Engine());
engine->run();
return 0;
}
Can anyone explain if/why this is a horrible idea?