Finished initial creation of renderingEngine. Very messy and unsafe. May not be able to make safe.