1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../css/manpage.css" type="text/css" />
7<title>nngxEnableCmdlistCallback</title>
8  </head>
9  <body>
10<h1><CODE>nngxEnableCmdlistCallback</CODE> Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14NNGX_APICALL void NNGX_APIENTRY nngxEnableCmdlistCallback(
15     GLint id
16);
17</pre>
18    </div>
19<h2>Parameters</h2>
20    <div class="section">
21      <table class="arguments">
22        <thead>
23          <tr>
24            <td width="15" />
25<th>Name</th>
26<td>Description</td>
27          </tr>
28        </thead>
29        <tr>
30<td>in</td>
31<th>id</th>
32<td>Number of the accumulated command for which to enable a callback</td>
33        </tr> </table>
34    </div>
35<h2>Return Values</h2>
36<div class="section">No values are returned. </div>
37<h2>Description</h2>
38    <div class="section">
39<p>Enables an exit callback in the current command list.</p><P>
40When the <SPAN class="argument">id</SPAN>th command accumulated in the command list finishes, the callback function configured by the <CODE><a href="../nn_gx/nngxSetCmdlistCallback.html">nngxSetCmdlistCallback</a></CODE> function is invoked. You can configure each command accumulated in the command list. When <SPAN class="argument">id</SPAN> 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.
41            </P><P>
42This function generates the following errors.
43<TABLE><TR><TH>GL_ERROR_8012_DMP</TH><TD>Occurs when <SPAN class="argument">id</SPAN> is 0, a negative number other than -1, or a value greater than or equal to the number of elements allocated in <CODE>nngxCmdlistStorage</CODE>.</TD></TR></TABLE></P></div>
44<h2>See Also</h2>
45    <div class="section">
46<p class="reference"><a href="../nn_gx/nngxSetCmdlistCallback.html"><CODE>nngxSetCmdlistCallback</CODE></a><br /><a href="../nn_gx/nngxDisableCmdlistCallback.html"><CODE>nngxDisableCmdlistCallback</CODE></a><br /> </p>
47    </div>
48<h2>Revision History</h2>
49    <div class="section">
50      <dl class="history">
51        <dt>2011/10/04</dt>
52<dd>Added <B>See Also</B> section.<br />
53        </dd>
54        <dt>2010/03/12</dt>
55<dd>Added extended error code(s).<br />
56        </dd>
57        <dt>2010/01/07</dt>
58<dd>Initial version.<br />
59        </dd>
60      </dl>
61    </div>
62  <hr><p>CONFIDENTIAL</p></body>
63</html>