Make an SDL/OpenGL-frontend; might be more intuitive to read, although I'm not sure...