[![This is what I want to make.][1]][1]


  [1]: https://i.sstatic.net/mxNEy.png


I don't know how to implement a structure like this so i could make a game engine.

I want the win32_platform class to have a central main reference so it could run the game loop while processing everything from the system in the background; I figured having two loops makes the engine run faster as a whole, and it would look nicer this way.