shader-effect: Simplify setting the shader source
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 17 May 2010 11:55:46 +0000 (12:55 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Jun 2010 13:10:55 +0000 (14:10 +0100)
commit0e9a1dee6dde18e7fe6d92960987baa933826937
treef6218c1e7221670f92e6b3e15298966c4e28ceb8
parentf2caafa127a42f5b10454407d52eb6b8bd64876d
shader-effect: Simplify setting the shader source

Sub-classes of ShaderEffect currently have to get the handle for the
Cogl shader and call cogl_shader_source(); this makes it awkward to
implement a ShaderEffect, and it exposes handles and Cogl API that we
might want to change in the future.

We should provide a ClutterShaderEffect method that allows to (safely)
set the shader source at the right time for sub-classes to use.
clutter/clutter-blur-effect.c
clutter/clutter-colorize-effect.c
clutter/clutter-desaturate-effect.c
clutter/clutter-shader-effect.c
clutter/clutter-shader-effect.h