CVDisplayLinkSetOutputCallback(_:_:_:)
Sets the renderer output callback function.
Declaration
func CVDisplayLinkSetOutputCallback(_ displayLink: CVDisplayLink, _ callback: CVDisplayLinkOutputCallback?, _ userInfo: UnsafeMutableRawPointer?) -> CVReturnParameters
- displayLink:
The display link whose output callback you want to set.
- callback:
The callback function to set for this display link. See Cvdisplaylinkoutputcallback for more information about implementing this function.
- userInfo:
A pointer to user data.
Return Value
A Core Video result code. See Core Video Constants for possible values.
Discussion
The display link invokes this callback whenever it wants you to output a frame.