macOS上的OpenGL是否已弃用? [英] Is OpenGL on macOS deprecated?

查看:979
本文介绍了macOS上的OpenGL是否已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始接触OpenGL,但是我一直都收到警告!

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

例如,为什么在macOS 10.9中不推荐使用glutInit(&argc, arg);? (不建议使用'glutInit':首先在macOS 10.9中不建议使用-OpenGL API已弃用.)

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

有什么方法可以更新 OpenGl?

Is there any way to Update OpenGl?

推荐答案

根据金属代替…

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…

这篇关于macOS上的OpenGL是否已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆