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>rs_graphics.rsh Source File</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 class="header"> 26 <div class="headertitle"> 27 <div class="title">rs_graphics.rsh</div> </div> 28 </div> 29 <div class="contents"> 30 <a href="rs__graphics_8rsh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> 31 <a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2011-2012 The Android Open Source Project</span> 32 <a name="l00003"></a>00003 <span class="comment"> *</span> 33 <a name="l00004"></a>00004 <span class="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span> 34 <a name="l00005"></a>00005 <span class="comment"> * you may not use this file except in compliance with the License.</span> 35 <a name="l00006"></a>00006 <span class="comment"> * You may obtain a copy of the License at</span> 36 <a name="l00007"></a>00007 <span class="comment"> *</span> 37 <a name="l00008"></a>00008 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span> 38 <a name="l00009"></a>00009 <span class="comment"> *</span> 39 <a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span> 40 <a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span> 41 <a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> 42 <a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span> 43 <a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span> 44 <a name="l00015"></a>00015 <span class="comment"> */</span> 45 <a name="l00016"></a>00016 46 <a name="l00023"></a>00023 <span class="preprocessor">#ifndef __RS_GRAPHICS_RSH__</span> 47 <a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __RS_GRAPHICS_RSH__</span> 48 <a name="l00025"></a>00025 <span class="preprocessor"></span> 49 <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="rs__mesh_8rsh.html" title="Mesh routines.">rs_mesh.rsh</a>"</span> 50 <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="rs__program_8rsh.html" title="Program object routines.">rs_program.rsh</a>"</span> 51 <a name="l00028"></a>00028 52 <a name="l00029"></a>00029 <span class="preprocessor">#if (defined(RS_VERSION) && (RS_VERSION >= 14))</span> 53 <a name="l00030"></a>00030 <span class="preprocessor"></span> 54 <a name="l00035"></a>00035 <span class="keyword">extern</span> <span class="keywordtype">void</span> __attribute__((overloadable)) 55 <a name="l00036"></a>00036 rsgBindColorTarget(<a class="code" href="structrs__allocation.html" title="Opaque handle to a Renderscript allocation.">rs_allocation</a> colorTarget, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot); 56 <a name="l00037"></a>00037 57 <a name="l00042"></a>00042 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 58 <a name="l00043"></a>00043 rsgClearColorTarget(<a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot); 59 <a name="l00044"></a>00044 60 <a name="l00049"></a>00049 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 61 <a name="l00050"></a>00050 rsgBindDepthTarget(<a class="code" href="structrs__allocation.html" title="Opaque handle to a Renderscript allocation.">rs_allocation</a> depthTarget); 62 <a name="l00051"></a>00051 63 <a name="l00055"></a>00055 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 64 <a name="l00056"></a>00056 rsgClearDepthTarget(<span class="keywordtype">void</span>); 65 <a name="l00057"></a>00057 66 <a name="l00062"></a>00062 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 67 <a name="l00063"></a>00063 rsgClearAllRenderTargets(<span class="keywordtype">void</span>); 68 <a name="l00064"></a>00064 69 <a name="l00068"></a>00068 extern <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> __attribute__((overloadable)) 70 <a name="l00069"></a>00069 rsgFinish(<span class="keywordtype">void</span>); 71 <a name="l00070"></a>00070 72 <a name="l00071"></a>00071 <span class="preprocessor">#endif //defined(RS_VERSION) && (RS_VERSION >= 14)</span> 73 <a name="l00072"></a>00072 <span class="preprocessor"></span> 74 <a name="l00078"></a>00078 <span class="keyword">extern</span> <span class="keywordtype">void</span> __attribute__((overloadable)) 75 <a name="l00079"></a>00079 <a class="code" href="rs__graphics_8rsh.html#a9f8deb600729a83c39c5bcaba2152b9c">rsgBindProgramFragment</a>(<a class="code" href="structrs__program__fragment.html" title="Opaque handle to a Renderscript ProgramFragment object.">rs_program_fragment</a> pf); 76 <a name="l00080"></a>00080 77 <a name="l00086"></a>00086 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 78 <a name="l00087"></a>00087 <a class="code" href="rs__graphics_8rsh.html#a34dfa6eddd7454fc1865222c5a022315">rsgBindProgramStore</a>(<a class="code" href="structrs__program__store.html" title="Opaque handle to a Renderscript ProgramStore object.">rs_program_store</a> ps); 79 <a name="l00088"></a>00088 80 <a name="l00094"></a>00094 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 81 <a name="l00095"></a>00095 <a class="code" href="rs__graphics_8rsh.html#a894e26d0d05d3ef99be65ddf98dd901c">rsgBindProgramVertex</a>(<a class="code" href="structrs__program__vertex.html" title="Opaque handle to a Renderscript ProgramVertex object.">rs_program_vertex</a> pv); 82 <a name="l00096"></a>00096 83 <a name="l00102"></a>00102 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 84 <a name="l00103"></a>00103 <a class="code" href="rs__graphics_8rsh.html#a391eb5535544f6312c724b910da6ec35">rsgBindProgramRaster</a>(<a class="code" href="structrs__program__raster.html" title="Opaque handle to a Renderscript ProgramRaster object.">rs_program_raster</a> pr); 85 <a name="l00104"></a>00104 86 <a name="l00111"></a>00111 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 87 <a name="l00112"></a>00112 <a class="code" href="rs__graphics_8rsh.html#a4ade6c5acbf6acaa1c29a1aecc6e87d3">rsgBindSampler</a>(<a class="code" href="structrs__program__fragment.html" title="Opaque handle to a Renderscript ProgramFragment object.">rs_program_fragment</a>, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, <a class="code" href="structrs__sampler.html" title="Opaque handle to a Renderscript sampler object.">rs_sampler</a>); 88 <a name="l00113"></a>00113 89 <a name="l00122"></a>00122 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 90 <a name="l00123"></a>00123 <a class="code" href="rs__graphics_8rsh.html#a1694eb5489bd3a444da921dbf16aeeb5">rsgBindTexture</a>(rs_program_fragment, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, <a class="code" href="structrs__allocation.html" title="Opaque handle to a Renderscript allocation.">rs_allocation</a>); 91 <a name="l00124"></a>00124 92 <a name="l00131"></a>00131 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 93 <a name="l00132"></a>00132 <a class="code" href="rs__graphics_8rsh.html#a83a87d8efa3f26ed3f8fb25e49f29059">rsgProgramVertexLoadProjectionMatrix</a>(const <a class="code" href="structrs__matrix4x4.html" title="4x4 float matrix">rs_matrix4x4</a> *proj); 94 <a name="l00139"></a>00139 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 95 <a name="l00140"></a>00140 <a class="code" href="rs__graphics_8rsh.html#a976b8594cccb4b94d7ce520b44d884e3">rsgProgramVertexLoadModelMatrix</a>(const <a class="code" href="structrs__matrix4x4.html" title="4x4 float matrix">rs_matrix4x4</a> *model); 96 <a name="l00147"></a>00147 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 97 <a name="l00148"></a>00148 <a class="code" href="rs__graphics_8rsh.html#a377b7b394c4bf0881532b1241d4be168">rsgProgramVertexLoadTextureMatrix</a>(const <a class="code" href="structrs__matrix4x4.html" title="4x4 float matrix">rs_matrix4x4</a> *tex); 98 <a name="l00155"></a>00155 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 99 <a name="l00156"></a>00156 <a class="code" href="rs__graphics_8rsh.html#a2b767d209b36ffcd2e0fc0cf6f4c5706">rsgProgramVertexGetProjectionMatrix</a>(<a class="code" href="structrs__matrix4x4.html" title="4x4 float matrix">rs_matrix4x4</a> *proj); 100 <a name="l00157"></a>00157 101 <a name="l00167"></a>00167 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 102 <a name="l00168"></a>00168 <a class="code" href="rs__graphics_8rsh.html#a35ac8c3759e25047e6a458c15520c887">rsgProgramFragmentConstantColor</a>(rs_program_fragment pf, <span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a); 103 <a name="l00169"></a>00169 104 <a name="l00178"></a>00178 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 105 <a name="l00179"></a>00179 <a class="code" href="rs__graphics_8rsh.html#a46208900d16287fde91a5d14ebc830dc">rsgBindConstant</a>(rs_program_fragment ps, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, rs_allocation c); 106 <a name="l00180"></a>00180 107 <a name="l00189"></a>00189 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 108 <a name="l00190"></a>00190 <a class="code" href="rs__graphics_8rsh.html#a46208900d16287fde91a5d14ebc830dc">rsgBindConstant</a>(<a class="code" href="structrs__program__vertex.html" title="Opaque handle to a Renderscript ProgramVertex object.">rs_program_vertex</a> pv, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> slot, rs_allocation c); 109 <a name="l00191"></a>00191 110 <a name="l00197"></a>00197 extern <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> __attribute__((overloadable)) 111 <a name="l00198"></a>00198 <a class="code" href="rs__graphics_8rsh.html#a67f4ed1ca4bba27d5c952ada89cd0717">rsgGetWidth</a>(<span class="keywordtype">void</span>); 112 <a name="l00199"></a>00199 113 <a name="l00205"></a>00205 extern <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> __attribute__((overloadable)) 114 <a name="l00206"></a>00206 <a class="code" href="rs__graphics_8rsh.html#a7e6565cd5d5e44f442a8bf8ba68f4681">rsgGetHeight</a>(<span class="keywordtype">void</span>); 115 <a name="l00207"></a>00207 116 <a name="l00208"></a>00208 117 <a name="l00215"></a>00215 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 118 <a name="l00216"></a>00216 <a class="code" href="rs__graphics_8rsh.html#a647228d8e15da6ad67a97701d920dcac">rsgAllocationSyncAll</a>(rs_allocation alloc); 119 <a name="l00217"></a>00217 120 <a name="l00218"></a>00218 <span class="preprocessor">#if (defined(RS_VERSION) && (RS_VERSION >= 14))</span> 121 <a name="l00219"></a>00219 <span class="preprocessor"></span> 122 <a name="l00227"></a>00227 <span class="keyword">extern</span> <span class="keywordtype">void</span> __attribute__((overloadable)) 123 <a name="l00228"></a>00228 <a class="code" href="rs__graphics_8rsh.html#a647228d8e15da6ad67a97701d920dcac">rsgAllocationSyncAll</a>(rs_allocation alloc, 124 <a name="l00229"></a>00229 rs_allocation_usage_type source); 125 <a name="l00230"></a>00230 126 <a name="l00231"></a>00231 <span class="preprocessor">#endif //defined(RS_VERSION) && (RS_VERSION >= 14)</span> 127 <a name="l00232"></a>00232 <span class="preprocessor"></span> 128 <a name="l00243"></a>00243 <span class="keyword">extern</span> <span class="keywordtype">void</span> __attribute__((overloadable)) 129 <a name="l00244"></a>00244 <a class="code" href="rs__graphics_8rsh.html#a80c51849bf12ec6c699c23c3fa3e6208">rsgDrawRect</a>(<span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2, <span class="keywordtype">float</span> z); 130 <a name="l00245"></a>00245 131 <a name="l00263"></a>00263 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 132 <a name="l00264"></a>00264 <a class="code" href="rs__graphics_8rsh.html#ad6953da0349e58547b08b8ce174ed3fc">rsgDrawQuad</a>(<span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> z1, 133 <a name="l00265"></a>00265 <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2, <span class="keywordtype">float</span> z2, 134 <a name="l00266"></a>00266 <span class="keywordtype">float</span> x3, <span class="keywordtype">float</span> y3, <span class="keywordtype">float</span> z3, 135 <a name="l00267"></a>00267 <span class="keywordtype">float</span> x4, <span class="keywordtype">float</span> y4, <span class="keywordtype">float</span> z4); 136 <a name="l00268"></a>00268 137 <a name="l00269"></a>00269 138 <a name="l00295"></a>00295 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 139 <a name="l00296"></a>00296 <a class="code" href="rs__graphics_8rsh.html#afb98a59bb9f878f0a09459567c269e64">rsgDrawQuadTexCoords</a>(<span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> z1, <span class="keywordtype">float</span> u1, <span class="keywordtype">float</span> v1, 140 <a name="l00297"></a>00297 <span class="keywordtype">float</span> x2, <span class="keywordtype">float</span> y2, <span class="keywordtype">float</span> z2, <span class="keywordtype">float</span> u2, <span class="keywordtype">float</span> v2, 141 <a name="l00298"></a>00298 <span class="keywordtype">float</span> x3, <span class="keywordtype">float</span> y3, <span class="keywordtype">float</span> z3, <span class="keywordtype">float</span> u3, <span class="keywordtype">float</span> v3, 142 <a name="l00299"></a>00299 <span class="keywordtype">float</span> x4, <span class="keywordtype">float</span> y4, <span class="keywordtype">float</span> z4, <span class="keywordtype">float</span> u4, <span class="keywordtype">float</span> v4); 143 <a name="l00300"></a>00300 144 <a name="l00301"></a>00301 145 <a name="l00314"></a>00314 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 146 <a name="l00315"></a>00315 <a class="code" href="rs__graphics_8rsh.html#a07d15127330fa1dff6c99b0d7d14e65e">rsgDrawSpriteScreenspace</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> z, <span class="keywordtype">float</span> w, <span class="keywordtype">float</span> h); 147 <a name="l00316"></a>00316 148 <a name="l00317"></a>00317 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 149 <a name="l00318"></a>00318 rsgDrawPath(<a class="code" href="structrs__path.html" title="Opaque handle to a Renderscript Path object.">rs_path</a> p); 150 <a name="l00319"></a>00319 151 <a name="l00326"></a>00326 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 152 <a name="l00327"></a>00327 <a class="code" href="rs__graphics_8rsh.html#a6f8b87c994810908fbe5e01f8f63f9af">rsgDrawMesh</a>(<a class="code" href="structrs__mesh.html" title="Opaque handle to a Renderscript mesh object.">rs_mesh</a> ism); 153 <a name="l00334"></a>00334 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 154 <a name="l00335"></a>00335 <a class="code" href="rs__graphics_8rsh.html#a6f8b87c994810908fbe5e01f8f63f9af">rsgDrawMesh</a>(<a class="code" href="structrs__mesh.html" title="Opaque handle to a Renderscript mesh object.">rs_mesh</a> ism, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> primitiveIndex); 155 <a name="l00344"></a>00344 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 156 <a name="l00345"></a>00345 <a class="code" href="rs__graphics_8rsh.html#a6f8b87c994810908fbe5e01f8f63f9af">rsgDrawMesh</a>(<a class="code" href="structrs__mesh.html" title="Opaque handle to a Renderscript mesh object.">rs_mesh</a> ism, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> primitiveIndex, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> start, <a class="code" href="rs__types_8rsh.html#a4f5fce8c1ef282264f9214809524d836">uint</a> len); 157 <a name="l00346"></a>00346 158 <a name="l00355"></a>00355 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 159 <a name="l00356"></a>00356 <a class="code" href="rs__graphics_8rsh.html#a147674fed92745fbb5c64a6300ca3c49">rsgClearColor</a>(<span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a); 160 <a name="l00357"></a>00357 161 <a name="l00361"></a>00361 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 162 <a name="l00362"></a>00362 <a class="code" href="rs__graphics_8rsh.html#a4bedb06e8facd587e3eacd746fe3e727">rsgClearDepth</a>(<span class="keywordtype">float</span> value); 163 <a name="l00366"></a>00366 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 164 <a name="l00367"></a>00367 <a class="code" href="rs__graphics_8rsh.html#afaec82492762e62cad1ff53ada479b14">rsgDrawText</a>(const <span class="keywordtype">char</span> *, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y); 165 <a name="l00371"></a>00371 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 166 <a name="l00372"></a>00372 <a class="code" href="rs__graphics_8rsh.html#afaec82492762e62cad1ff53ada479b14">rsgDrawText</a>(rs_allocation, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y); 167 <a name="l00377"></a>00377 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 168 <a name="l00378"></a>00378 <a class="code" href="rs__graphics_8rsh.html#ae89effef281e92e2940055883ea366d4">rsgBindFont</a>(<a class="code" href="structrs__font.html" title="Opaque handle to a Renderscript font object.">rs_font</a> font); 169 <a name="l00386"></a>00386 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 170 <a name="l00387"></a>00387 <a class="code" href="rs__graphics_8rsh.html#abda8c344092ed6310c7a8f353a6df876">rsgFontColor</a>(<span class="keywordtype">float</span> r, <span class="keywordtype">float</span> g, <span class="keywordtype">float</span> b, <span class="keywordtype">float</span> a); 171 <a name="l00392"></a>00392 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 172 <a name="l00393"></a>00393 <a class="code" href="rs__graphics_8rsh.html#a5c599f4ea989f3d0616cbf8e983688c4">rsgMeasureText</a>(const <span class="keywordtype">char</span> *, <span class="keywordtype">int</span> *left, <span class="keywordtype">int</span> *right, <span class="keywordtype">int</span> *top, <span class="keywordtype">int</span> *bottom); 173 <a name="l00397"></a>00397 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 174 <a name="l00398"></a>00398 <a class="code" href="rs__graphics_8rsh.html#a5c599f4ea989f3d0616cbf8e983688c4">rsgMeasureText</a>(rs_allocation, <span class="keywordtype">int</span> *left, <span class="keywordtype">int</span> *right, <span class="keywordtype">int</span> *top, <span class="keywordtype">int</span> *bottom); 175 <a name="l00402"></a>00402 extern <span class="keywordtype">void</span> __attribute__((overloadable)) 176 <a name="l00403"></a>00403 <a class="code" href="rs__graphics_8rsh.html#a0978c54902dd1d60180f8dbb0b781105">rsgMeshComputeBoundingBox</a>(<a class="code" href="structrs__mesh.html" title="Opaque handle to a Renderscript mesh object.">rs_mesh</a> mesh, <span class="keywordtype">float</span> *minX, <span class="keywordtype">float</span> *minY, <span class="keywordtype">float</span> *minZ, 177 <a name="l00404"></a>00404 <span class="keywordtype">float</span> *maxX, <span class="keywordtype">float</span> *maxY, <span class="keywordtype">float</span> *maxZ); 178 <a name="l00408"></a>00408 __inline__ static <span class="keywordtype">void</span> __attribute__((overloadable, always_inline)) 179 <a name="l00409"></a><a class="code" href="rs__graphics_8rsh.html#a6058b6b6c8b94f96f03dc8bca6a2090b">00409</a> <a class="code" href="rs__graphics_8rsh.html#a0978c54902dd1d60180f8dbb0b781105">rsgMeshComputeBoundingBox</a>(<a class="code" href="structrs__mesh.html" title="Opaque handle to a Renderscript mesh object.">rs_mesh</a> mesh, <a class="code" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *bBoxMin, <a class="code" href="rs__types_8rsh.html#a0046fa0f208d0899adbcf1f8b5aafadd">float3</a> *bBoxMax) { 180 <a name="l00410"></a>00410 <span class="keywordtype">float</span> x1, y1, z1, x2, y2, z2; 181 <a name="l00411"></a>00411 <a class="code" href="rs__graphics_8rsh.html#a0978c54902dd1d60180f8dbb0b781105">rsgMeshComputeBoundingBox</a>(mesh, &x1, &y1, &z1, &x2, &y2, &z2); 182 <a name="l00412"></a>00412 bBoxMin->x = x1; 183 <a name="l00413"></a>00413 bBoxMin->y = y1; 184 <a name="l00414"></a>00414 bBoxMin->z = z1; 185 <a name="l00415"></a>00415 bBoxMax->x = x2; 186 <a name="l00416"></a>00416 bBoxMax->y = y2; 187 <a name="l00417"></a>00417 bBoxMax->z = z2; 188 <a name="l00418"></a>00418 } 189 <a name="l00419"></a>00419 190 <a name="l00420"></a>00420 <span class="preprocessor">#endif</span> 191 <a name="l00421"></a>00421 <span class="preprocessor"></span> 192 </pre></div></div> 193 </div> 194 195 </body> 196 </html> 197