Used to receive callbacks on every vertical blank event of the display that the peer currently belongs to. More...
#include <juce_ComponentPeer.h>
Public Member Functions | |
virtual | ~VBlankListener ()=default |
Destructor. | |
virtual void | onVBlank (double timestampSec)=0 |
Called on every vertical blank of the display to which the peer is associated. | |
Used to receive callbacks on every vertical blank event of the display that the peer currently belongs to.
On Linux this is currently limited to receiving callbacks from a timer approximately at display refresh rate.
This is a low-level facility used by the peer implementations. If you wish to synchronise Component events with the display refresh, you should probably use the VBlankAttachment, which automatically takes care of listening to the vblank events of the right peer.
|
virtualdefault |
Destructor.
|
pure virtual |
Called on every vertical blank of the display to which the peer is associated.
The timestampSec parameter is a monotonically increasing value expressed in seconds that corresponds to the time at which the next frame will be displayed.