Function CVDisplayLinkSetOutputCallback

Source
pub unsafe extern "C-unwind" fn CVDisplayLinkSetOutputCallback(
    display_link: &CVDisplayLink,
    callback: CVDisplayLinkOutputCallback,
    user_info: *mut c_void,
) -> CVReturn
👎Deprecated: use NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or NSScreen.displayLink(target:selector:)
Available on crate features CVBase and CVReturn and CVDisplayLink only.
Expand description

Set the renderer output callback function

The DisplayLink will invoke this callback whenever it wants you to output a frame.

Parameter displayLink: target CVDisplayLinkRef

Parameter callback: CVDisplayLinkOutputCallback function

Parameter userInfo: User data for the callback to identify the context.

Returns: CVReturn. kCVReturnSuccess if successfull.