2 * OpenGL pbuffers utility functions.
13 #define GLX_GLXEXT_PROTOTYPES
17 #if defined(GLX_VERSION_1_3)
18 #define PBUFFER GLXPbuffer
19 #define FBCONFIG GLXFBConfig
20 #elif defined(GLX_SGIX_fbconfig) && defined(GLX_SGIX_pbuffer)
21 #define PBUFFER GLXPbufferSGIX
22 #define FBCONFIG GLXFBConfigSGIX
30 QueryFBConfig(Display
*dpy
, int screen
);
33 QueryPbuffers(Display
*dpy
, int screen
);
37 PrintFBConfigInfo(Display
*dpy
, int screen
, FBCONFIG config
, Bool horizFormat
);
41 ChooseFBConfig(Display
*dpy
, int screen
, const int attribs
[], int *nConfigs
);
45 GetAllFBConfigs(Display
*dpy
, int screen
, int *nConfigs
);
49 GetVisualFromFBConfig(Display
*dpy
, int screen
, FBCONFIG config
);
53 CreateContext(Display
*dpy
, int screen
, FBCONFIG config
);
57 DestroyContext(Display
*dpy
, GLXContext ctx
);
61 CreatePbuffer(Display
*dpy
, int screen
, FBCONFIG config
,
62 int width
, int height
, Bool preserve
, Bool largest
);
66 DestroyPbuffer(Display
*dpy
, int screen
, PBUFFER pbuffer
);