Qt & glut together

 IDE:Qt Creator 1.2.0  for  Windows   

Base on Qt 4.5.2

1、Copy glut.h to mingw/include/GL;

2、Include <GL/glut.h> in the code using glut functioins;

3 、Add "-lglut32" in the "LIB" string in the makefile;

4、Copy glut32.dll to /windows/system32.

5、Done!

你可能感兴趣的:(Qt & glut together)