glGenBuffers没有定义? [英] glGenBuffers not defined?

查看:1017
本文介绍了glGenBuffers没有定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Windows,我注意到,很多功能都是灰色的,因为我想#IFDEF GL_GLEXT_PROTOTYPES没有定义。其中之一是在VBO扩展。如果我只是定义GL_GLEXT_PROTOTYPES?否则,我还能怎么使用通过OPENGL32.DLL因为即时通讯维也纳组织(我想我的应用程序没有默认包含在Windows中。无DLL依赖)谢谢

I'm using windows and I notice that a lot of functions are grayed out because I guess #ifdef GL_GLEXT_PROTOTYPES is not defined. One of these is the VBO extension. Should I just define GL_GLEXT_PROTOTYPES? Otherwise how else can I use VBOs since im using OpenGL32.dll (I want my application to have no dll dependencies not included in Windows by default.) Thanks

推荐答案

我建议您使用GLEW摆脱这一问题的。

I recommend that you use GLEW to get rid of that problem.

这是一个很长的故事,但恢复时,Windows的OpenGL库仅公开的OpenGL 1.1的切入点,所以超出该版本的所有功能都装有wglGetProcAddress。 GLEW通过这样做,解决了这个问题。

It's a long story, but resuming, Windows' OpenGL library only exposes OpenGL 1.1 entry points, so all functions beyond that version are loaded with wglGetProcAddress. GLEW solves this problem by doing that.

http://glew.sourceforge.net/

只是链接到GLEW和GLU /葡萄糖转运蛋白(如果你使用它们)。

Just link to GLEW and GLU/GLUT (if you use them).

这篇关于glGenBuffers没有定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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