Add the ClutterEffect abstract class
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 8 Apr 2010 09:55:15 +0000 (10:55 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Jun 2010 13:10:55 +0000 (14:10 +0100)
commita86f1b45bbdd1d00b1257ef80c5c60154871bfda
tree48c345885978b54b95076ff736b0a9b5de9da440
parent5ffbcbe9ee7d0b74bc5048fafd2ea15ee0486a58
Add the ClutterEffect abstract class

ClutterEffect is an abstract class that should be used to apply effects
on generic actors.

The ClutterEffect class just defines what an effect should implement; it
could be defined as an interface, but we might want to add some default
behavior dependent on the internal state at a later point.

The effect API applies to any actor, so we need to provide a way to
assign an effect to an actor, and let ClutterActor call the Effect
methods during the paint sequence.

Once an effect is attached to an actor we will perform the paint in this
order:

  • Effect::pre_paint()
  • Actor::paint signal emission
  • Effect::post_paint()

Since an effect might collide with the Shader class, we either allow a
shader or an effect for the time being.
clutter/Makefile.am
clutter/clutter-actor.c
clutter/clutter-actor.h
clutter/clutter-effect.c [new file with mode: 0644]
clutter/clutter-effect.h [new file with mode: 0644]
clutter/clutter-private.h
clutter/clutter.h
tests/interactive/test-rotate.c