sdl example 2 - prepare resources