That's an old project of mine that can be a good starting point. Although it is not the kind of game this contest is looking for, its XCB backend should be of interest. There is a generic X game application class, creating a fullscreen window with an image backbuffer, image and subtile blits, keyboard handling (the one important thing missing from XCB), and text drawing. All of that functionality is using Xrender, and so should be hardware accelerated. There are no external dependencies other than XCB. As Carmack said, "Get your fat API out of the way and let me at the iron!" This is as close to the iron as I care to go.
http://sourceforge.net/projects/gjid/
That's an old project of mine that can be a good starting point. Although it is not the kind of game this contest is looking for, its XCB backend should be of interest. There is a generic X game application class, creating a fullscreen window with an image backbuffer, image and subtile blits, keyboard handling (the one important thing missing from XCB), and text drawing. All of that functionality is using Xrender, and so should be hardware accelerated. There are no external dependencies other than XCB. As Carmack said, "Get your fat API out of the way and let me at the iron!" This is as close to the iron as I care to go.