c++11 std::function instead of function pointer
Merge pull request #14 from super626/animation

c++11 std::function instead of function pointer