SimpleDirectMediaLayer
From MobileRead
SDL - Simple DirectMedia Layer is a cross-platform multimedia library which can directly render graphics into framebuffer. Thus programs using this library are/should be portable to Kindle and other E-Paper devices.
Note: This article is pretty incomplete yet. But gives some clues for the setup.
[edit] Environment Variables
export SDL_NOMOUSE=1
export SDL_VIDEODRIVER=fbcon
or
export SDL_VIDEODRIVER=directfb
Both work, but with inverted colors.