我的代码充满了警告,比如
不推荐使用“glTranslatef”:首先在 macOS 10.14 中不推荐使用 - 不推荐使用 OpenGL API。(定义 GL_SILENCE_DEPRECATION 以消除这些警告)
我做了,#define GL_SILENCE_DEPRECATION但这并没有解决问题。我使用的freeglut是通过使用安装的brew install freeglut
#define GL_SILENCE_DEPRECATION
freeglut
brew install freeglut
我可以以某种方式让它静音吗?
opengl freeglut
freeglut ×1
opengl ×1