PTCPas is a lowlevel 2D graphics toolkit by Nikolay Nikolov that provides you with a frame buffer; it allows you to write portable software for go32, Windows and Unix: http://sourceforge.net/projects/ptcpas

It is shipped with FPC.