Implemented viewport stuff.
Implemented scene creation function.