PDA

View Full Version : using glext.h?



supagu
04-25-2004, 05:34 AM
i've included glext.h in my app, but it seems the functions are recognised (i used to load the extensions manually, so commented out my defs so i can let glext.h do it).

Bob
04-25-2004, 12:20 PM
You still gave to load the function pointers. glext.h just contains constants and function pointer definitions for stuff not defined in gl.h.

supagu
04-25-2004, 03:57 PM
yeah i still do that,

but for some strange reason, it seems to think they functions are still undefined :-/

im using SDL:
glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREARBPROC)
SDL_GL_GetProcAddress("glClientActiveTexture");

glBindBufferARB = (PFNGLBINDBUFFERARBPROC)
SDL_GL_GetProcAddress("glBindBufferARB");

glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)
SDL_GL_GetProcAddress("glGenBuffersARB");

glBufferDataARB = (PFNGLBUFFERDATAARBPROC)
SDL_GL_GetProcAddress("glBufferDataARB");

Bob
04-26-2004, 12:48 AM
So what is the exact error you get then? Is the problem with glBindBufferARB or PFNGLBINDBUFFERARBPROC (taking a single line as an example only)?