As promised: Here’s my basecode!
This is the basecode I use in most of my games. It is C++ for Windows using OpenGL for the graphics. Most of the code originally comes from NeHe and was adapted by me for my own purposes. The TextObject class is based on code from Charles Petzold’s book on Windows programming and has been bugfixed and extended by me. As you can see in WinMain.cpp, you will need a class Game with methods Initialize, Deinitialize, Update and Draw in which you will store your main game code if you want to use this basecode for your own projects.