VSyncCallback

Defines a function to be executed during each VSync period

int VSyncCallback (
        void (*func)()
)

Arguments

func Pointer to the callback function (function to be executed)

Explanation

Specifies that the function func will be called at the start of the vertical synchronization period. When func is 0, any function previously registered as a callback function is removed.

Return Value

None

Notes

Subsequent interrupts will be masked within func. Therefore, it is necessary to return quickly after func is called.