glview_get_vsync()

Fetch the vsync setting.

Synopsis:

#include <glview/glview.h>
 
GLVIEW_API int glview_get_vsync(int *vsync)

Arguments:

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.

Library:

libglview

Description:

Fetch the current vsync setting. By default, vsync is enabled (set to 1).

Returns:

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.