Home | History | Annotate | Download | only in renderscript
      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>/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.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">/src/ics-mr1/frameworks/base/libs/rs/scriptc/rs_graphics.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">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a9f8deb600729a83c39c5bcaba2152b9c">rsgBindProgramFragment</a> (<a class="el" href="structrs__program__fragment.html">rs_program_fragment</a> pf)</td></tr>
     37 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a34dfa6eddd7454fc1865222c5a022315">rsgBindProgramStore</a> (<a class="el" href="structrs__program__store.html">rs_program_store</a> ps)</td></tr>
     38 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a894e26d0d05d3ef99be65ddf98dd901c">rsgBindProgramVertex</a> (<a class="el" href="structrs__program__vertex.html">rs_program_vertex</a> pv)</td></tr>
     39 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a391eb5535544f6312c724b910da6ec35">rsgBindProgramRaster</a> (<a class="el" href="structrs__program__raster.html">rs_program_raster</a> pr)</td></tr>
     40 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a4ade6c5acbf6acaa1c29a1aecc6e87d3">rsgBindSampler</a> (<a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, <a class="el" href="structrs__sampler.html">rs_sampler</a>)</td></tr>
     41 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a1694eb5489bd3a444da921dbf16aeeb5">rsgBindTexture</a> (<a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, <a class="el" href="structrs__allocation.html">rs_allocation</a>)</td></tr>
     42 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a83a87d8efa3f26ed3f8fb25e49f29059">rsgProgramVertexLoadProjectionMatrix</a> (const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *proj)</td></tr>
     43 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a976b8594cccb4b94d7ce520b44d884e3">rsgProgramVertexLoadModelMatrix</a> (const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *model)</td></tr>
     44 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a377b7b394c4bf0881532b1241d4be168">rsgProgramVertexLoadTextureMatrix</a> (const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *tex)</td></tr>
     45 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a2b767d209b36ffcd2e0fc0cf6f4c5706">rsgProgramVertexGetProjectionMatrix</a> (<a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *proj)</td></tr>
     46 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a35ac8c3759e25047e6a458c15520c887">rsgProgramFragmentConstantColor</a> (<a class="el" href="structrs__program__fragment.html">rs_program_fragment</a> pf, float r, float g, float b, float a)</td></tr>
     47 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a67f4ed1ca4bba27d5c952ada89cd0717">rsgGetWidth</a> (void)</td></tr>
     48 <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a7e6565cd5d5e44f442a8bf8ba68f4681">rsgGetHeight</a> (void)</td></tr>
     49 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a647228d8e15da6ad67a97701d920dcac">rsgAllocationSyncAll</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a> alloc)</td></tr>
     50 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a80c51849bf12ec6c699c23c3fa3e6208">rsgDrawRect</a> (float x1, float y1, float x2, float y2, float z)</td></tr>
     51 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#ad6953da0349e58547b08b8ce174ed3fc">rsgDrawQuad</a> (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)</td></tr>
     52 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#afb98a59bb9f878f0a09459567c269e64">rsgDrawQuadTexCoords</a> (float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float x4, float y4, float z4, float u4, float v4)</td></tr>
     53 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a07d15127330fa1dff6c99b0d7d14e65e">rsgDrawSpriteScreenspace</a> (float x, float y, float z, float w, float h)</td></tr>
     54 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a6f8b87c994810908fbe5e01f8f63f9af">rsgDrawMesh</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> ism)</td></tr>
     55 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a621abfc693fed028b5dc74826453142d">rsgDrawMesh</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> ism, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> primitiveIndex)</td></tr>
     56 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#ab2704a6d16e3d7983524d0a8413c1b8a">rsgDrawMesh</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> ism, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> primitiveIndex, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> start, <a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> len)</td></tr>
     57 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a147674fed92745fbb5c64a6300ca3c49">rsgClearColor</a> (float r, float g, float b, float a)</td></tr>
     58 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a4bedb06e8facd587e3eacd746fe3e727">rsgClearDepth</a> (float value)</td></tr>
     59 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#afaec82492762e62cad1ff53ada479b14">rsgDrawText</a> (const char *, int x, int y)</td></tr>
     60 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#ac5e84fd253b4b1d2b0e11a7a0a7df945">rsgDrawText</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>, int x, int y)</td></tr>
     61 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#ae89effef281e92e2940055883ea366d4">rsgBindFont</a> (<a class="el" href="structrs__font.html">rs_font</a> font)</td></tr>
     62 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#abda8c344092ed6310c7a8f353a6df876">rsgFontColor</a> (float r, float g, float b, float a)</td></tr>
     63 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a5c599f4ea989f3d0616cbf8e983688c4">rsgMeasureText</a> (const char *, int *left, int *right, int *top, int *bottom)</td></tr>
     64 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a2abb920283b1dafa9059de488143a870">rsgMeasureText</a> (<a class="el" href="structrs__allocation.html">rs_allocation</a>, int *left, int *right, int *top, int *bottom)</td></tr>
     65 <tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a0978c54902dd1d60180f8dbb0b781105">rsgMeshComputeBoundingBox</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> mesh, float *minX, float *minY, float *minZ, float *maxX, float *maxY, float *maxZ)</td></tr>
     66 <tr><td class="memItemLeft" align="right" valign="top">static __inline__ void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rs__graphics_8rsh.html#a6058b6b6c8b94f96f03dc8bca6a2090b">rsgMeshComputeBoundingBox</a> (<a class="el" href="structrs__mesh.html">rs_mesh</a> mesh, <a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *bBoxMin, <a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *bBoxMax)</td></tr>
     67 </table>
     68 <hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
     69 <div class="textblock"><p>Renderscript graphics API. </p>
     70 <p>A set of graphics functions used by Renderscript. </p>
     71 
     72 <p>Definition in file <a class="el" href="rs__graphics_8rsh_source.html">rs_graphics.rsh</a>.</p>
     73 </div><hr/><h2>Function Documentation</h2>
     74 <a class="anchor" id="a647228d8e15da6ad67a97701d920dcac"></a><!-- doxytag: member="rs_graphics.rsh::rsgAllocationSyncAll" ref="a647228d8e15da6ad67a97701d920dcac" args="(rs_allocation alloc)" -->
     75 <div class="memitem">
     76 <div class="memproto">
     77       <table class="memname">
     78         <tr>
     79           <td class="memname">void rsgAllocationSyncAll </td>
     80           <td>(</td>
     81           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
     82           <td class="paramname"><em>alloc</em></td><td>)</td>
     83           <td></td>
     84         </tr>
     85       </table>
     86 </div>
     87 <div class="memdoc">
     88 <p>Sync the contents of an allocation from its SCRIPT memory space to its HW memory spaces.</p>
     89 <dl><dt><b>Parameters:</b></dt><dd>
     90   <table class="params">
     91     <tr><td class="paramname">alloc</td><td></td></tr>
     92   </table>
     93   </dd>
     94 </dl>
     95 
     96 </div>
     97 </div>
     98 <a class="anchor" id="ae89effef281e92e2940055883ea366d4"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindFont" ref="ae89effef281e92e2940055883ea366d4" args="(rs_font font)" -->
     99 <div class="memitem">
    100 <div class="memproto">
    101       <table class="memname">
    102         <tr>
    103           <td class="memname">void rsgBindFont </td>
    104           <td>(</td>
    105           <td class="paramtype"><a class="el" href="structrs__font.html">rs_font</a>&#160;</td>
    106           <td class="paramname"><em>font</em></td><td>)</td>
    107           <td></td>
    108         </tr>
    109       </table>
    110 </div>
    111 <div class="memdoc">
    112 <p>Binds the font object to be used for all subsequent font rendering calls </p>
    113 <dl><dt><b>Parameters:</b></dt><dd>
    114   <table class="params">
    115     <tr><td class="paramname">font</td><td>object to bind </td></tr>
    116   </table>
    117   </dd>
    118 </dl>
    119 
    120 </div>
    121 </div>
    122 <a class="anchor" id="a9f8deb600729a83c39c5bcaba2152b9c"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindProgramFragment" ref="a9f8deb600729a83c39c5bcaba2152b9c" args="(rs_program_fragment pf)" -->
    123 <div class="memitem">
    124 <div class="memproto">
    125       <table class="memname">
    126         <tr>
    127           <td class="memname">void rsgBindProgramFragment </td>
    128           <td>(</td>
    129           <td class="paramtype"><a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>&#160;</td>
    130           <td class="paramname"><em>pf</em></td><td>)</td>
    131           <td></td>
    132         </tr>
    133       </table>
    134 </div>
    135 <div class="memdoc">
    136 <p>Bind a new ProgramFragment to the rendering context.</p>
    137 <dl><dt><b>Parameters:</b></dt><dd>
    138   <table class="params">
    139     <tr><td class="paramname">pf</td><td></td></tr>
    140   </table>
    141   </dd>
    142 </dl>
    143 
    144 </div>
    145 </div>
    146 <a class="anchor" id="a391eb5535544f6312c724b910da6ec35"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindProgramRaster" ref="a391eb5535544f6312c724b910da6ec35" args="(rs_program_raster pr)" -->
    147 <div class="memitem">
    148 <div class="memproto">
    149       <table class="memname">
    150         <tr>
    151           <td class="memname">void rsgBindProgramRaster </td>
    152           <td>(</td>
    153           <td class="paramtype"><a class="el" href="structrs__program__raster.html">rs_program_raster</a>&#160;</td>
    154           <td class="paramname"><em>pr</em></td><td>)</td>
    155           <td></td>
    156         </tr>
    157       </table>
    158 </div>
    159 <div class="memdoc">
    160 <p>Bind a new ProgramRaster to the rendering context.</p>
    161 <dl><dt><b>Parameters:</b></dt><dd>
    162   <table class="params">
    163     <tr><td class="paramname">pr</td><td></td></tr>
    164   </table>
    165   </dd>
    166 </dl>
    167 
    168 </div>
    169 </div>
    170 <a class="anchor" id="a34dfa6eddd7454fc1865222c5a022315"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindProgramStore" ref="a34dfa6eddd7454fc1865222c5a022315" args="(rs_program_store ps)" -->
    171 <div class="memitem">
    172 <div class="memproto">
    173       <table class="memname">
    174         <tr>
    175           <td class="memname">void rsgBindProgramStore </td>
    176           <td>(</td>
    177           <td class="paramtype"><a class="el" href="structrs__program__store.html">rs_program_store</a>&#160;</td>
    178           <td class="paramname"><em>ps</em></td><td>)</td>
    179           <td></td>
    180         </tr>
    181       </table>
    182 </div>
    183 <div class="memdoc">
    184 <p>Bind a new ProgramStore to the rendering context.</p>
    185 <dl><dt><b>Parameters:</b></dt><dd>
    186   <table class="params">
    187     <tr><td class="paramname">ps</td><td></td></tr>
    188   </table>
    189   </dd>
    190 </dl>
    191 
    192 </div>
    193 </div>
    194 <a class="anchor" id="a894e26d0d05d3ef99be65ddf98dd901c"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindProgramVertex" ref="a894e26d0d05d3ef99be65ddf98dd901c" args="(rs_program_vertex pv)" -->
    195 <div class="memitem">
    196 <div class="memproto">
    197       <table class="memname">
    198         <tr>
    199           <td class="memname">void rsgBindProgramVertex </td>
    200           <td>(</td>
    201           <td class="paramtype"><a class="el" href="structrs__program__vertex.html">rs_program_vertex</a>&#160;</td>
    202           <td class="paramname"><em>pv</em></td><td>)</td>
    203           <td></td>
    204         </tr>
    205       </table>
    206 </div>
    207 <div class="memdoc">
    208 <p>Bind a new ProgramVertex to the rendering context.</p>
    209 <dl><dt><b>Parameters:</b></dt><dd>
    210   <table class="params">
    211     <tr><td class="paramname">pv</td><td></td></tr>
    212   </table>
    213   </dd>
    214 </dl>
    215 
    216 </div>
    217 </div>
    218 <a class="anchor" id="a4ade6c5acbf6acaa1c29a1aecc6e87d3"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindSampler" ref="a4ade6c5acbf6acaa1c29a1aecc6e87d3" args="(rs_program_fragment, uint slot, rs_sampler)" -->
    219 <div class="memitem">
    220 <div class="memproto">
    221       <table class="memname">
    222         <tr>
    223           <td class="memname">void rsgBindSampler </td>
    224           <td>(</td>
    225           <td class="paramtype"><a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>&#160;</td>
    226           <td class="paramname">, </td>
    227         </tr>
    228         <tr>
    229           <td class="paramkey"></td>
    230           <td></td>
    231           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    232           <td class="paramname"><em>slot</em>, </td>
    233         </tr>
    234         <tr>
    235           <td class="paramkey"></td>
    236           <td></td>
    237           <td class="paramtype"><a class="el" href="structrs__sampler.html">rs_sampler</a>&#160;</td>
    238           <td class="paramname">&#160;</td>
    239         </tr>
    240         <tr>
    241           <td></td>
    242           <td>)</td>
    243           <td></td><td></td>
    244         </tr>
    245       </table>
    246 </div>
    247 <div class="memdoc">
    248 <p>Bind a new Sampler object to a ProgramFragment. The sampler will operate on the texture bound at the matching slot.</p>
    249 <dl><dt><b>Parameters:</b></dt><dd>
    250   <table class="params">
    251     <tr><td class="paramname">slot</td><td></td></tr>
    252   </table>
    253   </dd>
    254 </dl>
    255 
    256 </div>
    257 </div>
    258 <a class="anchor" id="a1694eb5489bd3a444da921dbf16aeeb5"></a><!-- doxytag: member="rs_graphics.rsh::rsgBindTexture" ref="a1694eb5489bd3a444da921dbf16aeeb5" args="(rs_program_fragment, uint slot, rs_allocation)" -->
    259 <div class="memitem">
    260 <div class="memproto">
    261       <table class="memname">
    262         <tr>
    263           <td class="memname">void rsgBindTexture </td>
    264           <td>(</td>
    265           <td class="paramtype"><a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>&#160;</td>
    266           <td class="paramname">, </td>
    267         </tr>
    268         <tr>
    269           <td class="paramkey"></td>
    270           <td></td>
    271           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    272           <td class="paramname"><em>slot</em>, </td>
    273         </tr>
    274         <tr>
    275           <td class="paramkey"></td>
    276           <td></td>
    277           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    278           <td class="paramname">&#160;</td>
    279         </tr>
    280         <tr>
    281           <td></td>
    282           <td>)</td>
    283           <td></td><td></td>
    284         </tr>
    285       </table>
    286 </div>
    287 <div class="memdoc">
    288 <p>Bind a new Allocation object to a ProgramFragment. The Allocation must be a valid texture for the Program. The sampling of the texture will be controled by the Sampler bound at the matching slot.</p>
    289 <dl><dt><b>Parameters:</b></dt><dd>
    290   <table class="params">
    291     <tr><td class="paramname">slot</td><td></td></tr>
    292   </table>
    293   </dd>
    294 </dl>
    295 
    296 </div>
    297 </div>
    298 <a class="anchor" id="a147674fed92745fbb5c64a6300ca3c49"></a><!-- doxytag: member="rs_graphics.rsh::rsgClearColor" ref="a147674fed92745fbb5c64a6300ca3c49" args="(float r, float g, float b, float a)" -->
    299 <div class="memitem">
    300 <div class="memproto">
    301       <table class="memname">
    302         <tr>
    303           <td class="memname">void rsgClearColor </td>
    304           <td>(</td>
    305           <td class="paramtype">float&#160;</td>
    306           <td class="paramname"><em>r</em>, </td>
    307         </tr>
    308         <tr>
    309           <td class="paramkey"></td>
    310           <td></td>
    311           <td class="paramtype">float&#160;</td>
    312           <td class="paramname"><em>g</em>, </td>
    313         </tr>
    314         <tr>
    315           <td class="paramkey"></td>
    316           <td></td>
    317           <td class="paramtype">float&#160;</td>
    318           <td class="paramname"><em>b</em>, </td>
    319         </tr>
    320         <tr>
    321           <td class="paramkey"></td>
    322           <td></td>
    323           <td class="paramtype">float&#160;</td>
    324           <td class="paramname"><em>a</em>&#160;</td>
    325         </tr>
    326         <tr>
    327           <td></td>
    328           <td>)</td>
    329           <td></td><td></td>
    330         </tr>
    331       </table>
    332 </div>
    333 <div class="memdoc">
    334 <p>Clears the rendering surface to the specified color.</p>
    335 <dl><dt><b>Parameters:</b></dt><dd>
    336   <table class="params">
    337     <tr><td class="paramname">r</td><td></td></tr>
    338     <tr><td class="paramname">g</td><td></td></tr>
    339     <tr><td class="paramname">b</td><td></td></tr>
    340     <tr><td class="paramname">a</td><td></td></tr>
    341   </table>
    342   </dd>
    343 </dl>
    344 
    345 </div>
    346 </div>
    347 <a class="anchor" id="a4bedb06e8facd587e3eacd746fe3e727"></a><!-- doxytag: member="rs_graphics.rsh::rsgClearDepth" ref="a4bedb06e8facd587e3eacd746fe3e727" args="(float value)" -->
    348 <div class="memitem">
    349 <div class="memproto">
    350       <table class="memname">
    351         <tr>
    352           <td class="memname">void rsgClearDepth </td>
    353           <td>(</td>
    354           <td class="paramtype">float&#160;</td>
    355           <td class="paramname"><em>value</em></td><td>)</td>
    356           <td></td>
    357         </tr>
    358       </table>
    359 </div>
    360 <div class="memdoc">
    361 <p>Clears the depth suface to the specified value. </p>
    362 
    363 </div>
    364 </div>
    365 <a class="anchor" id="a6f8b87c994810908fbe5e01f8f63f9af"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawMesh" ref="a6f8b87c994810908fbe5e01f8f63f9af" args="(rs_mesh ism)" -->
    366 <div class="memitem">
    367 <div class="memproto">
    368       <table class="memname">
    369         <tr>
    370           <td class="memname">void rsgDrawMesh </td>
    371           <td>(</td>
    372           <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a>&#160;</td>
    373           <td class="paramname"><em>ism</em></td><td>)</td>
    374           <td></td>
    375         </tr>
    376       </table>
    377 </div>
    378 <div class="memdoc">
    379 <p>Draw a mesh using the current context state. The whole mesh is rendered.</p>
    380 <dl><dt><b>Parameters:</b></dt><dd>
    381   <table class="params">
    382     <tr><td class="paramname">ism</td><td></td></tr>
    383   </table>
    384   </dd>
    385 </dl>
    386 
    387 </div>
    388 </div>
    389 <a class="anchor" id="a621abfc693fed028b5dc74826453142d"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawMesh" ref="a621abfc693fed028b5dc74826453142d" args="(rs_mesh ism, uint primitiveIndex)" -->
    390 <div class="memitem">
    391 <div class="memproto">
    392       <table class="memname">
    393         <tr>
    394           <td class="memname">void rsgDrawMesh </td>
    395           <td>(</td>
    396           <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a>&#160;</td>
    397           <td class="paramname"><em>ism</em>, </td>
    398         </tr>
    399         <tr>
    400           <td class="paramkey"></td>
    401           <td></td>
    402           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    403           <td class="paramname"><em>primitiveIndex</em>&#160;</td>
    404         </tr>
    405         <tr>
    406           <td></td>
    407           <td>)</td>
    408           <td></td><td></td>
    409         </tr>
    410       </table>
    411 </div>
    412 <div class="memdoc">
    413 <p>Draw part of a mesh using the current context state. </p>
    414 <dl><dt><b>Parameters:</b></dt><dd>
    415   <table class="params">
    416     <tr><td class="paramname">ism</td><td>mesh object to render </td></tr>
    417     <tr><td class="paramname">primitiveIndex</td><td>for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw. </td></tr>
    418   </table>
    419   </dd>
    420 </dl>
    421 
    422 </div>
    423 </div>
    424 <a class="anchor" id="ab2704a6d16e3d7983524d0a8413c1b8a"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawMesh" ref="ab2704a6d16e3d7983524d0a8413c1b8a" args="(rs_mesh ism, uint primitiveIndex, uint start, uint len)" -->
    425 <div class="memitem">
    426 <div class="memproto">
    427       <table class="memname">
    428         <tr>
    429           <td class="memname">void rsgDrawMesh </td>
    430           <td>(</td>
    431           <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a>&#160;</td>
    432           <td class="paramname"><em>ism</em>, </td>
    433         </tr>
    434         <tr>
    435           <td class="paramkey"></td>
    436           <td></td>
    437           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    438           <td class="paramname"><em>primitiveIndex</em>, </td>
    439         </tr>
    440         <tr>
    441           <td class="paramkey"></td>
    442           <td></td>
    443           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    444           <td class="paramname"><em>start</em>, </td>
    445         </tr>
    446         <tr>
    447           <td class="paramkey"></td>
    448           <td></td>
    449           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a>&#160;</td>
    450           <td class="paramname"><em>len</em>&#160;</td>
    451         </tr>
    452         <tr>
    453           <td></td>
    454           <td>)</td>
    455           <td></td><td></td>
    456         </tr>
    457       </table>
    458 </div>
    459 <div class="memdoc">
    460 <p>Draw specified index range of part of a mesh using the current context state. </p>
    461 <dl><dt><b>Parameters:</b></dt><dd>
    462   <table class="params">
    463     <tr><td class="paramname">ism</td><td>mesh object to render </td></tr>
    464     <tr><td class="paramname">primitiveIndex</td><td>for meshes that contain multiple primitive groups this parameter specifies the index of the group to draw. </td></tr>
    465     <tr><td class="paramname">start</td><td>starting index in the range </td></tr>
    466     <tr><td class="paramname">len</td><td>number of indices to draw </td></tr>
    467   </table>
    468   </dd>
    469 </dl>
    470 
    471 </div>
    472 </div>
    473 <a class="anchor" id="ad6953da0349e58547b08b8ce174ed3fc"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawQuad" ref="ad6953da0349e58547b08b8ce174ed3fc" args="(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4)" -->
    474 <div class="memitem">
    475 <div class="memproto">
    476       <table class="memname">
    477         <tr>
    478           <td class="memname">void rsgDrawQuad </td>
    479           <td>(</td>
    480           <td class="paramtype">float&#160;</td>
    481           <td class="paramname"><em>x1</em>, </td>
    482         </tr>
    483         <tr>
    484           <td class="paramkey"></td>
    485           <td></td>
    486           <td class="paramtype">float&#160;</td>
    487           <td class="paramname"><em>y1</em>, </td>
    488         </tr>
    489         <tr>
    490           <td class="paramkey"></td>
    491           <td></td>
    492           <td class="paramtype">float&#160;</td>
    493           <td class="paramname"><em>z1</em>, </td>
    494         </tr>
    495         <tr>
    496           <td class="paramkey"></td>
    497           <td></td>
    498           <td class="paramtype">float&#160;</td>
    499           <td class="paramname"><em>x2</em>, </td>
    500         </tr>
    501         <tr>
    502           <td class="paramkey"></td>
    503           <td></td>
    504           <td class="paramtype">float&#160;</td>
    505           <td class="paramname"><em>y2</em>, </td>
    506         </tr>
    507         <tr>
    508           <td class="paramkey"></td>
    509           <td></td>
    510           <td class="paramtype">float&#160;</td>
    511           <td class="paramname"><em>z2</em>, </td>
    512         </tr>
    513         <tr>
    514           <td class="paramkey"></td>
    515           <td></td>
    516           <td class="paramtype">float&#160;</td>
    517           <td class="paramname"><em>x3</em>, </td>
    518         </tr>
    519         <tr>
    520           <td class="paramkey"></td>
    521           <td></td>
    522           <td class="paramtype">float&#160;</td>
    523           <td class="paramname"><em>y3</em>, </td>
    524         </tr>
    525         <tr>
    526           <td class="paramkey"></td>
    527           <td></td>
    528           <td class="paramtype">float&#160;</td>
    529           <td class="paramname"><em>z3</em>, </td>
    530         </tr>
    531         <tr>
    532           <td class="paramkey"></td>
    533           <td></td>
    534           <td class="paramtype">float&#160;</td>
    535           <td class="paramname"><em>x4</em>, </td>
    536         </tr>
    537         <tr>
    538           <td class="paramkey"></td>
    539           <td></td>
    540           <td class="paramtype">float&#160;</td>
    541           <td class="paramname"><em>y4</em>, </td>
    542         </tr>
    543         <tr>
    544           <td class="paramkey"></td>
    545           <td></td>
    546           <td class="paramtype">float&#160;</td>
    547           <td class="paramname"><em>z4</em>&#160;</td>
    548         </tr>
    549         <tr>
    550           <td></td>
    551           <td>)</td>
    552           <td></td><td></td>
    553         </tr>
    554       </table>
    555 </div>
    556 <div class="memdoc">
    557 <p>Low performance utility function for drawing a simple quad. Not intended for drawing large quantities of geometry.</p>
    558 <dl><dt><b>Parameters:</b></dt><dd>
    559   <table class="params">
    560     <tr><td class="paramname">x1</td><td></td></tr>
    561     <tr><td class="paramname">y1</td><td></td></tr>
    562     <tr><td class="paramname">z1</td><td></td></tr>
    563     <tr><td class="paramname">x2</td><td></td></tr>
    564     <tr><td class="paramname">y2</td><td></td></tr>
    565     <tr><td class="paramname">z2</td><td></td></tr>
    566     <tr><td class="paramname">x3</td><td></td></tr>
    567     <tr><td class="paramname">y3</td><td></td></tr>
    568     <tr><td class="paramname">z3</td><td></td></tr>
    569     <tr><td class="paramname">x4</td><td></td></tr>
    570     <tr><td class="paramname">y4</td><td></td></tr>
    571     <tr><td class="paramname">z4</td><td></td></tr>
    572   </table>
    573   </dd>
    574 </dl>
    575 
    576 </div>
    577 </div>
    578 <a class="anchor" id="afb98a59bb9f878f0a09459567c269e64"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawQuadTexCoords" ref="afb98a59bb9f878f0a09459567c269e64" args="(float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float x4, float y4, float z4, float u4, float v4)" -->
    579 <div class="memitem">
    580 <div class="memproto">
    581       <table class="memname">
    582         <tr>
    583           <td class="memname">void rsgDrawQuadTexCoords </td>
    584           <td>(</td>
    585           <td class="paramtype">float&#160;</td>
    586           <td class="paramname"><em>x1</em>, </td>
    587         </tr>
    588         <tr>
    589           <td class="paramkey"></td>
    590           <td></td>
    591           <td class="paramtype">float&#160;</td>
    592           <td class="paramname"><em>y1</em>, </td>
    593         </tr>
    594         <tr>
    595           <td class="paramkey"></td>
    596           <td></td>
    597           <td class="paramtype">float&#160;</td>
    598           <td class="paramname"><em>z1</em>, </td>
    599         </tr>
    600         <tr>
    601           <td class="paramkey"></td>
    602           <td></td>
    603           <td class="paramtype">float&#160;</td>
    604           <td class="paramname"><em>u1</em>, </td>
    605         </tr>
    606         <tr>
    607           <td class="paramkey"></td>
    608           <td></td>
    609           <td class="paramtype">float&#160;</td>
    610           <td class="paramname"><em>v1</em>, </td>
    611         </tr>
    612         <tr>
    613           <td class="paramkey"></td>
    614           <td></td>
    615           <td class="paramtype">float&#160;</td>
    616           <td class="paramname"><em>x2</em>, </td>
    617         </tr>
    618         <tr>
    619           <td class="paramkey"></td>
    620           <td></td>
    621           <td class="paramtype">float&#160;</td>
    622           <td class="paramname"><em>y2</em>, </td>
    623         </tr>
    624         <tr>
    625           <td class="paramkey"></td>
    626           <td></td>
    627           <td class="paramtype">float&#160;</td>
    628           <td class="paramname"><em>z2</em>, </td>
    629         </tr>
    630         <tr>
    631           <td class="paramkey"></td>
    632           <td></td>
    633           <td class="paramtype">float&#160;</td>
    634           <td class="paramname"><em>u2</em>, </td>
    635         </tr>
    636         <tr>
    637           <td class="paramkey"></td>
    638           <td></td>
    639           <td class="paramtype">float&#160;</td>
    640           <td class="paramname"><em>v2</em>, </td>
    641         </tr>
    642         <tr>
    643           <td class="paramkey"></td>
    644           <td></td>
    645           <td class="paramtype">float&#160;</td>
    646           <td class="paramname"><em>x3</em>, </td>
    647         </tr>
    648         <tr>
    649           <td class="paramkey"></td>
    650           <td></td>
    651           <td class="paramtype">float&#160;</td>
    652           <td class="paramname"><em>y3</em>, </td>
    653         </tr>
    654         <tr>
    655           <td class="paramkey"></td>
    656           <td></td>
    657           <td class="paramtype">float&#160;</td>
    658           <td class="paramname"><em>z3</em>, </td>
    659         </tr>
    660         <tr>
    661           <td class="paramkey"></td>
    662           <td></td>
    663           <td class="paramtype">float&#160;</td>
    664           <td class="paramname"><em>u3</em>, </td>
    665         </tr>
    666         <tr>
    667           <td class="paramkey"></td>
    668           <td></td>
    669           <td class="paramtype">float&#160;</td>
    670           <td class="paramname"><em>v3</em>, </td>
    671         </tr>
    672         <tr>
    673           <td class="paramkey"></td>
    674           <td></td>
    675           <td class="paramtype">float&#160;</td>
    676           <td class="paramname"><em>x4</em>, </td>
    677         </tr>
    678         <tr>
    679           <td class="paramkey"></td>
    680           <td></td>
    681           <td class="paramtype">float&#160;</td>
    682           <td class="paramname"><em>y4</em>, </td>
    683         </tr>
    684         <tr>
    685           <td class="paramkey"></td>
    686           <td></td>
    687           <td class="paramtype">float&#160;</td>
    688           <td class="paramname"><em>z4</em>, </td>
    689         </tr>
    690         <tr>
    691           <td class="paramkey"></td>
    692           <td></td>
    693           <td class="paramtype">float&#160;</td>
    694           <td class="paramname"><em>u4</em>, </td>
    695         </tr>
    696         <tr>
    697           <td class="paramkey"></td>
    698           <td></td>
    699           <td class="paramtype">float&#160;</td>
    700           <td class="paramname"><em>v4</em>&#160;</td>
    701         </tr>
    702         <tr>
    703           <td></td>
    704           <td>)</td>
    705           <td></td><td></td>
    706         </tr>
    707       </table>
    708 </div>
    709 <div class="memdoc">
    710 <p>Low performance utility function for drawing a textured quad. Not intended for drawing large quantities of geometry.</p>
    711 <dl><dt><b>Parameters:</b></dt><dd>
    712   <table class="params">
    713     <tr><td class="paramname">x1</td><td></td></tr>
    714     <tr><td class="paramname">y1</td><td></td></tr>
    715     <tr><td class="paramname">z1</td><td></td></tr>
    716     <tr><td class="paramname">u1</td><td></td></tr>
    717     <tr><td class="paramname">v1</td><td></td></tr>
    718     <tr><td class="paramname">x2</td><td></td></tr>
    719     <tr><td class="paramname">y2</td><td></td></tr>
    720     <tr><td class="paramname">z2</td><td></td></tr>
    721     <tr><td class="paramname">u2</td><td></td></tr>
    722     <tr><td class="paramname">v2</td><td></td></tr>
    723     <tr><td class="paramname">x3</td><td></td></tr>
    724     <tr><td class="paramname">y3</td><td></td></tr>
    725     <tr><td class="paramname">z3</td><td></td></tr>
    726     <tr><td class="paramname">u3</td><td></td></tr>
    727     <tr><td class="paramname">v3</td><td></td></tr>
    728     <tr><td class="paramname">x4</td><td></td></tr>
    729     <tr><td class="paramname">y4</td><td></td></tr>
    730     <tr><td class="paramname">z4</td><td></td></tr>
    731     <tr><td class="paramname">u4</td><td></td></tr>
    732     <tr><td class="paramname">v4</td><td></td></tr>
    733   </table>
    734   </dd>
    735 </dl>
    736 
    737 </div>
    738 </div>
    739 <a class="anchor" id="a80c51849bf12ec6c699c23c3fa3e6208"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawRect" ref="a80c51849bf12ec6c699c23c3fa3e6208" args="(float x1, float y1, float x2, float y2, float z)" -->
    740 <div class="memitem">
    741 <div class="memproto">
    742       <table class="memname">
    743         <tr>
    744           <td class="memname">void rsgDrawRect </td>
    745           <td>(</td>
    746           <td class="paramtype">float&#160;</td>
    747           <td class="paramname"><em>x1</em>, </td>
    748         </tr>
    749         <tr>
    750           <td class="paramkey"></td>
    751           <td></td>
    752           <td class="paramtype">float&#160;</td>
    753           <td class="paramname"><em>y1</em>, </td>
    754         </tr>
    755         <tr>
    756           <td class="paramkey"></td>
    757           <td></td>
    758           <td class="paramtype">float&#160;</td>
    759           <td class="paramname"><em>x2</em>, </td>
    760         </tr>
    761         <tr>
    762           <td class="paramkey"></td>
    763           <td></td>
    764           <td class="paramtype">float&#160;</td>
    765           <td class="paramname"><em>y2</em>, </td>
    766         </tr>
    767         <tr>
    768           <td class="paramkey"></td>
    769           <td></td>
    770           <td class="paramtype">float&#160;</td>
    771           <td class="paramname"><em>z</em>&#160;</td>
    772         </tr>
    773         <tr>
    774           <td></td>
    775           <td>)</td>
    776           <td></td><td></td>
    777         </tr>
    778       </table>
    779 </div>
    780 <div class="memdoc">
    781 <p>Low performance utility function for drawing a simple rectangle. Not intended for drawing large quantities of geometry.</p>
    782 <dl><dt><b>Parameters:</b></dt><dd>
    783   <table class="params">
    784     <tr><td class="paramname">x1</td><td></td></tr>
    785     <tr><td class="paramname">y1</td><td></td></tr>
    786     <tr><td class="paramname">x2</td><td></td></tr>
    787     <tr><td class="paramname">y2</td><td></td></tr>
    788     <tr><td class="paramname">z</td><td></td></tr>
    789   </table>
    790   </dd>
    791 </dl>
    792 
    793 </div>
    794 </div>
    795 <a class="anchor" id="a07d15127330fa1dff6c99b0d7d14e65e"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawSpriteScreenspace" ref="a07d15127330fa1dff6c99b0d7d14e65e" args="(float x, float y, float z, float w, float h)" -->
    796 <div class="memitem">
    797 <div class="memproto">
    798       <table class="memname">
    799         <tr>
    800           <td class="memname">void rsgDrawSpriteScreenspace </td>
    801           <td>(</td>
    802           <td class="paramtype">float&#160;</td>
    803           <td class="paramname"><em>x</em>, </td>
    804         </tr>
    805         <tr>
    806           <td class="paramkey"></td>
    807           <td></td>
    808           <td class="paramtype">float&#160;</td>
    809           <td class="paramname"><em>y</em>, </td>
    810         </tr>
    811         <tr>
    812           <td class="paramkey"></td>
    813           <td></td>
    814           <td class="paramtype">float&#160;</td>
    815           <td class="paramname"><em>z</em>, </td>
    816         </tr>
    817         <tr>
    818           <td class="paramkey"></td>
    819           <td></td>
    820           <td class="paramtype">float&#160;</td>
    821           <td class="paramname"><em>w</em>, </td>
    822         </tr>
    823         <tr>
    824           <td class="paramkey"></td>
    825           <td></td>
    826           <td class="paramtype">float&#160;</td>
    827           <td class="paramname"><em>h</em>&#160;</td>
    828         </tr>
    829         <tr>
    830           <td></td>
    831           <td>)</td>
    832           <td></td><td></td>
    833         </tr>
    834       </table>
    835 </div>
    836 <div class="memdoc">
    837 <p>Low performance function for drawing rectangles in screenspace. This function uses the default passthough ProgramVertex. Any bound ProgramVertex is ignored. This function has considerable overhead and should not be used for drawing in shipping applications.</p>
    838 <dl><dt><b>Parameters:</b></dt><dd>
    839   <table class="params">
    840     <tr><td class="paramname">x</td><td></td></tr>
    841     <tr><td class="paramname">y</td><td></td></tr>
    842     <tr><td class="paramname">z</td><td></td></tr>
    843     <tr><td class="paramname">w</td><td></td></tr>
    844     <tr><td class="paramname">h</td><td></td></tr>
    845   </table>
    846   </dd>
    847 </dl>
    848 
    849 </div>
    850 </div>
    851 <a class="anchor" id="afaec82492762e62cad1ff53ada479b14"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawText" ref="afaec82492762e62cad1ff53ada479b14" args="(const char *, int x, int y)" -->
    852 <div class="memitem">
    853 <div class="memproto">
    854       <table class="memname">
    855         <tr>
    856           <td class="memname">void rsgDrawText </td>
    857           <td>(</td>
    858           <td class="paramtype">const char *&#160;</td>
    859           <td class="paramname">, </td>
    860         </tr>
    861         <tr>
    862           <td class="paramkey"></td>
    863           <td></td>
    864           <td class="paramtype">int&#160;</td>
    865           <td class="paramname"><em>x</em>, </td>
    866         </tr>
    867         <tr>
    868           <td class="paramkey"></td>
    869           <td></td>
    870           <td class="paramtype">int&#160;</td>
    871           <td class="paramname"><em>y</em>&#160;</td>
    872         </tr>
    873         <tr>
    874           <td></td>
    875           <td>)</td>
    876           <td></td><td></td>
    877         </tr>
    878       </table>
    879 </div>
    880 <div class="memdoc">
    881 <p>Draws text given a string and location </p>
    882 
    883 </div>
    884 </div>
    885 <a class="anchor" id="ac5e84fd253b4b1d2b0e11a7a0a7df945"></a><!-- doxytag: member="rs_graphics.rsh::rsgDrawText" ref="ac5e84fd253b4b1d2b0e11a7a0a7df945" args="(rs_allocation, int x, int y)" -->
    886 <div class="memitem">
    887 <div class="memproto">
    888       <table class="memname">
    889         <tr>
    890           <td class="memname">void rsgDrawText </td>
    891           <td>(</td>
    892           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
    893           <td class="paramname">, </td>
    894         </tr>
    895         <tr>
    896           <td class="paramkey"></td>
    897           <td></td>
    898           <td class="paramtype">int&#160;</td>
    899           <td class="paramname"><em>x</em>, </td>
    900         </tr>
    901         <tr>
    902           <td class="paramkey"></td>
    903           <td></td>
    904           <td class="paramtype">int&#160;</td>
    905           <td class="paramname"><em>y</em>&#160;</td>
    906         </tr>
    907         <tr>
    908           <td></td>
    909           <td>)</td>
    910           <td></td><td></td>
    911         </tr>
    912       </table>
    913 </div>
    914 <div class="memdoc">
    915 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
    916 
    917 </div>
    918 </div>
    919 <a class="anchor" id="abda8c344092ed6310c7a8f353a6df876"></a><!-- doxytag: member="rs_graphics.rsh::rsgFontColor" ref="abda8c344092ed6310c7a8f353a6df876" args="(float r, float g, float b, float a)" -->
    920 <div class="memitem">
    921 <div class="memproto">
    922       <table class="memname">
    923         <tr>
    924           <td class="memname">void rsgFontColor </td>
    925           <td>(</td>
    926           <td class="paramtype">float&#160;</td>
    927           <td class="paramname"><em>r</em>, </td>
    928         </tr>
    929         <tr>
    930           <td class="paramkey"></td>
    931           <td></td>
    932           <td class="paramtype">float&#160;</td>
    933           <td class="paramname"><em>g</em>, </td>
    934         </tr>
    935         <tr>
    936           <td class="paramkey"></td>
    937           <td></td>
    938           <td class="paramtype">float&#160;</td>
    939           <td class="paramname"><em>b</em>, </td>
    940         </tr>
    941         <tr>
    942           <td class="paramkey"></td>
    943           <td></td>
    944           <td class="paramtype">float&#160;</td>
    945           <td class="paramname"><em>a</em>&#160;</td>
    946         </tr>
    947         <tr>
    948           <td></td>
    949           <td>)</td>
    950           <td></td><td></td>
    951         </tr>
    952       </table>
    953 </div>
    954 <div class="memdoc">
    955 <p>Sets the font color for all subsequent rendering calls </p>
    956 <dl><dt><b>Parameters:</b></dt><dd>
    957   <table class="params">
    958     <tr><td class="paramname">r</td><td>red component </td></tr>
    959     <tr><td class="paramname">g</td><td>green component </td></tr>
    960     <tr><td class="paramname">b</td><td>blue component </td></tr>
    961     <tr><td class="paramname">a</td><td>alpha component </td></tr>
    962   </table>
    963   </dd>
    964 </dl>
    965 
    966 </div>
    967 </div>
    968 <a class="anchor" id="a7e6565cd5d5e44f442a8bf8ba68f4681"></a><!-- doxytag: member="rs_graphics.rsh::rsgGetHeight" ref="a7e6565cd5d5e44f442a8bf8ba68f4681" args="(void)" -->
    969 <div class="memitem">
    970 <div class="memproto">
    971       <table class="memname">
    972         <tr>
    973           <td class="memname"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> rsgGetHeight </td>
    974           <td>(</td>
    975           <td class="paramtype">void&#160;</td>
    976           <td class="paramname"></td><td>)</td>
    977           <td></td>
    978         </tr>
    979       </table>
    980 </div>
    981 <div class="memdoc">
    982 <p>Get the height of the current rendering surface.</p>
    983 <dl class="return"><dt><b>Returns:</b></dt><dd>uint </dd></dl>
    984 
    985 </div>
    986 </div>
    987 <a class="anchor" id="a67f4ed1ca4bba27d5c952ada89cd0717"></a><!-- doxytag: member="rs_graphics.rsh::rsgGetWidth" ref="a67f4ed1ca4bba27d5c952ada89cd0717" args="(void)" -->
    988 <div class="memitem">
    989 <div class="memproto">
    990       <table class="memname">
    991         <tr>
    992           <td class="memname"><a class="el" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> rsgGetWidth </td>
    993           <td>(</td>
    994           <td class="paramtype">void&#160;</td>
    995           <td class="paramname"></td><td>)</td>
    996           <td></td>
    997         </tr>
    998       </table>
    999 </div>
   1000 <div class="memdoc">
   1001 <p>Get the width of the current rendering surface.</p>
   1002 <dl class="return"><dt><b>Returns:</b></dt><dd>uint </dd></dl>
   1003 
   1004 </div>
   1005 </div>
   1006 <a class="anchor" id="a5c599f4ea989f3d0616cbf8e983688c4"></a><!-- doxytag: member="rs_graphics.rsh::rsgMeasureText" ref="a5c599f4ea989f3d0616cbf8e983688c4" args="(const char *, int *left, int *right, int *top, int *bottom)" -->
   1007 <div class="memitem">
   1008 <div class="memproto">
   1009       <table class="memname">
   1010         <tr>
   1011           <td class="memname">void rsgMeasureText </td>
   1012           <td>(</td>
   1013           <td class="paramtype">const char *&#160;</td>
   1014           <td class="paramname">, </td>
   1015         </tr>
   1016         <tr>
   1017           <td class="paramkey"></td>
   1018           <td></td>
   1019           <td class="paramtype">int *&#160;</td>
   1020           <td class="paramname"><em>left</em>, </td>
   1021         </tr>
   1022         <tr>
   1023           <td class="paramkey"></td>
   1024           <td></td>
   1025           <td class="paramtype">int *&#160;</td>
   1026           <td class="paramname"><em>right</em>, </td>
   1027         </tr>
   1028         <tr>
   1029           <td class="paramkey"></td>
   1030           <td></td>
   1031           <td class="paramtype">int *&#160;</td>
   1032           <td class="paramname"><em>top</em>, </td>
   1033         </tr>
   1034         <tr>
   1035           <td class="paramkey"></td>
   1036           <td></td>
   1037           <td class="paramtype">int *&#160;</td>
   1038           <td class="paramname"><em>bottom</em>&#160;</td>
   1039         </tr>
   1040         <tr>
   1041           <td></td>
   1042           <td>)</td>
   1043           <td></td><td></td>
   1044         </tr>
   1045       </table>
   1046 </div>
   1047 <div class="memdoc">
   1048 <p>Returns the bounding box of the text relative to (0, 0) Any of left, right, top, bottom could be NULL </p>
   1049 
   1050 </div>
   1051 </div>
   1052 <a class="anchor" id="a2abb920283b1dafa9059de488143a870"></a><!-- doxytag: member="rs_graphics.rsh::rsgMeasureText" ref="a2abb920283b1dafa9059de488143a870" args="(rs_allocation, int *left, int *right, int *top, int *bottom)" -->
   1053 <div class="memitem">
   1054 <div class="memproto">
   1055       <table class="memname">
   1056         <tr>
   1057           <td class="memname">void rsgMeasureText </td>
   1058           <td>(</td>
   1059           <td class="paramtype"><a class="el" href="structrs__allocation.html">rs_allocation</a>&#160;</td>
   1060           <td class="paramname">, </td>
   1061         </tr>
   1062         <tr>
   1063           <td class="paramkey"></td>
   1064           <td></td>
   1065           <td class="paramtype">int *&#160;</td>
   1066           <td class="paramname"><em>left</em>, </td>
   1067         </tr>
   1068         <tr>
   1069           <td class="paramkey"></td>
   1070           <td></td>
   1071           <td class="paramtype">int *&#160;</td>
   1072           <td class="paramname"><em>right</em>, </td>
   1073         </tr>
   1074         <tr>
   1075           <td class="paramkey"></td>
   1076           <td></td>
   1077           <td class="paramtype">int *&#160;</td>
   1078           <td class="paramname"><em>top</em>, </td>
   1079         </tr>
   1080         <tr>
   1081           <td class="paramkey"></td>
   1082           <td></td>
   1083           <td class="paramtype">int *&#160;</td>
   1084           <td class="paramname"><em>bottom</em>&#160;</td>
   1085         </tr>
   1086         <tr>
   1087           <td></td>
   1088           <td>)</td>
   1089           <td></td><td></td>
   1090         </tr>
   1091       </table>
   1092 </div>
   1093 <div class="memdoc">
   1094 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
   1095 
   1096 </div>
   1097 </div>
   1098 <a class="anchor" id="a0978c54902dd1d60180f8dbb0b781105"></a><!-- doxytag: member="rs_graphics.rsh::rsgMeshComputeBoundingBox" ref="a0978c54902dd1d60180f8dbb0b781105" args="(rs_mesh mesh, float *minX, float *minY, float *minZ, float *maxX, float *maxY, float *maxZ)" -->
   1099 <div class="memitem">
   1100 <div class="memproto">
   1101       <table class="memname">
   1102         <tr>
   1103           <td class="memname">void rsgMeshComputeBoundingBox </td>
   1104           <td>(</td>
   1105           <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a>&#160;</td>
   1106           <td class="paramname"><em>mesh</em>, </td>
   1107         </tr>
   1108         <tr>
   1109           <td class="paramkey"></td>
   1110           <td></td>
   1111           <td class="paramtype">float *&#160;</td>
   1112           <td class="paramname"><em>minX</em>, </td>
   1113         </tr>
   1114         <tr>
   1115           <td class="paramkey"></td>
   1116           <td></td>
   1117           <td class="paramtype">float *&#160;</td>
   1118           <td class="paramname"><em>minY</em>, </td>
   1119         </tr>
   1120         <tr>
   1121           <td class="paramkey"></td>
   1122           <td></td>
   1123           <td class="paramtype">float *&#160;</td>
   1124           <td class="paramname"><em>minZ</em>, </td>
   1125         </tr>
   1126         <tr>
   1127           <td class="paramkey"></td>
   1128           <td></td>
   1129           <td class="paramtype">float *&#160;</td>
   1130           <td class="paramname"><em>maxX</em>, </td>
   1131         </tr>
   1132         <tr>
   1133           <td class="paramkey"></td>
   1134           <td></td>
   1135           <td class="paramtype">float *&#160;</td>
   1136           <td class="paramname"><em>maxY</em>, </td>
   1137         </tr>
   1138         <tr>
   1139           <td class="paramkey"></td>
   1140           <td></td>
   1141           <td class="paramtype">float *&#160;</td>
   1142           <td class="paramname"><em>maxZ</em>&#160;</td>
   1143         </tr>
   1144         <tr>
   1145           <td></td>
   1146           <td>)</td>
   1147           <td></td><td></td>
   1148         </tr>
   1149       </table>
   1150 </div>
   1151 <div class="memdoc">
   1152 <p>Computes an axis aligned bounding box of a mesh object </p>
   1153 
   1154 </div>
   1155 </div>
   1156 <a class="anchor" id="a6058b6b6c8b94f96f03dc8bca6a2090b"></a><!-- doxytag: member="rs_graphics.rsh::rsgMeshComputeBoundingBox" ref="a6058b6b6c8b94f96f03dc8bca6a2090b" args="(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax)" -->
   1157 <div class="memitem">
   1158 <div class="memproto">
   1159       <table class="memname">
   1160         <tr>
   1161           <td class="memname">static __inline__ void rsgMeshComputeBoundingBox </td>
   1162           <td>(</td>
   1163           <td class="paramtype"><a class="el" href="structrs__mesh.html">rs_mesh</a>&#160;</td>
   1164           <td class="paramname"><em>mesh</em>, </td>
   1165         </tr>
   1166         <tr>
   1167           <td class="paramkey"></td>
   1168           <td></td>
   1169           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *&#160;</td>
   1170           <td class="paramname"><em>bBoxMin</em>, </td>
   1171         </tr>
   1172         <tr>
   1173           <td class="paramkey"></td>
   1174           <td></td>
   1175           <td class="paramtype"><a class="el" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *&#160;</td>
   1176           <td class="paramname"><em>bBoxMax</em>&#160;</td>
   1177         </tr>
   1178         <tr>
   1179           <td></td>
   1180           <td>)</td>
   1181           <td></td><td><code> [static]</code></td>
   1182         </tr>
   1183       </table>
   1184 </div>
   1185 <div class="memdoc">
   1186 <p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
   1187 
   1188 <p>Definition at line <a class="el" href="rs__graphics_8rsh_source.html#l00380">380</a> of file <a class="el" href="rs__graphics_8rsh_source.html">rs_graphics.rsh</a>.</p>
   1189 
   1190 </div>
   1191 </div>
   1192 <a class="anchor" id="a35ac8c3759e25047e6a458c15520c887"></a><!-- doxytag: member="rs_graphics.rsh::rsgProgramFragmentConstantColor" ref="a35ac8c3759e25047e6a458c15520c887" args="(rs_program_fragment pf, float r, float g, float b, float a)" -->
   1193 <div class="memitem">
   1194 <div class="memproto">
   1195       <table class="memname">
   1196         <tr>
   1197           <td class="memname">void rsgProgramFragmentConstantColor </td>
   1198           <td>(</td>
   1199           <td class="paramtype"><a class="el" href="structrs__program__fragment.html">rs_program_fragment</a>&#160;</td>
   1200           <td class="paramname"><em>pf</em>, </td>
   1201         </tr>
   1202         <tr>
   1203           <td class="paramkey"></td>
   1204           <td></td>
   1205           <td class="paramtype">float&#160;</td>
   1206           <td class="paramname"><em>r</em>, </td>
   1207         </tr>
   1208         <tr>
   1209           <td class="paramkey"></td>
   1210           <td></td>
   1211           <td class="paramtype">float&#160;</td>
   1212           <td class="paramname"><em>g</em>, </td>
   1213         </tr>
   1214         <tr>
   1215           <td class="paramkey"></td>
   1216           <td></td>
   1217           <td class="paramtype">float&#160;</td>
   1218           <td class="paramname"><em>b</em>, </td>
   1219         </tr>
   1220         <tr>
   1221           <td class="paramkey"></td>
   1222           <td></td>
   1223           <td class="paramtype">float&#160;</td>
   1224           <td class="paramname"><em>a</em>&#160;</td>
   1225         </tr>
   1226         <tr>
   1227           <td></td>
   1228           <td>)</td>
   1229           <td></td><td></td>
   1230         </tr>
   1231       </table>
   1232 </div>
   1233 <div class="memdoc">
   1234 <p>Set the constant color for a fixed function emulation program.</p>
   1235 <dl><dt><b>Parameters:</b></dt><dd>
   1236   <table class="params">
   1237     <tr><td class="paramname">pf</td><td></td></tr>
   1238     <tr><td class="paramname">r</td><td></td></tr>
   1239     <tr><td class="paramname">g</td><td></td></tr>
   1240     <tr><td class="paramname">b</td><td></td></tr>
   1241     <tr><td class="paramname">a</td><td></td></tr>
   1242   </table>
   1243   </dd>
   1244 </dl>
   1245 
   1246 </div>
   1247 </div>
   1248 <a class="anchor" id="a2b767d209b36ffcd2e0fc0cf6f4c5706"></a><!-- doxytag: member="rs_graphics.rsh::rsgProgramVertexGetProjectionMatrix" ref="a2b767d209b36ffcd2e0fc0cf6f4c5706" args="(rs_matrix4x4 *proj)" -->
   1249 <div class="memitem">
   1250 <div class="memproto">
   1251       <table class="memname">
   1252         <tr>
   1253           <td class="memname">void rsgProgramVertexGetProjectionMatrix </td>
   1254           <td>(</td>
   1255           <td class="paramtype"><a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *&#160;</td>
   1256           <td class="paramname"><em>proj</em></td><td>)</td>
   1257           <td></td>
   1258         </tr>
   1259       </table>
   1260 </div>
   1261 <div class="memdoc">
   1262 <p>Get the projection matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error. </p>
   1263 <dl><dt><b>Parameters:</b></dt><dd>
   1264   <table class="params">
   1265     <tr><td class="paramname">proj</td><td>matrix to store the current projection matrix into </td></tr>
   1266   </table>
   1267   </dd>
   1268 </dl>
   1269 
   1270 </div>
   1271 </div>
   1272 <a class="anchor" id="a976b8594cccb4b94d7ce520b44d884e3"></a><!-- doxytag: member="rs_graphics.rsh::rsgProgramVertexLoadModelMatrix" ref="a976b8594cccb4b94d7ce520b44d884e3" args="(const rs_matrix4x4 *model)" -->
   1273 <div class="memitem">
   1274 <div class="memproto">
   1275       <table class="memname">
   1276         <tr>
   1277           <td class="memname">void rsgProgramVertexLoadModelMatrix </td>
   1278           <td>(</td>
   1279           <td class="paramtype">const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *&#160;</td>
   1280           <td class="paramname"><em>model</em></td><td>)</td>
   1281           <td></td>
   1282         </tr>
   1283       </table>
   1284 </div>
   1285 <div class="memdoc">
   1286 <p>Load the model matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error. </p>
   1287 <dl><dt><b>Parameters:</b></dt><dd>
   1288   <table class="params">
   1289     <tr><td class="paramname">model</td><td>model matrix </td></tr>
   1290   </table>
   1291   </dd>
   1292 </dl>
   1293 
   1294 </div>
   1295 </div>
   1296 <a class="anchor" id="a83a87d8efa3f26ed3f8fb25e49f29059"></a><!-- doxytag: member="rs_graphics.rsh::rsgProgramVertexLoadProjectionMatrix" ref="a83a87d8efa3f26ed3f8fb25e49f29059" args="(const rs_matrix4x4 *proj)" -->
   1297 <div class="memitem">
   1298 <div class="memproto">
   1299       <table class="memname">
   1300         <tr>
   1301           <td class="memname">void rsgProgramVertexLoadProjectionMatrix </td>
   1302           <td>(</td>
   1303           <td class="paramtype">const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *&#160;</td>
   1304           <td class="paramname"><em>proj</em></td><td>)</td>
   1305           <td></td>
   1306         </tr>
   1307       </table>
   1308 </div>
   1309 <div class="memdoc">
   1310 <p>Load the projection matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error. </p>
   1311 <dl><dt><b>Parameters:</b></dt><dd>
   1312   <table class="params">
   1313     <tr><td class="paramname">proj</td><td>projection matrix </td></tr>
   1314   </table>
   1315   </dd>
   1316 </dl>
   1317 
   1318 </div>
   1319 </div>
   1320 <a class="anchor" id="a377b7b394c4bf0881532b1241d4be168"></a><!-- doxytag: member="rs_graphics.rsh::rsgProgramVertexLoadTextureMatrix" ref="a377b7b394c4bf0881532b1241d4be168" args="(const rs_matrix4x4 *tex)" -->
   1321 <div class="memitem">
   1322 <div class="memproto">
   1323       <table class="memname">
   1324         <tr>
   1325           <td class="memname">void rsgProgramVertexLoadTextureMatrix </td>
   1326           <td>(</td>
   1327           <td class="paramtype">const <a class="el" href="structrs__matrix4x4.html">rs_matrix4x4</a> *&#160;</td>
   1328           <td class="paramname"><em>tex</em></td><td>)</td>
   1329           <td></td>
   1330         </tr>
   1331       </table>
   1332 </div>
   1333 <div class="memdoc">
   1334 <p>Load the texture matrix for a currently bound fixed function vertex program. Calling this function with a custom vertex shader would result in an error. </p>
   1335 <dl><dt><b>Parameters:</b></dt><dd>
   1336   <table class="params">
   1337     <tr><td class="paramname">tex</td><td>texture matrix </td></tr>
   1338   </table>
   1339   </dd>
   1340 </dl>
   1341 
   1342 </div>
   1343 </div>
   1344 </div>
   1345 
   1346 </body>
   1347 </html>
   1348