Cocoa OpenGL窗口在纯C? [英] Cocoa OpenGL window in pure C?

查看:184
本文介绍了Cocoa OpenGL窗口在纯C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在MacOSX中打开一个OpenGL窗口(显示和抓取按键/鼠标事件)。

I want to open an OpenGL window ( to display and grab keystrokes / mouse events ) in MacOSX.

我不想使用Glut它是根线程)。

I don't want to use Glut (since it demandds it be the root thread).

我不想学习Objective C。

I don't want to learn Objective C.

在纯C中访问OpenGL API?

Is there anyway to access the OpenGL api in pure C?

谢谢!

推荐答案

我最终使用GLFW。

首先,键盘事件不起作用;但是他们有一个用于构建包的示例脚本。之后,完美无缺。

At first, keyboard events do not work; but they have a sample script for building a bundle. After that, flawless.

这篇关于Cocoa OpenGL窗口在纯C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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