You can check out Allegro (game programming library)
Modify to provide additional information:
Allegro 4 and Allegro 5 are cross-platform, mainly libraries designed for video games and multimedia programming. They perform common, low-level tasks, such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. And, as a rule, the abstraction of the underlying platform. However, Allegro is not a game engine: you can freely develop and structure your program as you like.
Allegro 4 and 5 support the main OS (Unix / Linux, Windows (MSVC, MinGW) and MacOS X). The engine supports two-dimensional graphical primitives natively (you will need a separate API such as OpenGL or DirectX for 3D rendering, but you said that this is not your goal).
source share