开发者

'GL_CLAMP_TO_EDGE' was not declared in this scope

How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so w开发者_如何学Gohat gives?


"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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜