Ok, I've look all over and found out how to use extensions. However, I still have a problem getting one of the functions to work: glNewObjectBufferATI. Using the debugger I've found that wglGetProcAddress can't seem to find the address of the function when I'm initializing it. The result always comes out as zero -- which I know can't be right.
// in a header:
typedef GLuint (APIENTRY * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage);
PFNGLNEWOBJECTBUFFERATIPROC glNewObjectBufferATI = NULL;
// in the .cpp:
glNewObjectBufferATI = (PFNGLNEWOBJECTBUFFERATIPROC) wglGetProcAddress ("glNewObjectBufferATI");
if (glNewObjectBufferATI)
gluiVertexObject = glNewObjectBufferATI (objectsize, polygonlist.vertlist, GL_STATIC_ATI);
Using the same method, I can get glArrayObjectATI to work. Is there something I'm missing?
// in a header:
typedef GLuint (APIENTRY * PFNGLNEWOBJECTBUFFERATIPROC) (GLsizei size, const GLvoid *pointer, GLenum usage);
PFNGLNEWOBJECTBUFFERATIPROC glNewObjectBufferATI = NULL;
// in the .cpp:
glNewObjectBufferATI = (PFNGLNEWOBJECTBUFFERATIPROC) wglGetProcAddress ("glNewObjectBufferATI");
if (glNewObjectBufferATI)
gluiVertexObject = glNewObjectBufferATI (objectsize, polygonlist.vertlist, GL_STATIC_ATI);
Using the same method, I can get glArrayObjectATI to work. Is there something I'm missing?