mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
90 lines
69 KiB
HTML
90 lines
69 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
|
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Basic Functions</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
|
|
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
|
|
|
|
<!-- Generated by Natural Docs, version 1.52 -->
|
|
<!-- http://www.naturaldocs.org -->
|
|
|
|
<!-- saved from url=(0026)http://www.naturaldocs.org -->
|
|
|
|
|
|
|
|
|
|
<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Basic_Functions"></a>Basic Functions</h1><div class=CBody><p>Driver device management and hardware initialization / shutdown.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#Basic_Functions" >Basic Functions</a></td><td class=SDescription>Driver device management and hardware initialization / shutdown.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Static_functions" >Static functions</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Device_management" >Device management</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_getversionstring" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">d2_getversionstring</a></td><td class=SDescription>Query versionID string (device independent)</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_getversion" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">d2_getversion</a></td><td class=SDescription>Query versionID (device independent)</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_opendevice" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">d2_opendevice</a></td><td class=SDescription>Create a new device handle.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_closedevice" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">d2_closedevice</a></td><td class=SDescription>Destroy a device handle.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_geterror" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">d2_geterror</a></td><td class=SDescription>Query device error information.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_geterrorstring" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">d2_geterrorstring</a></td><td class=SDescription>Query detailed device error information.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_inithw" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">d2_inithw</a></td><td class=SDescription>Initialize hardware for working with specified device. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_deinithw" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">d2_deinithw</a></td><td class=SDescription>Unlink hardware currently bound by specified device. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_level1interface" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">d2_level1interface</a></td><td class=SDescription>Get the lowlevel device handle currently used by the d2_device. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_getrevisionhw" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">d2_getrevisionhw</a></td><td class=SDescription>Query hw revisionID. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_getrevisionstringhw" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">d2_getrevisionstringhw</a></td><td class=SDescription>Query hw revisionID string. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_lowlocalmemmode" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">d2_lowlocalmemmode</a></td><td class=SDescription>Enable and configure the ‘low localmem’ mode.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Rendering_Mode" >Rendering Mode</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_selectrendermode" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">d2_selectrendermode</a></td><td class=SDescription>Select a rendering mode. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_getrendermode" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">d2_getrendermode</a></td><td class=SDescription>Get the rendering mode. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_layermerge" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">d2_layermerge</a></td><td class=SDescription>Join outline and solid parts of currently selected renderbuffer. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_outlinewidth" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">d2_outlinewidth</a></td><td class=SDescription>Define the width of geometry outlines. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_shadowoffset" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">d2_shadowoffset</a></td><td class=SDescription>Define the offset of geometry shadows. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Utility_Functions" >Utility Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_flushframe" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">d2_flushframe</a></td><td class=SDescription>Wait for current rendering to end.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_setdlistblocksize" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">d2_setdlistblocksize</a></td><td class=SDescription>Set blocksize for default displaylists.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_getdlistblocksize" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">d2_getdlistblocksize</a></td><td class=SDescription>Get blocksize of default displaylist.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#d2_getdlistblockcount" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">d2_getdlistblockcount</a></td><td class=SDescription>Get number of blocks of default displaylist (writelist).</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#d2_commandspending" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">d2_commandspending</a></td><td class=SDescription>Check if there are pending commands in the current displaylist.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Static_functions"></a>Static functions</h3></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Device_management"></a>Device management</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getversionstring"></a>d2_getversionstring</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_getversionstring(</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query versionID string (device independent)</p><h4 class=CHeading>returns</h4><p>human readable driver version as a string.</p><h4 class=CHeading>see also</h4><p><a href="#d2_getversion" class=LFunction id=link23 onMouseOver="ShowTip(event, 'tt2', 'link23')" onMouseOut="HideTip('tt2')">d2_getversion</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getversion"></a>d2_getversion</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_getversion(</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query versionID (device independent)</p><h4 class=CHeading>returns</h4><p>driver revision as a single 32bit integer</p><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>bits 31..24</td><td class=CDLDescription>branch number</td></tr><tr><td class=CDLEntry>bits 23..16</td><td class=CDLDescription>major version number</td></tr><tr><td class=CDLEntry>bits 15..0</td><td class=CDLDescription>minor version number</td></tr></table><h4 class=CHeading>see also</h4><p><a href="#d2_getversionstring" class=LFunction id=link24 onMouseOver="ShowTip(event, 'tt1', 'link24')" onMouseOut="HideTip('tt1')">d2_getversionstring</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_opendevice"></a>d2_opendevice</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_device * d2_opendevice(</td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameter prettyprint " nowrap>flags</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a new device handle.</p><p>A device is the basic software object. It contains references to objects that the drawing engine requires, (e.g.: displaylists). All 2D drawing functions require such a device pointer as first parameter.</p><p>A device on its own is useless, unless bound to a physical hardware (i.e.: Drawing Engine). The binding is done by the function <a href="#d2_inithw" class=LFunction id=link25 onMouseOver="ShowTip(event, 'tt7', 'link25')" onMouseOut="HideTip('tt7')">d2_inithw</a>. A hardware instance can only be mapped to one device object. It is not possible to share a single device pointer between different processes.</p><p>Creating a device will never fail (sufficient memory assumed) but binding it to a hardware (see: <a href="#d2_inithw" class=LFunction id=link26 onMouseOver="ShowTip(event, 'tt7', 'link26')" onMouseOut="HideTip('tt7')">d2_inithw</a>) can fail.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>flags</td><td class=CDLDescription>a bitfield containing flags</td></tr></table><h4 class=CHeading>flags</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>d2_df_no_dlist</td><td class=CDLDescription>don’t use a display list (slower single command mode)</td></tr><tr><td class=CDLEntry>d2_df_no_irq</td><td class=CDLDescription>don’t use an interrupt (slower polling used instead)</td></tr><tr><td class=CDLEntry>d2_df_no_fbcache</td><td class=CDLDescription>disable framebuffer cache (attention: see note below)</td></tr><tr><td class=CDLEntry>d2_df_no_texcache</td><td class=CDLDescription>disable texture cache (attention: see note below)</td></tr><tr><td class=CDLEntry>d2_df_no_dwclear</td><td class=CDLDescription>disable double word clearing in d2_clear</td></tr><tr><td class=CDLEntry>d2_df_no_registercaching</td><td class=CDLDescription>don’t use register caching</td></tr><tr><td class=CDLEntry>d2_df_no_blitctxbackup</td><td class=CDLDescription>don’t backup context data at blit for better performance; previous texture modes get lost and must be set again</td></tr></table><h4 class=CHeading>note</h4><p>Flags ‘d2_df_no_fbcache’ and ‘d2_df_no_texcache’ should only be used for debugging purposes. Especially when multithreading is used, these flags must not be set different for devices which are bound to the same hardware instance through <a href="#d2_inithw" class=LFunction id=link27 onMouseOver="ShowTip(event, 'tt7', 'link27')" onMouseOut="HideTip('tt7')">d2_inithw</a>.</p><h4 class=CHeading>returns</h4><p>device pointer or NULL if not enough memory was available</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_closedevice"></a>d2_closedevice</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_closedevice(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Destroy a device handle.</p><p>All contexts associated with the device are destroyed as well.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link28 onMouseOver="ShowTip(event, 'tt3', 'link28')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link29 onMouseOver="ShowTip(event, 'tt23', 'link29')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_geterror"></a>d2_geterror</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_geterror(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query device error information.</p><p>See list of all <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link30 onMouseOver="ShowTip(event, 'tt23', 'link30')" onMouseOut="HideTip('tt23')">Errorcodes</a> for more details.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link31 onMouseOver="ShowTip(event, 'tt3', 'link31')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>integer error code (0 is no error)</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_geterrorstring"></a>d2_geterrorstring</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_geterrorstring(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query detailed device error information.</p><p>See list of all <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link32 onMouseOver="ShowTip(event, 'tt23', 'link32')" onMouseOut="HideTip('tt23')">Errorcodes</a> for more details.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link33 onMouseOver="ShowTip(event, 'tt3', 'link33')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>string with human readable error description, or 0 if an error occurs</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_inithw"></a>d2_inithw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_inithw(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>flags</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Initialize hardware for working with specified device. After creation a device is ‘bound’ to a hardware instance by calling inithw for this device. A single device cannot work with multiple hardware units.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link34 onMouseOver="ShowTip(event, 'tt3', 'link34')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>flags</td><td class=CDLDescription>hardware instance id (use 0 for default)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link35 onMouseOver="ShowTip(event, 'tt23', 'link35')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_deinithw"></a>d2_deinithw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_deinithw(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Unlink hardware currently bound by specified device. Hardware must be deinitialized before it can be reinitalized for another device.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link36 onMouseOver="ShowTip(event, 'tt3', 'link36')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link37 onMouseOver="ShowTip(event, 'tt23', 'link37')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_level1interface"></a>d2_level1interface</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d1_device * d2_level1interface(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the lowlevel device handle currently used by the d2_device. This is necessary e.g. for allocating framebuffers using the lowlevel (d1_) interface.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link38 onMouseOver="ShowTip(event, 'tt3', 'link38')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>handle for lowlevel device, or NULL if an error occurs</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getrevisionhw"></a>d2_getrevisionhw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getrevisionhw(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query hw revisionID. This information is available after calling <a href="#d2_inithw" class=LFunction id=link39 onMouseOver="ShowTip(event, 'tt7', 'link39')" onMouseOut="HideTip('tt7')">d2_inithw</a>.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link40 onMouseOver="ShowTip(event, 'tt3', 'link40')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>HW Revision ID</p><h4 class=CHeading>HW Revision ID structure</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Bit[7..0]</td><td class=CDLDescription>revision number</td></tr><tr><td class=CDLEntry>Bit[11..8]</td><td class=CDLDescription>branch number</td></tr><tr><td class=CDLEntry>Bit[15..12]</td><td class=CDLDescription>D/AVE Type</td></tr><tr><td class=CDLEntry>Bit[20..16]</td><td class=CDLDescription>Features</td></tr></table><h4 class=CHeading>D/AVE Type</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>0</td><td class=CDLDescription>D/AVE2DT-S</td></tr><tr><td class=CDLEntry>1</td><td class=CDLDescription>D/AVE2DT-L</td></tr></table><h4 class=CHeading>Feature bits</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Bit[16]</td><td class=CDLDescription>D2FB_SWDAVE (Software D/AVE)</td></tr><tr><td class=CDLEntry>Bit[17]</td><td class=CDLDescription>D2FB_DLR (DisplayListReader available)</td></tr><tr><td class=CDLEntry>Bit[18]</td><td class=CDLDescription>D2FB_FBCACHE (Framebuffer Cache available)</td></tr><tr><td class=CDLEntry>Bit[19]</td><td class=CDLDescription>D2FB_TXCACHE (Texture Cache available)</td></tr><tr><td class=CDLEntry>Bit[20]</td><td class=CDLDescription>D2FB_PERFCOUNT (Two performance counters available)</td></tr><tr><td class=CDLEntry>Bit[21]</td><td class=CDLDescription>D2FB_TEXCLUT (Color Lookup Table for ai44 format)</td></tr><tr><td class=CDLEntry>Bit[22]</td><td class=CDLDescription>D2FB_FBPREFETCH (frame buffer cache prefetch available)</td></tr><tr><td class=CDLEntry>Bit[23]</td><td class=CDLDescription>D2FB_RLEUNIT (RLE unit available)</td></tr><tr><td class=CDLEntry>Bit[24]</td><td class=CDLDescription>D2FB_TEXCLUT256 (256 entry CLUT available)</td></tr><tr><td class=CDLEntry>Bit[25]</td><td class=CDLDescription>D2FB_COLORKEY (color keying available)</td></tr><tr><td class=CDLEntry>Bit[26]</td><td class=CDLDescription>D2FB_HILIMITERPRECISION (limiter high precision mode available)</td></tr><tr><td class=CDLEntry>Bit[27]</td><td class=CDLDescription>D2FB_ALPHACHANNELBLENDING (alpha channel blending available)</td></tr></table><h4 class=CHeading>see also</h4><p><a href="#d2_getrevisionstringhw" class=LFunction id=link41 onMouseOver="ShowTip(event, 'tt11', 'link41')" onMouseOut="HideTip('tt11')">d2_getrevisionstringhw</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getrevisionstringhw"></a>d2_getrevisionstringhw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_getrevisionstringhw(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Query hw revisionID string. This information is available after calling <a href="#d2_inithw" class=LFunction id=link42 onMouseOver="ShowTip(event, 'tt7', 'link42')" onMouseOut="HideTip('tt7')">d2_inithw</a>.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link43 onMouseOver="ShowTip(event, 'tt3', 'link43')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>human readable hw revision string, or 0 if an error occurs (e.g. “D/AVE 2DT-S, Revision 1.05, Features: DLR FBCACHE”).</p><h4 class=CHeading>see also</h4><p><a href="#d2_getrevisionhw" class=LFunction id=link44 onMouseOver="ShowTip(event, 'tt10', 'link44')" onMouseOut="HideTip('tt10')">d2_getrevisionhw</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_lowlocalmemmode"></a>d2_lowlocalmemmode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_lowlocalmemmode(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>dlistblockfactor,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>dlistblocks</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enable and configure the ‘low localmem’ mode.</p><p>On systems with low local CPU memory, the display lists can not be completely assembled in the local memory. A special mode is used in this case, which assembles small display list blocks in the local memory and copies them to the video memory, where they are concatenated to larger blocks. In order to use this mode it is necessary to call d2_lowlocalmemmode directly after <a href="#d2_opendevice" class=LFunction id=link45 onMouseOver="ShowTip(event, 'tt3', 'link45')" onMouseOut="HideTip('tt3')">d2_opendevice</a> and before <a href="#d2_inithw" class=LFunction id=link46 onMouseOver="ShowTip(event, 'tt7', 'link46')" onMouseOut="HideTip('tt7')">d2_inithw</a>.</p><p>Querying the number of effectively used display list blocks can be done using <a href="#d2_getdlistblockcount" class=LFunction id=link47 onMouseOver="ShowTip(event, 'tt21', 'link47')" onMouseOut="HideTip('tt21')">d2_getdlistblockcount</a>, which gives the number of display list blocks used so far (in units of the local display list block size). The application developer must take care that the maximum display list size configured using <a href="#d2_lowlocalmemmode" class=LFunction id=link48 onMouseOver="ShowTip(event, 'tt12', 'link48')" onMouseOut="HideTip('tt12')">d2_lowlocalmemmode</a> is sufficient.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link49 onMouseOver="ShowTip(event, 'tt3', 'link49')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>dlistblockfactor</td><td class=CDLDescription>size of a dlist block in vidmem is this factor * local size (configurable using <a href="#d2_setdlistblocksize" class=LFunction id=link50 onMouseOver="ShowTip(event, 'tt19', 'link50')" onMouseOut="HideTip('tt19')">d2_setdlistblocksize</a>)</td></tr><tr><td class=CDLEntry>dlistblocks</td><td class=CDLDescription>maximum number of dlist blocks in vidmem</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successful) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link51 onMouseOver="ShowTip(event, 'tt23', 'link51')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>see also</h4><p><a href="#d2_setdlistblocksize" class=LFunction id=link52 onMouseOver="ShowTip(event, 'tt19', 'link52')" onMouseOut="HideTip('tt19')">d2_setdlistblocksize</a></p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Rendering_Mode"></a>Rendering Mode</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_selectrendermode"></a>d2_selectrendermode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_selectrendermode(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>mode</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Select a rendering mode. Dave can automatically generate and render geometry outlines and shadows. A different rendering context is used for interior (solid context) and addons (outline context) so that both parts can have entirely different materials.</p><p>Note that primitives which are issued while rendermode ‘postprocess’ is active are buffered and put into the commandlist after all normal commands. Combined rendermodes like ‘solid_outlined’ and ‘solid_shadow’ internally use postprocessing to sort solid and outline parts.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link53 onMouseOver="ShowTip(event, 'tt3', 'link53')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>mode</td><td class=CDLDescription>rendering mode</td></tr></table><h4 class=CHeading>available rendering modes</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>d2_rm_solid</td><td class=CDLDescription>Direct rendering of primitives (default mode)</td></tr><tr><td class=CDLEntry>d2_rm_outline</td><td class=CDLDescription>Only outlines are rendered</td></tr><tr><td class=CDLEntry>d2_rm_solid_outlined</td><td class=CDLDescription>Interior and outlines are rendered</td></tr><tr><td class=CDLEntry>d2_rm_shadow</td><td class=CDLDescription>Only shadows are rendered</td></tr><tr><td class=CDLEntry>d2_rm_solid_shadow</td><td class=CDLDescription>Interior and shadows are rendered</td></tr><tr><td class=CDLEntry>d2_rm_postprocess</td><td class=CDLDescription>Direct rendering of primitives as a postprocess</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link54 onMouseOver="ShowTip(event, 'tt23', 'link54')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>see also</h4><p><a href="#d2_outlinewidth" class=LFunction id=link55 onMouseOver="ShowTip(event, 'tt16', 'link55')" onMouseOut="HideTip('tt16')">d2_outlinewidth</a>, <a href="#d2_shadowoffset" class=LFunction id=link56 onMouseOver="ShowTip(event, 'tt17', 'link56')" onMouseOut="HideTip('tt17')">d2_shadowoffset</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getrendermode"></a>d2_getrendermode</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getrendermode(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the rendering mode. This function can be used to get the rendering mode used for a specified d2_device.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link57 onMouseOver="ShowTip(event, 'tt3', 'link57')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>available rendering modes</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>d2_rm_solid</td><td class=CDLDescription>Direct rendering of primitives (default mode)</td></tr><tr><td class=CDLEntry>d2_rm_outline</td><td class=CDLDescription>Only outlines are rendered</td></tr><tr><td class=CDLEntry>d2_rm_solid_outlined</td><td class=CDLDescription>Interior and outlines are rendered</td></tr><tr><td class=CDLEntry>d2_rm_shadow</td><td class=CDLDescription>Only shadows are rendered</td></tr><tr><td class=CDLEntry>d2_rm_solid_shadow</td><td class=CDLDescription>Interior and shadows are rendered</td></tr><tr><td class=CDLEntry>d2_rm_postprocess</td><td class=CDLDescription>Direct rendering of primitives as a postprocess</td></tr></table><h4 class=CHeading>returns</h4><p>integer specifying the rendering mode, or 0 if an error occurs</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_layermerge"></a>d2_layermerge</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_layermerge(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Join outline and solid parts of currently selected renderbuffer. When using rendermode <b>d2_rm_postprocess</b> (see: <a href="#d2_selectrendermode" class=LFunction id=link58 onMouseOver="ShowTip(event, 'tt13', 'link58')" onMouseOut="HideTip('tt13')">d2_selectrendermode</a>) the postprocess buffer can be flushed using a call to d2_layermerge.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link59 onMouseOver="ShowTip(event, 'tt3', 'link59')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link60 onMouseOver="ShowTip(event, 'tt23', 'link60')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>see also</h4><p><a href="#d2_selectrendermode" class=LFunction id=link61 onMouseOver="ShowTip(event, 'tt13', 'link61')" onMouseOut="HideTip('tt13')">d2_selectrendermode</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_outlinewidth"></a>d2_outlinewidth</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_outlinewidth(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_width </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>width</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Define the width of geometry outlines. Used only when using outline or solid_outlined rendering modes.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link62 onMouseOver="ShowTip(event, 'tt3', 'link62')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>width</td><td class=CDLDescription>outline width in pixels (fixedpoint)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link63 onMouseOver="ShowTip(event, 'tt23', 'link63')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>see also</h4><p><a href="#d2_selectrendermode" class=LFunction id=link64 onMouseOver="ShowTip(event, 'tt13', 'link64')" onMouseOut="HideTip('tt13')">d2_selectrendermode</a>, <a href="#d2_shadowoffset" class=LFunction id=link65 onMouseOver="ShowTip(event, 'tt17', 'link65')" onMouseOut="HideTip('tt17')">d2_shadowoffset</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_shadowoffset"></a>d2_shadowoffset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_shadowoffset(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_point </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>x,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_point </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>y</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Define the offset of geometry shadows. Used only when using shadow or solid_shadow rendering modes.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link66 onMouseOver="ShowTip(event, 'tt3', 'link66')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>x</td><td class=CDLDescription>x axis offset in pixels (fixedpoint)</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>y axis offset in pixels (fixedpoint)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link67 onMouseOver="ShowTip(event, 'tt23', 'link67')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>see also</h4><p><a href="#d2_selectrendermode" class=LFunction id=link68 onMouseOver="ShowTip(event, 'tt13', 'link68')" onMouseOut="HideTip('tt13')">d2_selectrendermode</a>, <a href="#d2_outlinewidth" class=LFunction id=link69 onMouseOver="ShowTip(event, 'tt16', 'link69')" onMouseOut="HideTip('tt16')">d2_outlinewidth</a></p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Utility_Functions"></a>Utility Functions</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_flushframe"></a>d2_flushframe</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_flushframe(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Wait for current rendering to end.</p><p>Function will not return until the hardware has finished executing all currently active rendering operations. Note that no rendering operations are started until a renderbuffer is executed. (See <a href="dave_rbuffer-c.html#Render_Buffers" class=LSection id=link70 onMouseOver="ShowTip(event, 'tt24', 'link70')" onMouseOut="HideTip('tt24')">Render Buffers</a>)</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link71 onMouseOver="ShowTip(event, 'tt3', 'link71')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successfull) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link72 onMouseOver="ShowTip(event, 'tt23', 'link72')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_setdlistblocksize"></a>d2_setdlistblocksize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_setdlistblocksize(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>size</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Set blocksize for default displaylists.</p><p>Sets the number of displaylist entries per block (aka page). The value given is effectively used for internal calls to <a href="dave_rbuffer-c.html#d2_newrenderbuffer" class=LFunction id=link73 onMouseOver="ShowTip(event, 'tt25', 'link73')" onMouseOut="HideTip('tt25')">d2_newrenderbuffer</a> as both ‘initialsize’ and ‘stepsize’. For hints on how to optimize this size see documentation of <a href="dave_rbuffer-c.html#d2_newrenderbuffer" class=LFunction id=link74 onMouseOver="ShowTip(event, 'tt25', 'link74')" onMouseOut="HideTip('tt25')">d2_newrenderbuffer</a>.</p><p>The default blocksize is: 204</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link75 onMouseOver="ShowTip(event, 'tt3', 'link75')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr><tr><td class=CDLEntry>size</td><td class=CDLDescription>number of displaylist entries per block (minimum is 3)</td></tr></table><h4 class=CHeading>returns</h4><p>errorcode (D2_OK if successful) see list of <a href="../inc/dave_errorcodes-h.html#Errorcodes" class=LSection id=link76 onMouseOver="ShowTip(event, 'tt23', 'link76')" onMouseOut="HideTip('tt23')">Errorcodes</a> for details</p><h4 class=CHeading>note</h4><p>The minimum number of displaylist entries per block is 3. This limitation is required to terminate a list correctly, there must be enough space to insert a dlist jump and a special termination entry.</p><h4 class=CHeading>see also</h4><p><a href="#d2_getdlistblocksize" class=LFunction id=link77 onMouseOver="ShowTip(event, 'tt20', 'link77')" onMouseOut="HideTip('tt20')">d2_getdlistblocksize</a>, <a href="dave_rbuffer-c.html#d2_newrenderbuffer" class=LFunction id=link78 onMouseOver="ShowTip(event, 'tt25', 'link78')" onMouseOut="HideTip('tt25')">d2_newrenderbuffer</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getdlistblocksize"></a>d2_getdlistblocksize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getdlistblocksize(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get blocksize of default displaylist.</p><p>Function will return the number of displaylist entries per block</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link79 onMouseOver="ShowTip(event, 'tt3', 'link79')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>number of displaylist entries per block, or 0 if an error occurs</p><h4 class=CHeading>see also</h4><p><a href="#d2_setdlistblocksize" class=LFunction id=link80 onMouseOver="ShowTip(event, 'tt19', 'link80')" onMouseOut="HideTip('tt19')">d2_setdlistblocksize</a>, <a href="dave_rbuffer-c.html#d2_newrenderbuffer" class=LFunction id=link81 onMouseOver="ShowTip(event, 'tt25', 'link81')" onMouseOut="HideTip('tt25')">d2_newrenderbuffer</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_getdlistblockcount"></a>d2_getdlistblockcount</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getdlistblockcount(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get number of blocks of default displaylist (writelist).</p><p>Function will return the number of used blocks for current displaylist</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link82 onMouseOver="ShowTip(event, 'tt3', 'link82')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>number of used blocks</p><h4 class=CHeading>see also</h4><p><a href="#d2_setdlistblocksize" class=LFunction id=link83 onMouseOver="ShowTip(event, 'tt19', 'link83')" onMouseOut="HideTip('tt19')">d2_setdlistblocksize</a>, <a href="dave_rbuffer-c.html#d2_newrenderbuffer" class=LFunction id=link84 onMouseOver="ShowTip(event, 'tt25', 'link84')" onMouseOut="HideTip('tt25')">d2_newrenderbuffer</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="d2_commandspending"></a>d2_commandspending</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_commandspending(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Check if there are pending commands in the current displaylist.</p><h4 class=CHeading>parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>handle</td><td class=CDLDescription>device pointer (see: <a href="#d2_opendevice" class=LFunction id=link85 onMouseOver="ShowTip(event, 'tt3', 'link85')" onMouseOut="HideTip('tt3')">d2_opendevice</a>)</td></tr></table><h4 class=CHeading>returns</h4><p>boolean value: true when there are commands pending, also 0 if an error occurs</p><h4 class=CHeading>see also</h4><p><a href="#d2_getdlistblockcount" class=LFunction id=link86 onMouseOver="ShowTip(event, 'tt21', 'link86')" onMouseOut="HideTip('tt21')">d2_getdlistblockcount</a></p></div></div></div>
|
|
|
|
</div><!--Content-->
|
|
|
|
|
|
<div id=Footer>© 2016 by TES Electronic Solutions · <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
|
|
|
|
|
|
<div id=Menu><div class=MEntry><div class=MFile><a href="../doc/overview-txt.html">Driver Overview</a></div></div><div class=MEntry><div class=MFile><a href="../doc/limitations-txt.html">Limitations</a></div></div><div class=MEntry><div class=MFile><a href="../inc/dave_driver-h.html">Basic Types</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">API</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile id=MSelected>Basic Functions</div></div><div class=MEntry><div class=MFile><a href="dave_viewport-c.html">Viewport Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_context-c.html">Context Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_texture-c.html">Texture Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_render-c.html">Rendering Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_blit-c.html">Blit Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_rbuffer-c.html">Render Buffers</a></div></div><div class=MEntry><div class=MFile><a href="dave_perfcount-c.html">Profiling</a></div></div><div class=MEntry><div class=MFile><a href="dave_utility-c.html">Utility Functions</a></div></div><div class=MEntry><div class=MFile><a href="dave_64bitoperation-c.html">Functions for 64bit operations</a></div></div><div class=MEntry><div class=MFile><a href="dave_dlist-c.html">Dlist Functions</a></div></div><div class=MEntry><div class=MFile><a href="../inc/dave_math-h.html">Math Functions</a></div></div><div class=MEntry><div class=MFile><a href="../inc/dave_errorcodes-h.html">Errorcodes</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Index</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Types.html">Types</a></div></div></div></div></div><script type="text/javascript"><!--
|
|
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
|
|
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Functions">Functions</option><option value="Types">Types</option></select></div></div><!--Menu-->
|
|
|
|
|
|
|
|
<!--START_ND_TOOLTIPS-->
|
|
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_getversionstring(</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query versionID string (device independent)</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_getversion(</td><td class="PParameter prettyprint " nowrap>void</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query versionID (device independent)</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_device * d2_opendevice(</td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameter prettyprint " nowrap>flags</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Create a new device handle.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_closedevice(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Destroy a device handle.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_geterror(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query device error information.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_geterrorstring(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query detailed device error information.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_inithw(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>flags</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Initialize hardware for working with specified device. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_deinithw(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Unlink hardware currently bound by specified device. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d1_device * d2_level1interface(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the lowlevel device handle currently used by the d2_device. </div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getrevisionhw(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query hw revisionID. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>const d2_char * d2_getrevisionstringhw(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Query hw revisionID string. </div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_lowlocalmemmode(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>dlistblockfactor,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>dlistblocks</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Enable and configure the ‘low localmem’ mode.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_selectrendermode(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>mode</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Select a rendering mode. </div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getrendermode(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the rendering mode. </div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_layermerge(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Join outline and solid parts of currently selected renderbuffer. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_outlinewidth(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_width </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>width</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Define the width of geometry outlines. </div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_shadowoffset(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_point </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>x,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_point </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>y</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Define the offset of geometry shadows. </div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_flushframe(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Wait for current rendering to end.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_setdlistblocksize(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>size</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set blocksize for default displaylists.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getdlistblocksize(</td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get blocksize of default displaylist.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_u32 d2_getdlistblockcount(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get number of blocks of default displaylist (writelist).</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_s32 d2_commandspending(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Check if there are pending commands in the current displaylist.</div></div><div class=CToolTip id="tt23"><div class=CSection>List of all dave driver errorcodes.</div></div><div class=CToolTip id="tt24"><div class=CSection>Renderbuffers (similar in concept to OpenGL display lists) are the main interface between driver and hardware.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>d2_renderbuffer * d2_newrenderbuffer(</td><td class="PType prettyprint " nowrap>d2_device </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>handle,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>initialsize,</td></tr><tr><td></td><td class="PType prettyprint " nowrap>d2_u32 </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>stepsize</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Create a new renderbuffer.</div></div><!--END_ND_TOOLTIPS-->
|
|
|
|
|
|
|
|
|
|
<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
|
|
|
|
|
|
<script language=JavaScript><!--
|
|
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> |