diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-05-13 21:48:52 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-05-17 11:41:09 -0700 |
commit | 3628642ec98811b1ed6bd77bf66d3fcb840101d0 (patch) | |
tree | c7b0cf4c22b8ceb27dfce53f2ee6c9d0a06c4371 /include | |
parent | e3e0792457972b06d4bb0e68026ebc58093381c0 (diff) |
include: Add function waffle_is_extension_in_string
This can be used to find GL/GLX/EGL extensions in a GL-style extension
string.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/waffle/waffle_gl_misc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/waffle/waffle_gl_misc.h b/include/waffle/waffle_gl_misc.h index 09d957a..7ef1483 100644 --- a/include/waffle/waffle_gl_misc.h +++ b/include/waffle/waffle_gl_misc.h @@ -33,6 +33,19 @@ struct waffle_context; struct waffle_display; struct waffle_window; +/// @brief Check if an extension is contained in a GL-style extension string. +/// +/// The @a extension_string must be in the format returned by +/// `glGetString(GL_EXTENSIONS)`. Note that this function is not restricted to +/// the GL extension string; it can also be used on the GLX and EGL extension +/// strings. +/// +/// This function may be called before waffle_init(). +WAFFLE_API bool +waffle_is_extension_in_string( + const char *restrict extension_string, + const char *restrict extension_name); + WAFFLE_API bool waffle_make_current( struct waffle_display *dpy, |