example code

I have put together a framework which you can use as a starting point, the overhead in these examples is 244 bytes for SDL, 195 for GL, and 256 for glut. So you still have around 3800 bytes for actual code :).

A Makefile for building with gnu make is included, but creating a project for MSVC or CodeWarrior should be fairly straightforward (www.libsdl.org has some info on this, and if someone wants to contribute their workspace/project file, please do :).

Download 4ksource.zip, or read sdl_4k.c, ogl_4k.c, glut_4k.c online.