OpenGL Extensions for Linux

Started by
1 comment, last by christian h 18 years, 7 months ago
Hi! How can I load and use OpenGL extensions unter Linux? Especially I need glActiveTextureARB and glMultiTexCoord2fARB for multitexturing. Unter Windows I have already used them, but I don't find any information about that for Linux. Thank you
Advertisement
GLee can do it for you in Linux, check out the Forum FAQ for details on where to find it [smile]
And by doing it manually is pretty much the same as in Windows:
Just call glGetString(GL_EXTENSIONS) and find the extension name there (strstr), if it's not, the extension is not supported. Then just grab the function pointers with glXGetProcAddress/glXGetProcAddressARB (char *funtion_name), as in wglGetProcAddress in Windows. Having the "ARB" after glXGetProcAddress depends on your systems, on some systems you don't need it.

And if you got real hw-drivers from card-manufacturer, you can quickly demo up stuff using extensions without fetching the function-pointers, they are in the libGL.so so the functions are linked within when you statically link to gl-libraries :)

ch.

This topic is closed to new replies.

Advertisement