简体   繁体   中英

OpenGL: VBO functions are not defined

I'm trying to use OpenGL VBO's, but the functions associated with their use, glGenBuffersARB() for instance, are all undefined. Immediate mode functions are fine of course, it's only these.

I'm using VS2010, with the SFML library. One of the include headers in that library includes both <GL/gl.h> and <GL/glu.h> , and the executable is linked against glu32.lib and opengl32.lib

Why are only these functions missing, and how would I be able to include their use?

GLEW will define them, as will other GL extension libraries.

Information can be found here: http://www.opengl.org/resources/features/OGLextensions/

Using an extension that includes new function call entry-points is harder in Win32 because you must first request the function pointer from the OpenGL ICD driver before you can call the OpenGL function.

GLEW does this for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM