Is OpenGL on macOS deprecated?

2019-08-30 03:44发布

问题:

I've started to get a little involved with OpenGL, but I get warnings all the time!

Why is, for example, glutInit(&argc, arg); deprecated in macOS 10.9? ('glutInit' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated.)

Is there any way to Update OpenGl?

回答1:

According to the OpenGL Programming Guide for Mac as well as this here (all the way at the bottom), OpenGL is a deprecated technology starting with macOS 10.14. They want you to use Metal instead…