glview_get_vsync()

Fetch the vsync setting.

Synopsis:

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

Since:

BlackBerry 10.0.0

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 (For the qcc command, use the -l glview option to link against this library)

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.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus