Cogl.FrameCallback
function onFrameCallback(onscreen: Cogl.Onscreen, event: Cogl.FrameEvent, info: Cogl.FrameInfo): void { }
Is a callback that can be registered via Cogl.Onscreen.prototype.add_frame_callback to be called when a frame progresses in some notable way.
Please see the documentation for Cogl.FrameEvent and Cogl.Onscreen.prototype.add_frame_callback for more details about what events can be notified.
Since 1.14
- onscreen
The onscreen that the frame is associated with
- event
A Cogl.FrameEvent notifying how the frame has progressed
- info
The meta information, such as timing information, about the frame that has progressed.