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 QueryPbuffers(Display
*dpy
, int screen
);
34 PrintFBConfigInfo(Display
*dpy
, int screen
, FBCONFIG config
, Bool horizFormat
);
38 ChooseFBConfig(Display
*dpy
, int screen
, const int attribs
[], int *nConfigs
);
42 GetAllFBConfigs(Display
*dpy
, int screen
, int *nConfigs
);
46 GetVisualFromFBConfig(Display
*dpy
, int screen
, FBCONFIG config
);
50 CreateContext(Display
*dpy
, int screen
, FBCONFIG config
);
54 DestroyContext(Display
*dpy
, GLXContext ctx
);
58 CreatePbuffer(Display
*dpy
, int screen
, FBCONFIG config
,
59 int width
, int height
, Bool preserve
, Bool largest
);
63 DestroyPbuffer(Display
*dpy
, int screen
, PBUFFER pbuffer
);