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>Arguments</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> 52Imports data exported by <CODE>nngxExportCmdlist</CODE> 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. 53 </P><P> 54You 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. 55 </P><P> 56If 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 <CODE>nngxSplitDrawCmdlist</CODE> to add a split command. 57 </P><P> 58Calls 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. 59 </P><P> 60This function generates the following errors. 61<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> 62<h2>Revision History</h2> 63 <div class="section"> 64 <dl class="history"> 65 <dt>2010/03/12</dt> 66<dd>Initial version.<br /> 67 </dd> 68 </dl> 69 </div> 70 <hr><p>CONFIDENTIAL</p></body> 71</html>