diff options
author | Neil Roberts <neil@linux.intel.com> | 2010-06-02 17:55:56 +0100 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2010-06-22 12:22:43 +0100 |
commit | 31b5beb2c00bfae83d6cd26e33242887f330e0bd (patch) | |
tree | 0da474cf969b8b3c5a951f0c9018ed5c1ec4697f /cogl/cogl-feature-private.h | |
parent | 9646e85ba77d7ffe5059b4cea1616a79f7fe5f52 (diff) | |
download | cogl-31b5beb2c00bfae83d6cd26e33242887f330e0bd.tar.gz |
cogl: Add the infrastructure for checking for winsys extensions
This adds the framework needed to check for winsys specific extensions
(such as GLX extensions) using a similar mechanism to the
cogl-feature-functions header. There is a separate
cogl-winsys-feature-functions header which will contain macros to list
the extensions and functions. cogl_create_context_winsys now calls
_cogl_feature_check for each of these functions. _cogl_feature_check
has had to be changed to accept the driver prefix as the first
parameter so that it can prepend "GLX" rather than "GL" in this case.
Diffstat (limited to 'cogl/cogl-feature-private.h')
-rw-r--r-- | cogl/cogl-feature-private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-feature-private.h b/cogl/cogl-feature-private.h index 2221ec03..133d588e 100644 --- a/cogl/cogl-feature-private.h +++ b/cogl/cogl-feature-private.h @@ -67,7 +67,8 @@ struct _CoglFeatureData const CoglFeatureFunction *functions; }; -gboolean _cogl_feature_check (const CoglFeatureData *data, +gboolean _cogl_feature_check (const char *driver_prefix, + const CoglFeatureData *data, unsigned int gl_major, unsigned int gl_minor, const char *extensions_string); |