本文整理汇总了C++中Animation::Start方法的典型用法代码示例。如果您正苦于以下问题:C++ Animation::Start方法的具体用法?C++ Animation::Start怎么用?C++ Animation::Start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Animation
的用法示例。
在下文中一共展示了Animation::Start方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RemoveFromManagerAnimation
Animation* GameObject::RemoveFromManagerAnimation(int32 track)
{
Animation * animation = new Animation(this, 0.001f, Interpolation::LINEAR);
animation->AddEvent(Animation::EVENT_ANIMATION_START, Message(this, &GameObject::RemoveFromManagerAnimation));
animation->Start(track);
return animation;
}
示例2: GetVolume
Animation * SoundInstance::VolumeAnimation(float32 newVolume, float32 time, int32 track /*= 0*/)
{
animatedVolume = GetVolume();
Animation * a = new LinearAnimation<float32>(this, &animatedVolume, newVolume, time, Interpolation::LINEAR);
a->AddEvent(Animation::EVENT_ANIMATION_END, Message(this, &SoundInstance::OnVolumeAnimationEnded));
Retain();
a->Start(track);
return a;
}
示例3: Animation
Animation * GameObject::VisibleAnimation(bool visible, int32 track/* = 0*/)
{
//TODO: change to bool animation - Dizz
Animation * animation = new Animation(this, 0.01f, Interpolation::LINEAR);
bool * params = new bool[1];
params[0] = visible;
animation->AddEvent(Animation::EVENT_ANIMATION_START, Message(this, &GameObject::VisibleAnimationCallback, (void*)params));
animation->Start(track);
return animation;
}