New animator API.
commite24b8ca8bcdd40e1d96a1fbac08046718a4e7d40
authorPaolo Capriotti <p.capriotti@gmail.com>
Thu, 12 Jul 2007 11:50:28 +0000 (12 13:50 +0200)
committerPaolo Capriotti <p.capriotti@gmail.com>
Thu, 12 Jul 2007 11:50:28 +0000 (12 13:50 +0200)
treeacb899cd87a68b3e85db78a3015e2425b530cd07
parentca2c5f8ca7029e590069655b3ade6ad73a1ee025
New animator API.

With this commit comes the notion of animation *scheme*. A scheme provides a
way to start an animation, honoring the user configuration.

Each scheme is a subclass of the abstract class Animate::Scheme, and should be
defined in the Animate namespace. We break the class naming convention, here,
since all schemes have lowercase names; this is because they behave just like
functions for client code (i.e. they are created on the stack, and no member
function is directly called on them).

A scheme must implement the run virtual member function, access user
configuration if necessary, and return an AnimationPtr.
src/animationfactory.cpp [new file with mode: 0644]
src/animationfactory.h [new file with mode: 0644]