Advertisement Jump to content
Sign in to follow this  
ChristophR

OpenGL OpenGL Extensions for Linux

This topic is 4878 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!