Similar to AnimatorUpdater, but automatically calls update() whenever the screen refreshes. More...
#include <juce_VBlankAnimatorUpdater.h>
Public Member Functions | |
VBlankAnimatorUpdater (Component *c) | |
Constructs a VBlankAnimatorUpdater that is synchronised to the refresh rate of the monitor that the provided Component is being displayed on. | |
void | addAnimator (const Animator &animator) |
Registers an Animator with the updater. | |
void | addAnimator (const Animator &animator, std::function< void()> onComplete) |
Registers an Animator with the updater and specifies a callback to be called upon the completion of the Animator. | |
void | removeAnimator (const Animator &animator) |
Removes an Animator. | |
Similar to AnimatorUpdater, but automatically calls update() whenever the screen refreshes.
|
explicit |
Constructs a VBlankAnimatorUpdater that is synchronised to the refresh rate of the monitor that the provided Component is being displayed on.
References AnimatorUpdater::update().
void AnimatorUpdater::addAnimator | ( | const Animator & | animator | ) |
Registers an Animator with the updater.
void AnimatorUpdater::addAnimator | ( | const Animator & | animator, |
std::function< void()> | onComplete ) |