GLX_GLXEXT_PROTOTYPES

I am trying to use pbuffers in linux. If I just:
#define GLX_GLXEXT_PROTOTYPES
#include <GL/glxext.h>
I get errors for undefined glx functions.
If I modify glxext.h itself to have
#define GLX_GLXEXT_PROTOTYPES
everything is fine.

My question is: What is the correct process to enable the pbuffer functions in glx?

Thanks in advance for any help

Is not nvidia the only one that supports pbuffers in linux? If so is it easisest to use nvidias headers.

Interestingly enough I was using the headers that come with nvidia’s linux opengl sdk. The included glxext.h still contains the original sgi notice. Anyway, in order to use their header, I still have to modify it to
#define GLX_GLXEXT_PROTOYPES
for it to work.
If I #define GLX_GLXEXT_PROTOYPES in my file and then #include nvidia’s glxext.h it doesn’t work.

It seems as though glxext.h includes glx.h which undefines #define GLX_GLXEXT_PROTOYPES.

Anyway, I know this is all too much detail and confusing. I was hoping to have a documented procedure to include the pbuffer extension.

I am sad to hear only nvidia supports pbuffers on linux. I was hoping ATI did too…

Thanks anyway

Well, I just have to include them.
ATI has a render_to_texture extension that is working under linux.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.