libepoxy
1.5.3
|
Provides an implementation of a GLX dispatch layer using global function pointers. More...
Functions | |
bool | epoxy_has_glx_extension (Display *dpy, int screen, const char *extension) |
Returns true if the given GLX extension is supported in the current context. More... | |
int | epoxy_glx_version (Display *dpy, int screen) |
Returns the version of GLX we are using. More... | |
bool | epoxy_has_glx (Display *dpy) |
Checks whether GLX is available. More... | |
Provides an implementation of a GLX dispatch layer using global function pointers.
You should include <epoxy/glx.h>
instead of <GL/glx.h>
.
int epoxy_glx_version | ( | Display * | dpy, |
int | screen | ||
) |
Returns the version of GLX we are using.
The version is encoded as:
So it can be easily used for version comparisons.
dpy | The X11 display |
screen | The X11 screen |
bool epoxy_has_glx | ( | Display * | dpy | ) |
Checks whether GLX is available.
dpy | The X11 display |
true
if GLX is availablebool epoxy_has_glx_extension | ( | Display * | dpy, |
int | screen, | ||
const char * | ext | ||
) |
Returns true if the given GLX extension is supported in the current context.
dpy | The X11 display |
screen | The X11 screen |
extension | The name of the GLX extension |
true
if the extension is available