diff options
author | Lyude Paul <thatslyude@gmail.com> | 2017-08-24 14:50:19 -0400 |
---|---|---|
committer | Lyude Paul <thatslyude@gmail.com> | 2017-08-24 14:50:19 -0400 |
commit | 4bde48e12cd0487ec2d2ad1383a912fd35541ac2 (patch) | |
tree | 7148814324dbe77b7b73ee2618882b257c067af1 /src/dispatch_common.h | |
parent | 516b4fb8d0bced1fdbb9faa633c25d958de146bc (diff) | |
download | libepoxy-4bde48e12cd0487ec2d2ad1383a912fd35541ac2.tar.gz |
Expose epoxy_extension_in_string() in public headers
The EGL_EXT_device_query extension introduces the
eglQueryDeviceStringEXT() function, which can be used with an
EGLDeviceEXT enumeration to receive an OpenGL extension string
containing all of the device extensions supported by it. From the
EGL_EXT_device_query spec's amendments to section "3.2 Devices" after
"3.1 Errors":
const char *eglQueryDeviceStringEXT(EGLDeviceEXT device,
EGLint name);
returns a pointer to a static, zero-terminated string describing
some aspect of the specified EGLDeviceEXT. <name> must be
EGL_EXTENSIONS.
Since OpenGL extension parsing is rather simple, and we could always run
into additional cases similar to this one in the future, we expose the
shared epoxy_extension_in_string() function in libepoxy's public headers
so that users can save themselves the hassle of having to write their
own extension parser.
Signed-off-by: Lyude Paul <thatslyude@gmail.com>
Diffstat (limited to 'src/dispatch_common.h')
-rw-r--r-- | src/dispatch_common.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dispatch_common.h b/src/dispatch_common.h index e16771f..9982567 100644 --- a/src/dispatch_common.h +++ b/src/dispatch_common.h @@ -165,8 +165,6 @@ bool epoxy_conservative_has_wgl_extension(const char *name); void *epoxy_conservative_egl_dlsym(const char *name, bool exit_if_fails); void *epoxy_conservative_glx_dlsym(const char *name, bool exit_if_fails); -bool epoxy_extension_in_string(const char *extension_list, const char *ext); - #define glBegin_unwrapped epoxy_glBegin_unwrapped #define glEnd_unwrapped epoxy_glEnd_unwrapped extern void UNWRAPPED_PROTO(glBegin_unwrapped)(GLenum primtype); |