frame_source_add


Description:


public uint frame_source_add (uint frames_per_sec, SourceFunc callback)

Creates a new frame source that will execute when the timeout interval for the source has elapsed.

The timing will try to synchronize based on the end time of the animation.

Parameters:

frames_per_sec

Target frames per second.

callback

A TaskSourceFunc to execute.

user_data

User data for callback.

Returns:

A source id that can be removed with remove.


Namespace: Dazzle
Package: libdazzle-1.0



2022 vala-language.org