|
libepoxy
1.4.1
|
Provides an implementation of a GL dispatch layer using either global function pointers or a hidden vtable. More...
Functions | |
| bool | epoxy_has_gl_extension (const char *extension) |
| Returns true if the given GL extension is supported in the current context. More... | |
| bool | epoxy_is_desktop_gl (void) |
| Checks whether we're using OpenGL or OpenGL ES. More... | |
| int | epoxy_gl_version (void) |
| Returns the version of OpenGL we are using. More... | |
Provides an implementation of a GL dispatch layer using either global function pointers or a hidden vtable.
You should include <epoxy/gl.h> instead of <GL/gl.h> and <GL/glext.h>.
| int epoxy_gl_version | ( | void | ) |
Returns the version of OpenGL we are using.
The version is encoded as:
So it can be easily used for version comparisons.
| bool epoxy_has_gl_extension | ( | const char * | ext | ) |
Returns true if the given GL extension is supported in the current context.
| ext | The name of the GL extension |
true if the extension is availableglBegin() and glEnd().| bool epoxy_is_desktop_gl | ( | void | ) |
Checks whether we're using OpenGL or OpenGL ES.
true if we're using OpenGL
1.8.13