PDA

View Full Version : GLX_GLXEXT_PROTOTYPES



azcoder
08-27-2003, 03:47 PM
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

09-03-2003, 12:37 PM
Is not nvidia the only one that supports pbuffers in linux? If so is it easisest to use nvidias headers.

azcoder
09-03-2003, 03:48 PM
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

09-03-2003, 04:17 PM
Well, I just have to include them. http://www.opengl.org/discussion_boards/ubb/smile.gif
ATI has a render_to_texture extension that is working under linux.