Re: [Plib-devel] commandline conversion program
Brought to you by:
sjbaker
From: <br...@sa...> - 2005-01-09 19:20:33
|
> You need to understand how non-visible OpenGL rendering contexts > work. Ok, pbuffers it will be.... They prove to be a real pain. On IRIX, glXGetFBConfigs() returns 43 configs. On linux, it returns 0. My glx implementation is a modern one (1.3), and according to IBM's developer info, glXGetFBConfigs() or glxChooseFBConfig() should work with glx1.3: http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/openglrf/HowRenderXdraw.htm My glxinfo on linux gives me: server glx vendor string: NVIDIA Corporation server glx version string: 1.3 server glx extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, GLX_ARB_multisample client glx vendor string: NVIDIA Corporation client glx version string: 1.3 client glx extensions: GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync, GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_NV_float_buffer GLX extensions: GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, GLX_ARB_multisample, GLX_ARB_get_proc_address Any idea why configs are not found? glxinfo -t lists a lot of configs. My tst prog: #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <GL/glx.h> int main(int argc, char *argv[]) { Display *dpy = XOpenDisplay(0); int scn=DefaultScreen(dpy); int cnt; GLXFBConfig *cfg = glXGetFBConfigs(dpy, scn, &cnt); fprintf(stderr,"glXGetFBConfigs returned %p (%d matches)\n", cfg, cnt); assert(cnt); int attrlist[] = { GLX_PBUFFER_WIDTH, 1, GLX_PBUFFER_HEIGHT, 1, 0 }; GLXPbufferSGIX pBuffer = glXCreatePbuffer(dpy, cfg[0], attrlist); fprintf(stderr,"pBuffer = %p\n", pBuffer); } |