basic sdl interface