1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> 5 6 <title>/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_mesh.rsh File Reference</title> 7 <link href="tabs.css" rel="stylesheet" type="text/css"/> 8 <link href="doxygen.css" rel="stylesheet" type="text/css" /> 9 10 11 12 </head> 13 <body> 14 <div id="top"><!-- do not remove this div! --> 15 16 17 <!-- Generated by Doxygen 1.7.5.1 --> 18 <div id="navrow1" class="tabs"> 19 <ul class="tablist"> 20 <li><a href="index.html"><span>Overview</span></a></li> 21 <li class="current"><a href="globals.html"><span>Globals</span></a></li> 22 <li><a href="annotated.html"><span>Structs</span></a></li> 23 </ul> 24 </div> 25 </div> 26 <div class="header"> 27 <div class="summary"> 28 <a href="#func-members">Functions</a> </div> 29 <div class="headertitle"> 30 <div class="title">/usr/local/google/home/srhines/android_trees/jb-mr2-dev/frameworks/rs/scriptc/rs_mesh.rsh File Reference</div> </div> 31 </div> 32 <div class="contents"> 33 <table class="memberdecls"> 34 <tr><td colspan="2"><h2><a name="func-members"></a> 35 Functions</h2></td></tr> 36 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__mesh_8rsh.html#a7578d6d93154ac881715ab511449fab9">rsgMeshGetVertexAllocationCount</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> m)</td></tr> 37 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__mesh_8rsh.html#ae0a0178cc02508517013486be4500d7f">rsgMeshGetPrimitiveCount</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> m)</td></tr> 38 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrs__allocation.html">rs_allocation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__mesh_8rsh.html#a43e1d84147176cb0a1659552fa8da49f">rsgMeshGetVertexAllocation</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> m, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> index)</td></tr> 39 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrs__allocation.html">rs_allocation</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__mesh_8rsh.html#a05257c9252e7804397d6a6f7549bae5a">rsgMeshGetIndexAllocation</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> m, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> index)</td></tr> 40 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#aaaa4ecd4a284cf9cccc6e06407229951">rs_primitive</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="rs__mesh_8rsh.html#af467f1c21cc9221071334f8234c29466">rsgMeshGetPrimitive</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> m, <a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> index)</td></tr> 41 </table> 42 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> 43 <div class="textblock"><p>Mesh routines. </p> 44 45 <p>Definition in file <a class="el" href="rs__mesh_8rsh_source.html">rs_mesh.rsh</a>.</p> 46 </div><hr/><h2>Function Documentation</h2> 47 <a class="anchor" id="a05257c9252e7804397d6a6f7549bae5a"></a><!-- doxytag: member="rs_mesh.rsh::rsgMeshGetIndexAllocation" ref="a05257c9252e7804397d6a6f7549bae5a" args="(rs_mesh m, uint32_t index)" --> 48 <div class="memitem"> 49 <div class="memproto"> 50 <table class="memname"> 51 <tr> 52 <td class="memname"><a class="el" href="structrs__allocation.html">rs_allocation</a> rsgMeshGetIndexAllocation </td> 53 <td>(</td> 54 <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a> </td> 55 <td class="paramname"><em>m</em>, </td> 56 </tr> 57 <tr> 58 <td class="paramkey"></td> 59 <td></td> 60 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td> 61 <td class="paramname"><em>index</em> </td> 62 </tr> 63 <tr> 64 <td></td> 65 <td>)</td> 66 <td></td><td></td> 67 </tr> 68 </table> 69 </div> 70 <div class="memdoc"> 71 <p>Returns an allocation containing index data or a null allocation if only the primitive is specified</p> 72 <dl><dt><b>Parameters:</b></dt><dd> 73 <table class="params"> 74 <tr><td class="paramname">m</td><td>mesh to get data from </td></tr> 75 <tr><td class="paramname">index</td><td>index of the index allocation </td></tr> 76 </table> 77 </dd> 78 </dl> 79 <dl class="return"><dt><b>Returns:</b></dt><dd>allocation containing index data </dd></dl> 80 81 </div> 82 </div> 83 <a class="anchor" id="af467f1c21cc9221071334f8234c29466"></a><!-- doxytag: member="rs_mesh.rsh::rsgMeshGetPrimitive" ref="af467f1c21cc9221071334f8234c29466" args="(rs_mesh m, uint32_t index)" --> 84 <div class="memitem"> 85 <div class="memproto"> 86 <table class="memname"> 87 <tr> 88 <td class="memname"><a class="el" href="rs__types_8rsh.html#aaaa4ecd4a284cf9cccc6e06407229951">rs_primitive</a> rsgMeshGetPrimitive </td> 89 <td>(</td> 90 <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a> </td> 91 <td class="paramname"><em>m</em>, </td> 92 </tr> 93 <tr> 94 <td class="paramkey"></td> 95 <td></td> 96 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td> 97 <td class="paramname"><em>index</em> </td> 98 </tr> 99 <tr> 100 <td></td> 101 <td>)</td> 102 <td></td><td></td> 103 </tr> 104 </table> 105 </div> 106 <div class="memdoc"> 107 <p>Returns the primitive describing how a part of the mesh is rendered</p> 108 <dl><dt><b>Parameters:</b></dt><dd> 109 <table class="params"> 110 <tr><td class="paramname">m</td><td>mesh to get data from </td></tr> 111 <tr><td class="paramname">index</td><td>index of the primitive </td></tr> 112 </table> 113 </dd> 114 </dl> 115 <dl class="return"><dt><b>Returns:</b></dt><dd>primitive describing how the mesh is rendered </dd></dl> 116 117 </div> 118 </div> 119 <a class="anchor" id="ae0a0178cc02508517013486be4500d7f"></a><!-- doxytag: member="rs_mesh.rsh::rsgMeshGetPrimitiveCount" ref="ae0a0178cc02508517013486be4500d7f" args="(rs_mesh m)" --> 120 <div class="memitem"> 121 <div class="memproto"> 122 <table class="memname"> 123 <tr> 124 <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsgMeshGetPrimitiveCount </td> 125 <td>(</td> 126 <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a> </td> 127 <td class="paramname"><em>m</em></td><td>)</td> 128 <td></td> 129 </tr> 130 </table> 131 </div> 132 <div class="memdoc"> 133 <p>Meshes could have multiple index sets, this function returns the number.</p> 134 <dl><dt><b>Parameters:</b></dt><dd> 135 <table class="params"> 136 <tr><td class="paramname">m</td><td>mesh to get data from </td></tr> 137 </table> 138 </dd> 139 </dl> 140 <dl class="return"><dt><b>Returns:</b></dt><dd>number of primitive groups in the mesh. This would include simple primitives as well as allocations containing index data </dd></dl> 141 142 </div> 143 </div> 144 <a class="anchor" id="a43e1d84147176cb0a1659552fa8da49f"></a><!-- doxytag: member="rs_mesh.rsh::rsgMeshGetVertexAllocation" ref="a43e1d84147176cb0a1659552fa8da49f" args="(rs_mesh m, uint32_t index)" --> 145 <div class="memitem"> 146 <div class="memproto"> 147 <table class="memname"> 148 <tr> 149 <td class="memname"><a class="el" href="structrs__allocation.html">rs_allocation</a> rsgMeshGetVertexAllocation </td> 150 <td>(</td> 151 <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a> </td> 152 <td class="paramname"><em>m</em>, </td> 153 </tr> 154 <tr> 155 <td class="paramkey"></td> 156 <td></td> 157 <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> </td> 158 <td class="paramname"><em>index</em> </td> 159 </tr> 160 <tr> 161 <td></td> 162 <td>)</td> 163 <td></td><td></td> 164 </tr> 165 </table> 166 </div> 167 <div class="memdoc"> 168 <p>Returns an allocation that is part of the mesh and contains vertex data, e.g. positions, normals, texcoords</p> 169 <dl><dt><b>Parameters:</b></dt><dd> 170 <table class="params"> 171 <tr><td class="paramname">m</td><td>mesh to get data from </td></tr> 172 <tr><td class="paramname">index</td><td>index of the vertex allocation </td></tr> 173 </table> 174 </dd> 175 </dl> 176 <dl class="return"><dt><b>Returns:</b></dt><dd>allocation containing vertex data </dd></dl> 177 178 </div> 179 </div> 180 <a class="anchor" id="a7578d6d93154ac881715ab511449fab9"></a><!-- doxytag: member="rs_mesh.rsh::rsgMeshGetVertexAllocationCount" ref="a7578d6d93154ac881715ab511449fab9" args="(rs_mesh m)" --> 181 <div class="memitem"> 182 <div class="memproto"> 183 <table class="memname"> 184 <tr> 185 <td class="memname"><a class="el" href="rs__types_8rsh.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> rsgMeshGetVertexAllocationCount </td> 186 <td>(</td> 187 <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a> </td> 188 <td class="paramname"><em>m</em></td><td>)</td> 189 <td></td> 190 </tr> 191 </table> 192 </div> 193 <div class="memdoc"> 194 <p>Returns the number of allocations in the mesh that contain vertex data</p> 195 <dl><dt><b>Parameters:</b></dt><dd> 196 <table class="params"> 197 <tr><td class="paramname">m</td><td>mesh to get data from </td></tr> 198 </table> 199 </dd> 200 </dl> 201 <dl class="return"><dt><b>Returns:</b></dt><dd>number of allocations in the mesh that contain vertex data </dd></dl> 202 203 </div> 204 </div> 205 </div> 206 207 </body> 208 </html> 209