Extensions in Mac OS/Qt

Does anyone know how to load OpenGL extensions under MacOS or Qt? I’m writing a program which could be best suited for using 3D textures, but since it’s an extension, I don’t have access to it right now. All the techniques I’ve learned from Windows programming failed to work:

using PFNGLTEXIMAGE3DPROC caused an error because “PFNGLTEXIMAGE3DPROC was not a type”, and gl.ext WAS included.

just calling glTexImage3D didn’t work because it “was not declared in this scope”

Completely at a loss here guys. Any help would be appreciated! Thanks!

http://glew.sourceforge.net/

You don’t need to load the function pointer in Mac OS X. Just check GL_VERSION and GL_EXTENSIONS, then call the entry point. Linking against the framework will automatically get you valid entry points for all API declared in gl.h and glext.h.