I’m working on a game engine in C++ and have organized my Visual Studio solution so that the engine is built as a static library, while my editor (or game) is an executable. Given this separation, I’m not sure where to place the main function and the game loop. Should both live in the engine or game? or should the main function belong to the game while the engine contains the game loop (or vice versa)?
To clarify, I'm curious about the architecture/design implications. Is there a rationale or trade-off to consider here?