The friends of fpc site has a section on starting out with the opengl/sdl combo if I recall