Full detailed example at: https://github.com/Ousret/EasySDL-Sample
Contribute at: https://github.com/Ousret/EasySDL
This free lib is an extension of SDL 1.2
GUI program creation becomes much simpler. Not just simple GUI but 2D games too.
The carnage engine is a simple C++ wrapper over SDL and SDL_mixer.
It does feature:
BMP loading, square sprite animation, automatic window creation and management, music and sample playing, 2D collisions routine...