diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-04-26 12:18:56 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-08-06 14:27:43 +0100 |
commit | 498937083e014b4ecf412f4b35882dc7b6ff2316 (patch) | |
tree | 4433476abcdb31735429e56617da69efab98acb0 /cogl/cogl-renderer.h | |
parent | 8d0b771cd354bf091d084d01ec008b1dd4bdd187 (diff) | |
download | cogl-498937083e014b4ecf412f4b35882dc7b6ff2316.tar.gz |
Adds gles2-context renderer constraint
This adds a new renderer constraint enum:
COGL_RENDERER_CONSTRAINT_SUPPORTS_GLES2_CONTEXT
that can be used by applications to ensure the renderer they connect to
has support for creating a GLES2 context via cogl_gles2_context_new().
The cogl-gles2-context and cogl-gles2-gears examples and the conformance
tests have been updated to use this constraint.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit ed61463d7194354b26624e8014859f0fbfc06a12)
Diffstat (limited to 'cogl/cogl-renderer.h')
-rw-r--r-- | cogl/cogl-renderer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cogl/cogl-renderer.h b/cogl/cogl-renderer.h index d67704fc..98fb05c9 100644 --- a/cogl/cogl-renderer.h +++ b/cogl/cogl-renderer.h @@ -261,6 +261,10 @@ cogl_renderer_connect (CoglRenderer *renderer, GError **error); * @COGL_RENDERER_CONSTRAINT_USES_XLIB: Require the renderer to be X11 * based and use Xlib * @COGL_RENDERER_CONSTRAINT_USES_EGL: Require the renderer to be EGL based + * @COGL_RENDERER_CONSTRAINT_SUPPORTS_COGL_GLES2: Require that the + * renderer supports creating a #CoglGLES2Context via + * cogl_gles2_context_new(). This can be used to integrate GLES 2.0 + * code into Cogl based applications. * * These constraint flags are hard-coded features of the different renderer * backends. Sometimes a platform may support multiple rendering options which @@ -281,7 +285,8 @@ typedef enum { COGL_RENDERER_CONSTRAINT_USES_X11 = (1 << 0), COGL_RENDERER_CONSTRAINT_USES_XLIB = (1 << 1), - COGL_RENDERER_CONSTRAINT_USES_EGL = (1 << 2) + COGL_RENDERER_CONSTRAINT_USES_EGL = (1 << 2), + COGL_RENDERER_CONSTRAINT_SUPPORTS_COGL_GLES2 = (1 << 3) } CoglRendererConstraint; |