Moving render types and started the state managment for opengl