mutter/doc/reference/cogl
Neil Roberts 067a520f26 cogl: Support retained paths
This adds three new API calls:

  CoglHandle cogl_path_get()
  void cogl_path_set(CoglHandle path)
  CoglHandle cogl_path_copy(CoglHandle path)

All of the fields relating to the path have been moved from the Cogl
context to a new CoglPath handle type. The cogl context now just
contains a CoglPath handle. All of the existing path commands
manipulate the data in the current path handle. cogl_path_new now just
creates a new path handle and unrefs the old one.

The path handle can be stored for later with cogl_path_get. The path
can then be copied with cogl_path_copy. Internally it implements
copy-on-write semantics with an extra optimisation that it will only
copy the data if the new path is modified, but not if the original
path is modified. It can do this because the only way to modify a path
is by appending to it so the copied path is able to store its own path
length and only render the nodes up to that length. For this to work
the copied path also needs to keep its own copies of the path extents
because the parent path may change these by adding nodes.

The clip stack now uses the cogl_path_copy mechanism to store paths in
the stack instead of directly copying the data. This should save some
memory and processing time.
2010-04-08 19:53:38 +01:00
..
blend-strings.xml cogl: Fix gl equivalent of blend string 2010-01-26 17:25:25 +00:00
cogl-docs.xml.in docs: Add 1.4 index to the API references 2010-03-25 09:45:59 +00:00
cogl-sections.txt cogl: Support retained paths 2010-04-08 19:53:38 +01:00
Makefile.am docs: Fixes for Cogl 2010-02-12 15:52:07 +00:00