开发者

'GL_CLAMP_TO_EDGE' was not declared in this scope

开发者 https://www.devze.com 2023-02-23 05:42 出处:网络
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.

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

精彩评论

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