Also I think turning c/c++ examples into Pascal ones is easy if you remember few things:

- int - Integer, bool - boolean.
- Declaring all names in C/C++ code in var section and change all in-code declaration into assignments.
- Also you should remember of any of function name differences between C/C++ library you're using and pascal headers for it. Can't speak on SDL, but in case of Allegro and Allegro.pas in latter all functions/variables/procedures names start with al_ prefix, probably because we already have things like readkey, keypressed, etc.