Jump to content
  • Advertisement
Sign in to follow this  
ChristophR

OpenGL OpenGL Extensions for Linux

This topic is 4815 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!