Compiling linking to OpenGL 1.4

I have Visual Studio 2005, and I’m having problems linking to the VBO functions (glBindBuffer, glDeleteBuffers, etc).

I’m using the gl.h file in the platform SDK that comes with VC2005, and the date is april 2005, so it’s well after these functions were released, however, they are not defined in the .h file. (The ARB versions aren’t there either).

Anyone know how to get find these functions for compile/linking?

try…


.
.
#include <GL/glext.h>
.
.
glBindBufferARB = (PFNGLBINDBUFFERARBPROC)wglGetProcAddress("glBindBufferARB");
glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)wglGetProcAddress("glGenBuffersARB");
glBufferDataARB = (PFNGLBUFFERDATAARBPROC)wglGetProcAddress("glBufferDataARB");
.
.
.

www.gettingf.com for full example (without the model data).

Yep, worked, thank you!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.