realmaxime
01-29-05, 01:13 PM
Hi,
i am currently trying to get a PBuffer class to work on my Linux OS (Suse 9.1 Personal), my GPU is a nVidia GeForce 6610 XL.
The class is based upon the nvidia demo-class pbuffer.cpp (but just the linux part implemented).
I need the following components for my PBufferConfig:
int configAttributes[] = {
GLX_DRAWABLE_TYPE,GLX_PBUFFER_BIT,
GLX_RENDER_TYPE,GLX_RGBA_BIT,
GLX_RED_SIZE, 32,
GLX_GREEN_SIZE, 32,
GLX_BLUE_SIZE, 32,
GLX_ALPHA_SIZE, 1
GLX_DOUBLEBUFFER, true,
GLX_FLOAT_COMPONENTS_NV,true
None
}
Its all fine, but my compiler does not find the GLX_FLOAT_COMPONENTS_NV?
I included following headers (as they are included in the examples):
#include <X11/X.h>
#include <GL/gl.h>
#include <GL/glx.h>
when i cat | grep one of these to find the GLX_FLOAT_COMPONENTS_NV i get zero result.
Also i am not able to use one of the "...SGIX" functions, too. eg: glXQueryGLXPbufferSGIX and others.
I am using FreeGlut on my system. glxinfo tells me that a GLX_NV_float_buffer is available.
Does any one have a clue? Maybe i just need other glx sources, then please tell me where to get those.
Please help!
thx,
Roger
------------------------------------------------------------
edit: further info
i am compiling with following links:
-L/usr/X11/lib -L/usr/lib -lCg -lCgGL -lGLEW -lglut -lGL -lGLU
maybe some are obsolete, but as far as i dont know where to find the right components, i better linked all that was found ;)
------------------------------------------------------------
edit: another problem, same class
Display *dpy = glXGetCurrentDisplay();
leads to a segmentation fault, when i call it.
Display *dpy = XOpenDisplay(0);
does the job perfectly, does any one have a clou on that?
i am currently trying to get a PBuffer class to work on my Linux OS (Suse 9.1 Personal), my GPU is a nVidia GeForce 6610 XL.
The class is based upon the nvidia demo-class pbuffer.cpp (but just the linux part implemented).
I need the following components for my PBufferConfig:
int configAttributes[] = {
GLX_DRAWABLE_TYPE,GLX_PBUFFER_BIT,
GLX_RENDER_TYPE,GLX_RGBA_BIT,
GLX_RED_SIZE, 32,
GLX_GREEN_SIZE, 32,
GLX_BLUE_SIZE, 32,
GLX_ALPHA_SIZE, 1
GLX_DOUBLEBUFFER, true,
GLX_FLOAT_COMPONENTS_NV,true
None
}
Its all fine, but my compiler does not find the GLX_FLOAT_COMPONENTS_NV?
I included following headers (as they are included in the examples):
#include <X11/X.h>
#include <GL/gl.h>
#include <GL/glx.h>
when i cat | grep one of these to find the GLX_FLOAT_COMPONENTS_NV i get zero result.
Also i am not able to use one of the "...SGIX" functions, too. eg: glXQueryGLXPbufferSGIX and others.
I am using FreeGlut on my system. glxinfo tells me that a GLX_NV_float_buffer is available.
Does any one have a clue? Maybe i just need other glx sources, then please tell me where to get those.
Please help!
thx,
Roger
------------------------------------------------------------
edit: further info
i am compiling with following links:
-L/usr/X11/lib -L/usr/lib -lCg -lCgGL -lGLEW -lglut -lGL -lGLU
maybe some are obsolete, but as far as i dont know where to find the right components, i better linked all that was found ;)
------------------------------------------------------------
edit: another problem, same class
Display *dpy = glXGetCurrentDisplay();
leads to a segmentation fault, when i call it.
Display *dpy = XOpenDisplay(0);
does the job perfectly, does any one have a clou on that?