Finished basic rendering framework, made it linux compatitable