Loading an extension in linux

Started by
3 comments, last by Khain 19 years, 7 months ago
How do I load an extension in linux? I've tried using glew but if I call glewInit(), nothing is drawn on the screen. The extension in question is ARB_multisample (http://oss.sgi.com/projects/ogl-sample/registry/ARB/multisample.txt)
Johan Torp - http://www.destruction.nu
Advertisement
You don't have to load anything at all...
Just check that it's defined, supported by the card/driver and off you go...
But don't I need to set the antialiasing mode before I create my window?
Johan Torp - http://www.destruction.nu
Well, if it's not in the core ( alot of things are ), then you can use glXGetProcAddress or you can use SDL's one which is SDL_GL_GetProcAddress to get the extension pointers.
If at first you don't succeed, redefine success.
Try gluX - cross platform easy OpenGL eXtension Loading

http://w3imagis.imag.fr/Membres/Sylvain.Lefebvre/glux/

This topic is closed to new replies.

Advertisement