nngxEnableCmdlistCallback Function

Syntax

NNGX_APICALL void NNGX_APIENTRY nngxEnableCmdlistCallback(
     GLint id
);

Arguments

Name Description
in id Number of the accumulated command for which to enable a callback

Return Values

No values are returned.

Description

Enables an exit callback in the current command list.

When the idth command accumulated in the command list finishes, the callback function configured by nngxSetCmdlistCallback is invoked. You can configure each command accumulated in the command list. When id is set to -1, a callback is invoked upon execution of the last command accumulated in the command list. Exit callbacks are disabled for all commands by default.

This function generates the following errors.

GL_ERROR_8012_DMPOccurs when id is 0, a negative number other than -1, or a value greater than or equal to the number of elements allocated in nngxCmdlistStorage.

Revision History

2010/03/12
Added extended error code(s).
2010/01/07
Initial version.

CONFIDENTIAL