nngxSetVSyncCallback Function

Syntax

NNGX_APICALL void NNGX_APIENTRY nngxSetVSyncCallback(
     GLenum display,
     void(*)(GLenum) func
);

Arguments

Name Description
in display Screen to set the callback for
in func Callback function

Return Values

No values are returned.

Description

Registers the V-Sync callback.

To receive a callback for a V-Sync on the upper screen, specify display as NN_GX_DISPLAY0. For the lower screen, specify NN_GX_DISPLAY1, and for both screens specify NN_GX_DISPLAY_BOTH.

Set func to the callback function. The callback function is given NN_GX_DISPLAY0 as an argument for screen 0 and NN_GX_DISPLAY1 for screen 1. The callback is not invoked if func is set to 0.

This function generates the following errors.

GL_ERROR_801B_DMPIf any other value is specified for the display argument.

Revision History

2010/08/18
Reworked for consistent terminology.
2010/03/12
Added extended error code(s).
2010/01/07
Initial version.

CONFIDENTIAL