OpenGL initialization function.