snippet: Add some more documentation

This adds a documentation section for CoglSnippet which gives an
overview of how to use them. It also fixes some syntax errors in the
existing documentation and adds the missing pipeline functions for
adding snippets to the documentation sections file.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
This commit is contained in:
Neil Roberts
2011-12-06 19:17:03 +00:00
parent 1be2cdab21
commit 5f0a57ffdb
6 changed files with 306 additions and 12 deletions

View File

@ -943,11 +943,10 @@ cogl_pipeline_set_uniform_matrix (CoglPipeline *pipeline,
* @pipeline: A #CoglPipeline
* @snippet: The #CoglSnippet to add to the vertex processing hook
*
* Adds a shader snippet that to @pipeline. The snippet will wrap
* around or replace some part of the pipeline as defined by the hook
* point in @snippet. Note that some hook points are specific to a
* layer and must be added with cogl_pipeline_add_layer_snippet()
* instead.
* Adds a shader snippet to @pipeline. The snippet will wrap around or
* replace some part of the pipeline as defined by the hook point in
* @snippet. Note that some hook points are specific to a layer and
* must be added with cogl_pipeline_add_layer_snippet() instead.
*
* Since: 1.10
* Stability: Unstable