created constructor to take clear colour and clipping
added sdl window exception