I want to write something that will take care of:
If possible the int main() loop, as in, I want the code for the main function located in this file
Some mundane tasks like creating windows, initializing various things like opengl, opencv and what not.
Various "events" (I quote because I what the c++ concept of events is) for things like keyboard and mouse events.
Provide access to pertinent member variables like the hDC.
I would like to put this code in one file that I can just drop into a new project and then have something like an App.cpp that can respond to the Events as it chooses, without requiring it to handle all of them.
My background is in c#, and I am just beginning c++. I fear that I might not have articulated by question well, but any help would be appreciated.
Edit: I am not looking for a prefab solution. I am not too hung up on it being one file. I am interested in the mechanics of how to actually create the framework. I am not at all concerned with cross platform compatibility