Question

I'm using glext.h (http://oss.sgi.com/projects/ogl-sample/ABI/glext.h) to access the OpenGL buffer functions for a windows forms application.

PFNGLGENBUFFERSPROC myglGenBuffers = PFNGLGENBUFFERSPROC)wglGetProcAddress("glGenBuffers");
PFNGLGENBUFFERSPROC myglBindBuffer = (PFNGLGENBUFFERSPROC)wglGetProcAddress("glBindBuffer");
PFNGLGENBUFFERSPROC myglBufferData = (PFNGLGENBUFFERSPROC)wglGetProcAddress("glBufferData");
PFNGLGENBUFFERSPROC myglDeleteBuffer = (PFNGLGENBUFFERSPROC)wglGetProcAddress("glDeleteBuffer");

They all seem to work, except for glBufferData. myglBufferData expects

(GLsizei, GLuint *)

instead of

(GLenum, GLsizeiptr, const GLvoid *, GLenum)^

as input arguments and I can't figure out why. What am I doing wrong?

Unfortunately, using GLEW is not an option.

^glBufferData Specification

Was it helpful?

Solution

Copy paste error?

PFNGLGENBUFFERSPROC should be PFNGLBUFFERDATAPROC (etc for others)?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top