nngxSetVSyncCallback Function
NNGX_APICALL void NNGX_APIENTRY nngxSetVSyncCallback(
GLenum display,
void(*)(GLenum) func
);
| Name | Description | |
|---|---|---|
| in | display | Screen to set the callback for |
| in | func | Callback function |
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_DMP | If any other value is specified for the display argument. |
|---|
CONFIDENTIAL