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>nngxImportCmdlist</title> 8 </head> 9 <body> 10<h1><CODE>nngxImportCmdlist</CODE> Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14NNGX_APICALL void NNGX_APIENTRY nngxImportCmdlist( 15 GLuint cmdlist, 16 GLvoid * data, 17 GLsizei datasize 18); 19</pre> 20 </div> 21<h2>Parameters</h2> 22 <div class="section"> 23 <table class="arguments"> 24 <thead> 25 <tr> 26 <td width="15" /> 27<th>Name</th> 28<td>Description</td> 29 </tr> 30 </thead> 31 <tr> 32<td>in</td> 33<th>cmdlist</th> 34<td>Command list object into which you are importing data</td> 35 </tr> 36 <tr> 37<td>in</td> 38<th>data</th> 39<td>Pointer to the exported data</td> 40 </tr> 41 <tr> 42<td>in</td> 43<th>datasize</th> 44<td>Size (in bytes) of the exported data</td> 45 </tr> </table> 46 </div> 47<h2>Return Values</h2> 48<div class="section">No values are returned. </div> 49<h2>Description</h2> 50 <div class="section"> 51<p>Imports an exported command list (binary data) to the specified command list.</p><P>Imports data exported by the <CODE><a href="../nn_gx/nngxExportCmdlist.html">nngxExportCmdlist</a></CODE> function into a command list. Set <SPAN class="argument">cmdlist</SPAN> equal to the command list object to import. Set <SPAN class="argument">data</SPAN> equal to a pointer to the exported data. Set <SPAN class="argument">datasize</SPAN> equal to the size (in bytes) of the exported data. 52 </P><P> 53You can set <SPAN class="argument">cmdlist</SPAN> equal to either the command list that is currently bound or to an unbound command list. If commands have already been accumulated in <SPAN class="argument">cmdlist</SPAN>, the imported commands are added after the accumulated commands. 54 </P><P> 55When the first command request of the data that you are importing is not a 3D execution command, bind the destination command list as the current one before calling this function and then call the <CODE><a href="../nn_gx/nngxSplitDrawCmdlist.html">nngxSplitDrawCmdlist</a></CODE> function to add a split command. 56 </P><P> 57Calls to this function sometimes cause dummy commands to be generated for padding in the 3D command buffer of the command list into which you are importing data. 58 </P><P> 59This function generates the following errors. 60<TABLE><TR><TH>GL_ERROR_8041_DMP</TH><TD>Invalid value specified for <SPAN class="argument">cmdlist</SPAN>.</TD></TR><TR><TH>GL_ERROR_8042_DMP</TH><TD>Pointer to invalid data specified for <SPAN class="argument">data</SPAN>.</TD></TR><TR><TH>GL_ERROR_8043_DMP</TH><TD>Value specified for <SPAN class="argument">datasize</SPAN> does not match size of exported data.</TD></TR><TR><TH>GL_ERROR_8044_DMP</TH><TD>By adding the imported commands, you exceed the maximum size for the 3D command buffer or command requests.</TD></TR><TR><TH>GL_ERROR_8045_DMP</TH><TD>Imported the data whose first command request is not a 3D execution command when the 3D command buffer of the destination command list has not been split.</TD></TR></TABLE></P></div> 61<h2>See Also</h2> 62 <div class="section"> 63<p class="reference"><a href="../nn_gx/nngxExportCmdlist.html"><CODE>nngxExportCmdlist</CODE></a><br /> </p> 64 </div> 65<h2>Revision History</h2> 66 <div class="section"> 67 <dl class="history"> 68 <dt>2011/10/04</dt> 69<dd>Added <B>See Also</B> section.<br /> 70 </dd> 71 <dt>2010/03/12</dt> 72<dd>Initial version.<br /> 73 </dd> 74 </dl> 75 </div> 76 <hr><p>CONFIDENTIAL</p></body> 77</html>