nngxSetCmdlistCallback Function
NNGX_APICALL void NNGX_APIENTRY nngxSetCmdlistCallback(
void(*)(GLint) func
);
| Name | Description | |
|---|---|---|
| in | func | Callback function |
Sets the exit callback for the current command list.
When the command request specified by the nngxEnableCmdlistCallback function finishes, func is called. The callback function receives as an argument the number of the accumulated command that finished executing.
Note that the command list is still executing when this callback is invoked by the completion of last of the accumulated commands. Thus, unlike with the nngxClearCmdlist function, you cannot use functions inside the callback that cannot be called for the executing command list.
This function generates the following errors.
| GL_ERROR_8010_DMP | The current command list is running. |
|---|
CONFIDENTIAL