'gluPerspective' was not declared in this scope gluPerspective
最近在Window10使用Qt5.12学习OpenGL时,出现了以OpenGL中glu开头的函数库无法使用的错误,例如:
‘gluPerspective’ was not declared in this scope
在引用了类似于gluPerspective函数的glu函数库所在源文件中添加头文件:#include
这一步必须,不知道为什么在QT5.2下使用OpenGL的以glu开头的GLu32库还需要包含gl/glu.h头文件,而使用OpenGL中以gl打头的OpenGL32库就不需要包含头文件了。
还没有评论,来说两句吧...