开发者

OpenGL from terminal application on OSX

开发者 https://www.devze.com 2023-03-21 06:27 出处:网络
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

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

精彩评论

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