diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-03-22 16:32:56 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-03-23 13:51:08 +0000 |
commit | 60812e6a0e29c8d7b149024c65dec2f4e3349a02 (patch) | |
tree | a2886abfddfa4c63b9039599fbcfc380721515e0 /cogl/cogl-private.h | |
parent | ccb67927815fbc74c6ba9c1e4e77a56154f90f22 (diff) | |
download | cogl-60812e6a0e29c8d7b149024c65dec2f4e3349a02.tar.gz |
Add a vtable for the driver
Cogl already had a vtable for the texture driver. This ended up being
used for some things that are not strictly related to texturing such
as converting between pixel formats and GL enums. Some other functions
that are driver dependent such as updating the features were not
indirected through a vtable but instead switched directly by looking
at the ctx->driver enum value. This patch normalises to the two uses
by adding a separate vtable for driver functions not related to
texturing and moves the pixel format conversion functions to it from
the texture driver vtable. It also adds a context parameter to all of
the functions in the new driver vtable so that they won't have to rely
on the global context.
Diffstat (limited to 'cogl/cogl-private.h')
-rw-r--r-- | cogl/cogl-private.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cogl/cogl-private.h b/cogl/cogl-private.h index 6130c113..0985ec8b 100644 --- a/cogl/cogl-private.h +++ b/cogl/cogl-private.h @@ -31,14 +31,6 @@ G_BEGIN_DECLS gboolean -_cogl_gl_update_features (CoglContext *context, - GError **error); - -gboolean -_cogl_gles_update_features (CoglContext *context, - GError **error); - -gboolean _cogl_check_extension (const char *name, const char *ext); void |