diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-05-12 16:16:17 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-05-17 11:41:08 -0700 |
commit | b851f03227ce8d01dba3ecdbe46b4e440154c25f (patch) | |
tree | 27173a089659bb3dd5df58e4b59b487e1f285f83 /include | |
parent | c13f97dcf4e7522560abda36b67dd3ec36427f50 (diff) |
include: Add param 'dl' to waffle_dlsym_gl
The 'dl' param selects which GL library on which to call dlsym.
This is a prerequisite for allowing the creation multiple contexts with
different GL API's simultaneously. To achieve that goal, we must eliminate
the WAFFLE_GL_API attribute from waffle_init.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/waffle/waffle_gl_misc.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/waffle/waffle_gl_misc.h b/include/waffle/waffle_gl_misc.h index 7dd3d8c..005b0da 100644 --- a/include/waffle/waffle_gl_misc.h +++ b/include/waffle/waffle_gl_misc.h @@ -21,6 +21,7 @@ #pragma once #include <stdbool.h> +#include <stdint.h> #include "waffle_visibility.h" @@ -41,8 +42,14 @@ waffle_make_current( WAFFLE_API void* waffle_get_proc_address(const char *name); +/// @brief Get symbol from GL library. +/// +/// The library is selected with @a dl, which must be one of +/// - WAFFLE_DL_OPENGL +/// - WAFFLE_DL_OPENGL_ES1 +/// - WAFFLE_DL_OPENGL_ES2 WAFFLE_API void* -waffle_dlsym_gl(const char *name); +waffle_dlsym_gl(int32_t dl, const char *name); #ifdef __cplusplus } // end extern "C" |