One function to initialize openGL