Fetch the vsync setting.
GLVIEW_API int glview_get_vsync(int *vsync)
The output parameter that the current vsync setting will be written to. This parameter cannot be NULL. A non-zero value indicates the number of video frames that will occur before the buffer is swapped. A zero value indicates that vsync is disabled.
Fetch the current vsync setting. By default, vsync is enabled (set to 1).
GLVIEW_SUCCESS upon success, GLVIEW_FAILURE otherwise, with errno set to one of the following:
- EPERM: glview_intialize() was not called prior to glview_get_vsync() .
- EINVAL: output parameter is NULL.