'GL_CLAMP_TO_EDGE'未在此范围中声明 [英] 'GL_CLAMP_TO_EDGE' was not declared in this scope

查看:1376
本文介绍了'GL_CLAMP_TO_EDGE'未在此范围中声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决这个问题?我有gl / gl.h和gl / glu.h包含,所以有什么?

解决方案

是OpenGL 1.2的一部分,这就是为什么它不在微软的OpenGL 1.1头文件中。



将这一行添加到你的代码。您应该在运行时检查GL版本,然后再使用它。

  #define GL_CLAMP_TO_EDGE 0x812F 





我只是google搜索,发现。它有帮助吗?


How do I fix this? I've got both gl/gl.h, and gl/glu.h included, so what 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?

这篇关于'GL_CLAMP_TO_EDGE'未在此范围中声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆