From Cedric Pinson, "Here an update of osganimationtimeline example, the callback did not

follow the callback api, i updated to fix this, then the callback are
called correctly."
This commit is contained in:
Robert Osfield 2009-10-10 09:35:16 +00:00
parent 0aed782a47
commit e1b3874fd2

View File

@ -34,7 +34,7 @@
struct NoseBegin : public osgAnimation::Action::Callback struct NoseBegin : public osgAnimation::Action::Callback
{ {
virtual void operator()(osgAnimation::Action* action) virtual void operator()(osgAnimation::Action* action, osgAnimation::ActionVisitor* nv)
{ {
std::cout << "sacrebleu, it scratches my nose, let me scratch it" << std::endl; std::cout << "sacrebleu, it scratches my nose, let me scratch it" << std::endl;
std::cout << "process NoseBegin call back " << action->getName() << std::endl << std::endl; std::cout << "process NoseBegin call back " << action->getName() << std::endl << std::endl;
@ -43,7 +43,7 @@ struct NoseBegin : public osgAnimation::Action::Callback
struct NoseEnd : public osgAnimation::Action::Callback struct NoseEnd : public osgAnimation::Action::Callback
{ {
virtual void operator()(osgAnimation::Action* action) virtual void operator()(osgAnimation::Action* action, osgAnimation::ActionVisitor* nv)
{ {
std::cout << "shhhrt shrrrrt shhhhhhrrrrt, haaa it's better"<< std::endl; std::cout << "shhhrt shrrrrt shhhhhhrrrrt, haaa it's better"<< std::endl;
std::cout << "process NoseEnd call back " << action->getName() << std::endl << std::endl; std::cout << "process NoseEnd call back " << action->getName() << std::endl << std::endl;