Reputation: 23
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
Upvotes: 1
Views: 376
Reputation: 17266
Copy paste error?
PFNGLGENBUFFERSPROC should be PFNGLBUFFERDATAPROC (etc for others)?
Upvotes: 3