glview_set_vsync()
Change the vsync setting.
Synopsis:
#include <glview/glview.h>
GLVIEW_API int glview_set_vsync(int vsync)
Arguments:
- vsync
-
If this parameter is non-zero, it specifies the minimum number of video frames before a buffer swap. If it is zero then vsync is disabled.
Library:
libglviewDescription:
By default, vsync is enabled (set to 1). Call this function to disable vsync or to change the vsync interval.
Returns:
GLVIEW_SUCCESS upon success, GLVIEW_FAILURE otherwise, with errno set to the following:
- EPERM: glview_intialize() was not called prior to glview_set_vsync() .