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:
parent
4ede6ea8c5
commit
40205d8f1b
@ -102,7 +102,7 @@ G_BEGIN_DECLS
|
||||
GType cogl_context_get_gtype (void);
|
||||
|
||||
/**
|
||||
* cogl_context_new: (constructor)
|
||||
* cogl_context_new: (constructor) (skip)
|
||||
* @display: (allow-none): A #CoglDisplay pointer
|
||||
* @error: A GError return location.
|
||||
*
|
||||
@ -118,7 +118,7 @@ cogl_context_new (CoglDisplay *display,
|
||||
GError **error);
|
||||
|
||||
/**
|
||||
* cogl_context_get_display:
|
||||
* cogl_context_get_display: (skip)
|
||||
* @context: A #CoglContext pointer
|
||||
*
|
||||
* Retrieves the #CoglDisplay that is internally associated with the
|
||||
@ -136,7 +136,7 @@ CoglDisplay *
|
||||
cogl_context_get_display (CoglContext *context);
|
||||
|
||||
/**
|
||||
* cogl_context_get_renderer:
|
||||
* cogl_context_get_renderer: (skip)
|
||||
* @context: A #CoglContext pointer
|
||||
*
|
||||
* Retrieves the #CoglRenderer that is internally associated with the
|
||||
|
@ -987,7 +987,7 @@ cogl_framebuffer_resolve_samples_region (CoglFramebuffer *framebuffer,
|
||||
int height);
|
||||
|
||||
/**
|
||||
* cogl_framebuffer_get_context: (skip)
|
||||
* cogl_framebuffer_get_context:
|
||||
* @framebuffer: A #CoglFramebuffer
|
||||
*
|
||||
* Can be used to query the #CoglContext a given @framebuffer was
|
||||
|
@ -72,7 +72,7 @@ G_BEGIN_DECLS
|
||||
GType cogl_pipeline_get_gtype (void);
|
||||
|
||||
/**
|
||||
* cogl_pipeline_new: (skip)
|
||||
* cogl_pipeline_new: (constructor)
|
||||
* @context: a #CoglContext
|
||||
*
|
||||
* Allocates and initializes a default simple pipeline that will color
|
||||
|
@ -75,6 +75,7 @@ cogl_headers = [
|
||||
'cogl1-context.h',
|
||||
'cogl-bitmap.h',
|
||||
'cogl-color.h',
|
||||
'cogl-context.h',
|
||||
'cogl-framebuffer.h',
|
||||
'cogl-matrix.h',
|
||||
'cogl-object.h',
|
||||
@ -96,7 +97,6 @@ cogl_nonintrospected_headers = [
|
||||
'cogl-swap-chain.h',
|
||||
'cogl-onscreen-template.h',
|
||||
'cogl-display.h',
|
||||
'cogl-context.h',
|
||||
'cogl-snippet.h',
|
||||
'cogl-index-buffer.h',
|
||||
'cogl-attribute-buffer.h',
|
||||
|
Loading…
Reference in New Issue
Block a user