请教:Dev-c++下glut库的安装问题 确切的说我用的是wx-dev-cpp 下载glut相应的文件,安装如下: glut.h----(dev-cpp的安装目录)/include/GL glut32.dll----c:/winnt/system32 glut32.lib---(dev-cpp的安装目录)/lib 编译程序通不过,提示是一些链接错误,如下: [Link error]undefined referende to "__glutInitWithExit@12" [Link error]undefined referende to "__glutCreateWindowsWithExit@8" [Link error]undefined referende...
by yaoyansi - C/C++ - 2005-10-18 13:55:10 阅读(2805) 回复(1)
我在用python的opengl模块时,发现glut的glutMainLoop函数有些问题。在执行glutMainLoop()后可以调出 opengl显示窗口,但是这时如果用窗口上的叉叉按钮关掉窗口,整个程序就会立刻全部退出,在glutMainLoop后面的代码都执行不了。 是前面需要对opengl进行什么设置吗?要不然是不是需要截住退出消息?我该怎么弄才可以使跟在glutMainLoop函数后面的代码可以执行呢?