通过Objective-C/Cocoa使用OpenGL [英] Working with OpenGL via Objective-C/Cocoa

查看:79
本文介绍了通过Objective-C/Cocoa使用OpenGL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究 Mac OS X 上的 OpenGL 编程.虽然对于那些使用纯 C、C++ 甚至 Python 进行编程的人来说,存在大量关于该主题的信息,但对于 Objective-C/Cocoa 开发人员来说却很少,并且许多现存的东西可怕已经过时了(我们说的是 2002-2006 年,这是技术领域的永恒之前).因此,很难找到准确的最新信息,这使我提出了一个问题:Obj-C/Cocoa开发人员最近通过哪种途径最经常使用OpenGL(特别是3D渲染)?/p>

此外,我被认为是在OpenGL的许多方面都没有Objective-C/Cocoa绑定.这是真的吗?

如有必要,我可以学习另一种语言,但是我更愿意尽可能使用Obj-C,这样我就可以将时间集中在学习OpenGL而不是整个编程语言上(C ++看起来很吓人).

解决方案

到目前为止,还没有广泛的Objective-C绑定到OpenGL.如果您有Apple开发人员帐户,建议您查看今年的WWDC视频,以了解在不久的将来这种情况是否会发生变化.

如果您想了解如何从Objective-C/Cocoa中使用OpenGL 3.2,请查看我之前创建的教程.

I have been researching OpenGL programming on Mac OS X. While a fair amount of information on the topic exists for those programming in plain C, C++, and even Python, very little is out there for Objective-C/Cocoa developers, and much what exists is horrendously out of date (we're talking 2002-2006, an eternity ago in technology). Because of this, it's difficult to find accurate, up-to-date information, leading me to pose this question: Through what route do Obj-C/Cocoa developers most often make use of OpenGL (specifically in 3D rendering) these days?

Also, I am led to believe that there are no Objective-C/Cocoa bindings for much of OpenGL. Is this true?

I can learn another language if necessary, but I would much prefer to stick to Obj-C if at all possible, allowing me to focus time spent learning OpenGL rather than an entire programming language (C++ looks particularly intimidating).

解决方案

As of now, there is no extensive Objective-C binding to OpenGL. If you have an Apple developer account, I would recommend you check out this year's WWDC videos to find out if this is changing in the very near future.

If you want to check out how to use OpenGL 3.2 from Objective-C/Cocoa, have a look at the tutorial I created a while ago.

这篇关于通过Objective-C/Cocoa使用OpenGL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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