开发者

OpenGL from terminal application on OSX

I have a fairly straight forward question. I have开发者_如何学Go a commandline application I'm writing in C, and I want to bring up an OpenGL window from that application itself, not invoking another app. Can I use GLUT, or something?

Thanks!


yes, if all you are doing is opening OpenGL windows (interactive or not) without need for system controls, GLUT will definitely make your life easy.

here is one of the best GLUT tutorials I know of: http://www.lighthouse3d.com/tutorials/glut-tutorial/

for OSX you may need to change your includes.

#include <GL/glut.h>

to

#include <GLUT/glut.h>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜