Kalen
Kalen

Reputation: 3126

OpenGL from terminal application on OSX

I have a fairly straight forward question. I have 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!

Upvotes: 2

Views: 625

Answers (1)

moliad
moliad

Reputation: 1503

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>

Upvotes: 4

Related Questions