effect: Add ShaderEffect
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 13 Apr 2010 15:40:31 +0000 (16:40 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Jun 2010 13:10:55 +0000 (14:10 +0100)
commitc260da79e318d64927ee6fad0cf6bd2e6971d097
treea2f594b29826e3dc0418c186400fef09b3bd5f8e
parentc3ab32ae6887a222472f4fc9025437ab91d0bbce
effect: Add ShaderEffect

The ShaderEffect class is an abstract base type for shader-based
effects. GLSL-based effects should be implemented by sub-classing
ShaderEffect and overriding ActorMeta::set_actor() to set the source
code of the shader, and Effect::pre_paint() to update the uniform
values, if any.

The ShaderEffect has a generic API for sub-classes to set the values
of the uniforms defined by their shaders, and it uses the shader
types we defined for ClutterShader, to avoid re-inventing the wheel
every time.
clutter/Makefile.am
clutter/clutter-shader-effect.c [new file with mode: 0644]
clutter/clutter-shader-effect.h [new file with mode: 0644]
clutter/clutter.h