Moved window and entry code into main.cpp. Added perspective transform to shader.