Add the new Screen API, convert the 2D sample to use it