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.li开发者_如何转开发b
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.
精彩评论