-Finished implementation of class RenderThread.