mutter/clutter/pango
Owen W. Taylor c3448314d5 Default to a blend function that expects premultiplied colors
Many operations, like mixing two textures together or alpha-blending
onto a destination with alpha, are done most logically if texture data
is in premultiplied form. We also have many sources of premultiplied
texture data, like X pixmaps, FBOs, cairo surfaces. Rather than trying
to work with two different types of texture data, simplify things by
always premultiplying texture data before uploading to GL.

Because the default blend function is changed to accommodate this,
uses of pure-color CoglMaterial need to be adapted to add
premultiplication.

gl/cogl-texture.c gles/cogl-texture.c: Always premultiply
  non-premultiplied texture data before uploading to GL.

cogl-material.c cogl-material.h: Switch the default blend functions
  to ONE, ONE_MINUS_SRC_ALPHA so they work correctly with premultiplied
  data.

cogl.c: Make cogl_set_source_color() premultiply the color.

cogl.h.in color-material.h: Add some documentation about
  premultiplication and its interaction with color values.

cogl-pango-render.c clutter-texture.c tests/interactive/test-cogl-offscreen.c:
  Use premultiplied colors.

http://bugzilla.openedhand.com/show_bug.cgi?id=1406

Signed-off-by: Robert Bragg <robert@linux.intel.com>
2009-06-11 14:17:52 +01:00
..
cogl-pango-display-list.c Default to a blend function that expects premultiplied colors 2009-06-11 14:17:52 +01:00
cogl-pango-display-list.h [CoglPangoDisplayList] Don't store the base color in the display list 2009-06-05 18:28:27 +01:00
cogl-pango-fontmap.c 2008-10-31 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-31 17:48:24 +00:00
cogl-pango-glyph-cache.c [cogl] Move the texture filters to be a property of the material layer 2009-06-04 19:03:40 +01:00
cogl-pango-glyph-cache.h [cogl] Move the texture filters to be a property of the material layer 2009-06-04 19:03:40 +01:00
cogl-pango-private.h 2008-10-30 Emmanuele Bassi <ebassi@linux.intel.com> 2008-10-30 17:11:29 +00:00
cogl-pango-render.c Default to a blend function that expects premultiplied colors 2009-06-11 14:17:52 +01:00
cogl-pango.h * clutter/pango/cogl-pango.h: Include pango/pango.h to get 2008-11-21 16:18:31 +00:00
Makefile.am [build] Clean up cogl-pango Makefile 2009-05-25 12:41:16 +01:00