cogl: Make pipeline creation introspectable

This means CoglContext is now also introspected, although its
constructor and some getters are skipped to avoid having to expose even
more types. This makes it possible to create pipelines using Javascript.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/935
This commit is contained in:
Jonas Ådahl 2019-11-28 17:49:55 +01:00 committed by Georges Basile Stavracas Neto
parent 4ede6ea8c5
commit 40205d8f1b
4 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ G_BEGIN_DECLS
GType cogl_context_get_gtype (void); GType cogl_context_get_gtype (void);
/** /**
* cogl_context_new: (constructor) * cogl_context_new: (constructor) (skip)
* @display: (allow-none): A #CoglDisplay pointer * @display: (allow-none): A #CoglDisplay pointer
* @error: A GError return location. * @error: A GError return location.
* *
@ -118,7 +118,7 @@ cogl_context_new (CoglDisplay *display,
GError **error); GError **error);
/** /**
* cogl_context_get_display: * cogl_context_get_display: (skip)
* @context: A #CoglContext pointer * @context: A #CoglContext pointer
* *
* Retrieves the #CoglDisplay that is internally associated with the * Retrieves the #CoglDisplay that is internally associated with the
@ -136,7 +136,7 @@ CoglDisplay *
cogl_context_get_display (CoglContext *context); cogl_context_get_display (CoglContext *context);
/** /**
* cogl_context_get_renderer: * cogl_context_get_renderer: (skip)
* @context: A #CoglContext pointer * @context: A #CoglContext pointer
* *
* Retrieves the #CoglRenderer that is internally associated with the * Retrieves the #CoglRenderer that is internally associated with the

View File

@ -987,7 +987,7 @@ cogl_framebuffer_resolve_samples_region (CoglFramebuffer *framebuffer,
int height); int height);
/** /**
* cogl_framebuffer_get_context: (skip) * cogl_framebuffer_get_context:
* @framebuffer: A #CoglFramebuffer * @framebuffer: A #CoglFramebuffer
* *
* Can be used to query the #CoglContext a given @framebuffer was * Can be used to query the #CoglContext a given @framebuffer was

View File

@ -72,7 +72,7 @@ G_BEGIN_DECLS
GType cogl_pipeline_get_gtype (void); GType cogl_pipeline_get_gtype (void);
/** /**
* cogl_pipeline_new: (skip) * cogl_pipeline_new: (constructor)
* @context: a #CoglContext * @context: a #CoglContext
* *
* Allocates and initializes a default simple pipeline that will color * Allocates and initializes a default simple pipeline that will color

View File

@ -75,6 +75,7 @@ cogl_headers = [
'cogl1-context.h', 'cogl1-context.h',
'cogl-bitmap.h', 'cogl-bitmap.h',
'cogl-color.h', 'cogl-color.h',
'cogl-context.h',
'cogl-framebuffer.h', 'cogl-framebuffer.h',
'cogl-matrix.h', 'cogl-matrix.h',
'cogl-object.h', 'cogl-object.h',
@ -96,7 +97,6 @@ cogl_nonintrospected_headers = [
'cogl-swap-chain.h', 'cogl-swap-chain.h',
'cogl-onscreen-template.h', 'cogl-onscreen-template.h',
'cogl-display.h', 'cogl-display.h',
'cogl-context.h',
'cogl-snippet.h', 'cogl-snippet.h',
'cogl-index-buffer.h', 'cogl-index-buffer.h',
'cogl-attribute-buffer.h', 'cogl-attribute-buffer.h',