opengl学习之路------glGenBuffers was not declared in this scope
来源:互联网 发布:联通免流软件 编辑:程序博客网 时间:2024/06/05 08:37
刚学opengl,出现glGenBuffers was not declared in this scope 错误,谷歌学习了一下下,记下这个错误和解决方案,解决问题地址如下
https://www.opengl.org/discussion_boards/showthread.php/169289-glGenBuffers%C2%92-was-not-declared-in-this-scope
glGenBuffers’ was not declared in this scope
Hi
Errormsg: ‘glGenBuffers’ was not declared in this scope
I'm using the latest openGL
3.2 Nvidia driver 32bit on openSuse 11.2
glext is included. I checked within glext.h and found it.
What else could I try?
Michael
michael@23-194-pool:~> glewinfo | grep glGenBuffer
glGenBuffers: OK
glGenBuffersARB: OK
michael@2-194-pool:~>
Re: glGenBuffers’ was not declared in this scope
Try adding the GL_GLEXT_PROTOTYPES before your include
ieor if using gcc compiler just add -DGL_GLEXT_PROTOTYPES to your compile commandCode :#define GL_GLEXT_PROTOTYPES...#include <glext.h>
I see you are using glewinfo -- excellent. Why not use it also within your code since it is more general approach that helps with openGL extensionssee GLEW and it's Basic Usage. Note with GLEW you don't need to worry about adding GL_EXT_PROTOTYPES define macro. It takes care of that and lots of other things for you.
0 0
- opengl学习之路------glGenBuffers was not declared in this scope
- C++之‘nullptr’ was not declared in this scope
- ‘cout’ was not declared in this scope
- 'wxCHANGE_DIR' was not declared in this scope
- 'setenv' was not declared in this scope
- 'UINT64_C' was not declared in this scope
- ‘UINT64_C’ was not declared in this scope
- ‘close’ was not declared in this scope
- was not declared in this scope
- Connect was not declared in this scope
- 'XXX' was not declared in this scope
- getcwd was not declared in this scope
- nullptr was not declared in this scope
- ‘close’ was not declared in this scope
- '_fileno' was not declared in this scope
- ‘inet_pton’ was not declared in this scope
- ioctl'was not declared in this scope
- FIONBIO was not declared in this scope
- 深度学习——参数共享(parameter sharing)
- Play1.x对于日期类型数据的请求和处理
- Android 升级SDK管理器版本到20,安装Android 4.0以及更高版本
- HttpServletRequest和HttpServletResponse详解
- Unity shader 官网文档全方位学习(基础)
- opengl学习之路------glGenBuffers was not declared in this scope
- 客户端验证的极品--jQuery.validator
- Visual Studio 2003中_tmain()和main()的区别
- 特殊字符
- 【配置CDH和管理服务】关闭DataNode前HDFS的调优
- Delphi的图形处理 之一 -- 图像处理在可视化编程中的作用及其应用价值
- android.support.v4.util.Pool 类解析
- 单一职责原则
- 30101940481转成30-1-01-1940481