Is it okay to put the entire game instance into an object on the heap in C++? Like this:
int main()
{
GameInstance* inst = new GameInstance;
GameInstance->Run()
delete GameInstance;
return 0;
}I’ve seen this done about twice now but I’m not sure if it’s a good practice, good idea or how it’s usually done for a robust or production scenario.