I might not be searching for the correct terms, but I’ll try to explain what I am looking for (probably common).
In Windows to create a window you usually go through WinMain(), but not all platforms (Linux, OS X, etc) use this function as an entry point to the program.
While I know there are a lot of libraries out there, I’m more curious about the implementation for educational reasons and not looking for a 3rd party library to handle this for me.
The implementation of this is huge I’m sure, but I’m curious on a more abstract level, how would you write your entry point to be able to handle window creation on multiple platforms.
The entry point of a C++ program is
main, and that is cross platform. After that, you will need to use the specific library you need to create the windows and anything else. Different platforms/libraries can provide amainfunction for you that will perform the initialization and then call a specific function (WinMainin the case of windows)You might want to take a look at this question regarding WinMain.