28 #ifndef __GLXUtils_H__
29 #define __GLXUtils_H__
32 #define GLX_GLXEXT_PROTOTYPES
34 #include <GL/glxext.h>
43 static PFNGLXCHOOSEFBCONFIGPROC chooseFBConfig;
44 static PFNGLXCREATENEWCONTEXTPROC createNewContext;
45 static PFNGLXGETFBCONFIGATTRIBPROC getFBConfigAttrib;
46 static PFNGLXGETVISUALFROMFBCONFIGPROC getVisualFromFBConfig;
55 static GLXFBConfig getFBConfigFromContext (Display *display, ::GLXContext context);
67 static GLXFBConfig getFBConfigFromDrawable (Display *display, GLXDrawable drawable,
68 unsigned int *width,
unsigned int *height);
78 static GLXFBConfig selectFBConfig(Display *display,
const int *minAttribs,
const int *maxAttribs);
91 static bool loadIcon(Display *display,
const std::string &name, Pixmap *pix, Pixmap *mask);