View Single Post
Old 01-29-05, 12:13 PM   #1
realmaxime
Registered User
 
realmaxime's Avatar
 
Join Date: Jan 2005
Location: Kaltenkirchen, SH (Germany)
Posts: 5
Send a message via ICQ to realmaxime Send a message via MSN to realmaxime
Unhappy PBuffers and GLX Support

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:

Code:
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):

Code:
#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
Code:
Display *dpy = glXGetCurrentDisplay();
leads to a segmentation fault, when i call it.

Code:
Display *dpy = XOpenDisplay(0);
does the job perfectly, does any one have a clou on that?
__________________
there is always another choice
{ rtfm | rm -rf / }

Last edited by realmaxime; 01-29-05 at 12:31 PM.
realmaxime is offline   Reply With Quote