nngxSetCmdlistCallback Function

Syntax

NNGX_APICALL void NNGX_APIENTRY nngxSetCmdlistCallback(
     void(*)(GLint) func
);

Arguments

Name Description
in func Callback function

Return Values

No values are returned.

Description

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_DMPThe current command list is running.

Revision History

2011/06/15
Added text about the status of the command list when the callback function is invoked.
2010/08/11
Clarified condition for calling func.
2010/03/12
Added extended error code(s).
2010/01/07
Initial version.

CONFIDENTIAL