glut and glew

有两个库,一上午没搞定。
记下来:

http://stackoverflow.com/questions/4715530/opengl-how-to-compile-glew32-dll-from-source-file/4716857#4716857

编译glew是简单的,直接vc 6的dsw 用vs2010打开,选择转换,编译即可。在我这儿,四个工程均通过了。

而对glut32

http://www.divms.uiowa.edu/~cwyman/classes/common/howto/winGLUT.html

这儿有一个教程,有直接编译好的bin, vs2010也可使用。

这是一篇编译glut的指导,但我在编译时有几个LINK error,没有成功…   http://staff.psc.edu/smp/teaching/is2780-fall2001/glutwincompile.html

opengl及glu是vs自带的.

Opengl程序中常有一些头文件间顺序比较关键,如以下三个:

#include <cstdlib>
// includes //
#include <GL/glew.h>
#include <GL/glut.h>
 
原文地址:https://www.cnblogs.com/justin_s/p/2531929.html