cogl: Make RendererConstraint private
It is only used internally Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
parent
50fc438599
commit
4bd974222e
2 changed files with 26 additions and 26 deletions
|
@ -191,32 +191,6 @@ cogl_renderer_check_onscreen_template (CoglRenderer *renderer,
|
|||
COGL_EXPORT gboolean
|
||||
cogl_renderer_connect (CoglRenderer *renderer, GError **error);
|
||||
|
||||
/**
|
||||
* CoglRendererConstraint:
|
||||
* @COGL_RENDERER_CONSTRAINT_USES_X11: Require the renderer to be X11 based
|
||||
* @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
|
||||
*
|
||||
* These constraint flags are hard-coded features of the different renderer
|
||||
* backends. Sometimes a platform may support multiple rendering options which
|
||||
* Cogl will usually choose from automatically. Some of these features are
|
||||
* important to higher level applications and frameworks though, such as
|
||||
* whether a renderer is X11 based because an application might only support
|
||||
* X11 based input handling. An application might also need to ensure EGL is
|
||||
* used internally too if they depend on access to an EGLDisplay for some
|
||||
* purpose.
|
||||
*
|
||||
* Applications should ideally minimize how many of these constraints
|
||||
* they depend on to ensure maximum portability.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
COGL_RENDERER_CONSTRAINT_USES_X11 = (1 << 0),
|
||||
COGL_RENDERER_CONSTRAINT_USES_XLIB = (1 << 1),
|
||||
COGL_RENDERER_CONSTRAINT_USES_EGL = (1 << 2),
|
||||
} CoglRendererConstraint;
|
||||
|
||||
/**
|
||||
* CoglDriver:
|
||||
* @COGL_DRIVER_ANY: Implies no preference for which driver is used
|
||||
|
|
|
@ -51,6 +51,32 @@ typedef enum /*< prefix=COGL_WINSYS_ERROR >*/
|
|||
COGL_WINSYS_ERROR_MAKE_CURRENT,
|
||||
} CoglWinsysError;
|
||||
|
||||
/**
|
||||
* CoglRendererConstraint:
|
||||
* @COGL_RENDERER_CONSTRAINT_USES_X11: Require the renderer to be X11 based
|
||||
* @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
|
||||
*
|
||||
* These constraint flags are hard-coded features of the different renderer
|
||||
* backends. Sometimes a platform may support multiple rendering options which
|
||||
* Cogl will usually choose from automatically. Some of these features are
|
||||
* important to higher level applications and frameworks though, such as
|
||||
* whether a renderer is X11 based because an application might only support
|
||||
* X11 based input handling. An application might also need to ensure EGL is
|
||||
* used internally too if they depend on access to an EGLDisplay for some
|
||||
* purpose.
|
||||
*
|
||||
* Applications should ideally minimize how many of these constraints
|
||||
* they depend on to ensure maximum portability.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
COGL_RENDERER_CONSTRAINT_USES_X11 = (1 << 0),
|
||||
COGL_RENDERER_CONSTRAINT_USES_XLIB = (1 << 1),
|
||||
COGL_RENDERER_CONSTRAINT_USES_EGL = (1 << 2),
|
||||
} CoglRendererConstraint;
|
||||
|
||||
typedef struct _CoglWinsysVtable
|
||||
{
|
||||
CoglWinsysID id;
|
||||
|
|
Loading…
Reference in a new issue