libepoxy
1.5.3
|
Provides an implementation of a GL dispatch layer using either global function pointers or a hidden vtable. More...
Typedefs | |
typedef void(* | epoxy_resolver_stub_t) (void) |
typedef epoxy_resolver_stub_t(* | epoxy_resolver_failure_handler_t) (const char *name) |
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... | |
int | epoxy_glsl_version (void) |
Returns the version of the GL Shading Language we are using. More... | |
epoxy_resolver_failure_handler_t | epoxy_set_resolver_failure_handler (epoxy_resolver_failure_handler_t handler) |
Sets the function that will be called every time Epoxy fails to resolve a symbol. 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>
.
typedef epoxy_resolver_stub_t(* epoxy_resolver_failure_handler_t) (const char *name) |
typedef void(* epoxy_resolver_stub_t) (void) |
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.
int epoxy_glsl_version | ( | void | ) |
Returns the version of the GL Shading Language 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 epoxy_resolver_failure_handler_t epoxy_set_resolver_failure_handler | ( | epoxy_resolver_failure_handler_t | handler | ) |
Sets the function that will be called every time Epoxy fails to resolve a symbol.
handler | The new handler function |