Annother solution would be SimpleDirectmediaLayer (SDL)
-> www.libsdl.org