glview_set_vsync()

Change the vsync setting.

Synopsis:

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

Since:

BlackBerry 10.0.0

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:

libglview (For the qcc command, use the -l glview option to link against this library)

Description:

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:

Last modified: 2014-05-14



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

comments powered by Disqus