summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2017-10-19 11:11:28 +0100
committerGitHub <noreply@github.com>2017-10-19 11:11:28 +0100
commit1b54e263eb112030b59c06f5daed0f75c8653cf3 (patch)
tree9600dcf02968cf23f9b375a28eda18c96ae72fde /src
parent1dc283e9a38d4d8a82e2e49b9b516276eb435c25 (diff)
parent4bde48e12cd0487ec2d2ad1383a912fd35541ac2 (diff)
downloadlibepoxy-1b54e263eb112030b59c06f5daed0f75c8653cf3.tar.gz
Merge pull request #136 from Lyude/pull/epoxy_ext_in_str
Expose epoxy_extension_in_string() in public headers
Diffstat (limited to 'src')
-rw-r--r--src/dispatch_common.c18
-rw-r--r--src/dispatch_common.h2
2 files changed, 18 insertions, 2 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c
index b1edd51..718ae07 100644
--- a/src/dispatch_common.c
+++ b/src/dispatch_common.c
@@ -446,6 +446,24 @@ epoxy_conservative_gl_version(void)
return epoxy_internal_gl_version(100);
}
+/**
+ * @brief Checks for the presence of an extension in an OpenGL extension string
+ *
+ * @param extension_list The string containing the list of extensions to check
+ * @param ext The name of the GL extension
+ * @return `true` if the extension is available'
+ *
+ * @note If you are looking to check whether a normal GL, EGL or GLX extension
+ * is supported by the client, this probably isn't the function you want.
+ *
+ * Some parts of the spec for OpenGL and friends will return an OpenGL formatted
+ * extension string that is seperate from the usual extension strings for the
+ * spec. This function provides easy parsing of those strings.
+ *
+ * @see epoxy_has_gl_extension()
+ * @see epoxy_has_egl_extension()
+ * @see epoxy_has_glx_extension()
+ */
bool
epoxy_extension_in_string(const char *extension_list, const char *ext)
{
diff --git a/src/dispatch_common.h b/src/dispatch_common.h
index 895d5ac..28135c7 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);