'GL_CLAMP_TO_EDGE' was not declared in this scope

匿名 (未验证) 提交于 2019-12-03 01:23:02

问题:

How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so what gives?

回答1:

"It''s part of OpenGL 1.2, which is why it isn''t in Microsoft''s OpenGL 1.1 header.

Add this line to your code somewhere. BTW, you should probably check the GL version at runtime before using it.

#define GL_CLAMP_TO_EDGE 0x812F 

"

I just googled it and found this. Does it help?



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!