Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | /** @file rs_graphics.rsh |
| 18 | * \brief Renderscript graphics API |
| 19 | * |
| 20 | * A set of graphics functions used by Renderscript. |
| 21 | * |
| 22 | */ |
Jason Sams | 1b937f5 | 2010-06-09 14:26:16 -0700 | [diff] [blame] | 23 | #ifndef __RS_GRAPHICS_RSH__ |
| 24 | #define __RS_GRAPHICS_RSH__ |
Alex Sakhartchouk | 4325387 | 2011-09-28 15:23:18 -0700 | [diff] [blame] | 25 | #if (defined(RS_VERSION) && (RS_VERSION >= 14)) |
Alex Sakhartchouk | 7d9c5ff | 2011-04-01 14:19:01 -0700 | [diff] [blame] | 26 | /** |
| 27 | * Set the color target used for all subsequent rendering calls |
| 28 | * @param colorTarget |
| 29 | * @param slot |
| 30 | */ |
| 31 | extern void __attribute__((overloadable)) |
| 32 | rsgBindColorTarget(rs_allocation colorTarget, uint slot); |
| 33 | |
| 34 | /** |
| 35 | * Clear the previously set color target |
| 36 | * @param slot |
| 37 | */ |
| 38 | extern void __attribute__((overloadable)) |
| 39 | rsgClearColorTarget(uint slot); |
| 40 | |
| 41 | /** |
| 42 | * Set the depth target used for all subsequent rendering calls |
| 43 | * @param depthTarget |
| 44 | */ |
| 45 | extern void __attribute__((overloadable)) |
| 46 | rsgBindDepthTarget(rs_allocation depthTarget); |
| 47 | |
| 48 | /** |
| 49 | * Clear the previously set depth target |
| 50 | */ |
| 51 | extern void __attribute__((overloadable)) |
| 52 | rsgClearDepthTarget(void); |
| 53 | |
| 54 | /** |
| 55 | * Clear all color and depth targets and resume rendering into |
| 56 | * the framebuffer |
| 57 | */ |
| 58 | extern void __attribute__((overloadable)) |
| 59 | rsgClearAllRenderTargets(void); |
| 60 | |
| 61 | /** |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 62 | * Force Renderscript to finish all rendering commands |
Alex Sakhartchouk | 7d9c5ff | 2011-04-01 14:19:01 -0700 | [diff] [blame] | 63 | */ |
| 64 | extern uint __attribute__((overloadable)) |
| 65 | rsgFinish(void); |
Jason Sams | f2bcce7 | 2010-03-26 15:33:42 -0700 | [diff] [blame] | 66 | |
Alex Sakhartchouk | 4325387 | 2011-09-28 15:23:18 -0700 | [diff] [blame] | 67 | #endif //defined(RS_VERSION) && (RS_VERSION >= 14) |
| 68 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 69 | /** |
| 70 | * Bind a new ProgramFragment to the rendering context. |
| 71 | * |
| 72 | * @param pf |
| 73 | */ |
| 74 | extern void __attribute__((overloadable)) |
| 75 | rsgBindProgramFragment(rs_program_fragment pf); |
| 76 | |
| 77 | /** |
| 78 | * Bind a new ProgramStore to the rendering context. |
| 79 | * |
| 80 | * @param ps |
| 81 | */ |
| 82 | extern void __attribute__((overloadable)) |
| 83 | rsgBindProgramStore(rs_program_store ps); |
| 84 | |
| 85 | /** |
| 86 | * Bind a new ProgramVertex to the rendering context. |
| 87 | * |
| 88 | * @param pv |
| 89 | */ |
| 90 | extern void __attribute__((overloadable)) |
| 91 | rsgBindProgramVertex(rs_program_vertex pv); |
| 92 | |
| 93 | /** |
| 94 | * Bind a new ProgramRaster to the rendering context. |
| 95 | * |
| 96 | * @param pr |
| 97 | */ |
| 98 | extern void __attribute__((overloadable)) |
| 99 | rsgBindProgramRaster(rs_program_raster pr); |
| 100 | |
| 101 | /** |
| 102 | * Bind a new Sampler object to a ProgramFragment. The sampler will |
| 103 | * operate on the texture bound at the matching slot. |
| 104 | * |
| 105 | * @param slot |
| 106 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 107 | extern void __attribute__((overloadable)) |
| 108 | rsgBindSampler(rs_program_fragment, uint slot, rs_sampler); |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 109 | |
| 110 | /** |
| 111 | * Bind a new Allocation object to a ProgramFragment. The |
| 112 | * Allocation must be a valid texture for the Program. The sampling |
| 113 | * of the texture will be controled by the Sampler bound at the |
| 114 | * matching slot. |
| 115 | * |
| 116 | * @param slot |
| 117 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 118 | extern void __attribute__((overloadable)) |
| 119 | rsgBindTexture(rs_program_fragment, uint slot, rs_allocation); |
Jason Sams | 51f36ab | 2010-03-18 14:36:05 -0700 | [diff] [blame] | 120 | |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 121 | /** |
| 122 | * Load the projection matrix for a currently bound fixed function |
| 123 | * vertex program. Calling this function with a custom vertex shader |
| 124 | * would result in an error. |
| 125 | * @param proj projection matrix |
| 126 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 127 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 128 | rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4 *proj); |
| 129 | /** |
| 130 | * Load the model matrix for a currently bound fixed function |
| 131 | * vertex program. Calling this function with a custom vertex shader |
| 132 | * would result in an error. |
| 133 | * @param model model matrix |
| 134 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 135 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 136 | rsgProgramVertexLoadModelMatrix(const rs_matrix4x4 *model); |
| 137 | /** |
| 138 | * Load the texture matrix for a currently bound fixed function |
| 139 | * vertex program. Calling this function with a custom vertex shader |
| 140 | * would result in an error. |
| 141 | * @param tex texture matrix |
| 142 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 143 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 144 | rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4 *tex); |
| 145 | /** |
| 146 | * Get the projection matrix for a currently bound fixed function |
| 147 | * vertex program. Calling this function with a custom vertex shader |
| 148 | * would result in an error. |
| 149 | * @param proj matrix to store the current projection matrix into |
| 150 | */ |
Jason Sams | 6445e52 | 2010-08-04 17:50:20 -0700 | [diff] [blame] | 151 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 152 | rsgProgramVertexGetProjectionMatrix(rs_matrix4x4 *proj); |
Alex Sakhartchouk | 95333f9 | 2010-08-16 17:40:10 -0700 | [diff] [blame] | 153 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 154 | /** |
| 155 | * Set the constant color for a fixed function emulation program. |
| 156 | * |
| 157 | * @param pf |
| 158 | * @param r |
| 159 | * @param g |
| 160 | * @param b |
| 161 | * @param a |
| 162 | */ |
Alex Sakhartchouk | 95333f9 | 2010-08-16 17:40:10 -0700 | [diff] [blame] | 163 | extern void __attribute__((overloadable)) |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 164 | rsgProgramFragmentConstantColor(rs_program_fragment pf, float r, float g, float b, float a); |
Jason Sams | 6445e52 | 2010-08-04 17:50:20 -0700 | [diff] [blame] | 165 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 166 | /** |
| 167 | * Get the width of the current rendering surface. |
| 168 | * |
| 169 | * @return uint |
| 170 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 171 | extern uint __attribute__((overloadable)) |
| 172 | rsgGetWidth(void); |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 173 | |
| 174 | /** |
| 175 | * Get the height of the current rendering surface. |
| 176 | * |
| 177 | * @return uint |
| 178 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 179 | extern uint __attribute__((overloadable)) |
| 180 | rsgGetHeight(void); |
Jason Sams | 51f36ab | 2010-03-18 14:36:05 -0700 | [diff] [blame] | 181 | |
Jason Sams | b7e83bd | 2010-12-15 01:41:00 -0800 | [diff] [blame] | 182 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 183 | /** |
| 184 | * Sync the contents of an allocation from its SCRIPT memory space to its HW |
| 185 | * memory spaces. |
| 186 | * |
| 187 | * @param alloc |
| 188 | */ |
| 189 | extern void __attribute__((overloadable)) |
| 190 | rsgAllocationSyncAll(rs_allocation alloc); |
| 191 | |
Alex Sakhartchouk | 4325387 | 2011-09-28 15:23:18 -0700 | [diff] [blame] | 192 | #if (defined(RS_VERSION) && (RS_VERSION >= 14)) |
| 193 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 194 | /** |
Alex Sakhartchouk | 74a8279 | 2011-06-14 11:13:19 -0700 | [diff] [blame] | 195 | * Sync the contents of an allocation from memory space |
| 196 | * specified by source. |
| 197 | * |
| 198 | * @param alloc |
| 199 | * @param source |
| 200 | */ |
| 201 | extern void __attribute__((overloadable)) |
| 202 | rsgAllocationSyncAll(rs_allocation alloc, |
| 203 | rs_allocation_usage_type source); |
| 204 | |
Alex Sakhartchouk | 4325387 | 2011-09-28 15:23:18 -0700 | [diff] [blame] | 205 | #endif //defined(RS_VERSION) && (RS_VERSION >= 14) |
| 206 | |
Alex Sakhartchouk | 74a8279 | 2011-06-14 11:13:19 -0700 | [diff] [blame] | 207 | /** |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 208 | * Low performance utility function for drawing a simple rectangle. Not |
| 209 | * intended for drawing large quantities of geometry. |
| 210 | * |
| 211 | * @param x1 |
| 212 | * @param y1 |
| 213 | * @param x2 |
| 214 | * @param y2 |
| 215 | * @param z |
| 216 | */ |
Jason Sams | b7e83bd | 2010-12-15 01:41:00 -0800 | [diff] [blame] | 217 | extern void __attribute__((overloadable)) |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 218 | rsgDrawRect(float x1, float y1, float x2, float y2, float z); |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 219 | |
| 220 | /** |
| 221 | * Low performance utility function for drawing a simple quad. Not intended for |
| 222 | * drawing large quantities of geometry. |
| 223 | * |
| 224 | * @param x1 |
| 225 | * @param y1 |
| 226 | * @param z1 |
| 227 | * @param x2 |
| 228 | * @param y2 |
| 229 | * @param z2 |
| 230 | * @param x3 |
| 231 | * @param y3 |
| 232 | * @param z3 |
| 233 | * @param x4 |
| 234 | * @param y4 |
| 235 | * @param z4 |
| 236 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 237 | extern void __attribute__((overloadable)) |
| 238 | rsgDrawQuad(float x1, float y1, float z1, |
| 239 | float x2, float y2, float z2, |
| 240 | float x3, float y3, float z3, |
| 241 | float x4, float y4, float z4); |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 242 | |
| 243 | |
| 244 | /** |
| 245 | * Low performance utility function for drawing a textured quad. Not intended |
| 246 | * for drawing large quantities of geometry. |
| 247 | * |
| 248 | * @param x1 |
| 249 | * @param y1 |
| 250 | * @param z1 |
| 251 | * @param u1 |
| 252 | * @param v1 |
| 253 | * @param x2 |
| 254 | * @param y2 |
| 255 | * @param z2 |
| 256 | * @param u2 |
| 257 | * @param v2 |
| 258 | * @param x3 |
| 259 | * @param y3 |
| 260 | * @param z3 |
| 261 | * @param u3 |
| 262 | * @param v3 |
| 263 | * @param x4 |
| 264 | * @param y4 |
| 265 | * @param z4 |
| 266 | * @param u4 |
| 267 | * @param v4 |
| 268 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 269 | extern void __attribute__((overloadable)) |
| 270 | rsgDrawQuadTexCoords(float x1, float y1, float z1, float u1, float v1, |
| 271 | float x2, float y2, float z2, float u2, float v2, |
| 272 | float x3, float y3, float z3, float u3, float v3, |
| 273 | float x4, float y4, float z4, float u4, float v4); |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 274 | |
| 275 | |
| 276 | /** |
| 277 | * Low performance function for drawing rectangles in screenspace. This |
| 278 | * function uses the default passthough ProgramVertex. Any bound ProgramVertex |
| 279 | * is ignored. This function has considerable overhead and should not be used |
| 280 | * for drawing in shipping applications. |
| 281 | * |
| 282 | * @param x |
| 283 | * @param y |
| 284 | * @param z |
| 285 | * @param w |
| 286 | * @param h |
| 287 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 288 | extern void __attribute__((overloadable)) |
| 289 | rsgDrawSpriteScreenspace(float x, float y, float z, float w, float h); |
Jason Sams | 51f36ab | 2010-03-18 14:36:05 -0700 | [diff] [blame] | 290 | |
Jason Sams | 9e0afb5 | 2011-10-31 13:23:43 -0700 | [diff] [blame^] | 291 | extern void __attribute__((overloadable)) |
| 292 | rsgDrawPath(rs_path p); |
| 293 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 294 | /** |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 295 | * Draw a mesh using the current context state. The whole mesh is |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 296 | * rendered. |
| 297 | * |
| 298 | * @param ism |
| 299 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 300 | extern void __attribute__((overloadable)) |
| 301 | rsgDrawMesh(rs_mesh ism); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 302 | /** |
| 303 | * Draw part of a mesh using the current context state. |
| 304 | * @param ism mesh object to render |
| 305 | * @param primitiveIndex for meshes that contain multiple primitive groups |
| 306 | * this parameter specifies the index of the group to draw. |
| 307 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 308 | extern void __attribute__((overloadable)) |
| 309 | rsgDrawMesh(rs_mesh ism, uint primitiveIndex); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 310 | /** |
| 311 | * Draw specified index range of part of a mesh using the current context state. |
| 312 | * @param ism mesh object to render |
| 313 | * @param primitiveIndex for meshes that contain multiple primitive groups |
| 314 | * this parameter specifies the index of the group to draw. |
| 315 | * @param start starting index in the range |
| 316 | * @param len number of indices to draw |
| 317 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 318 | extern void __attribute__((overloadable)) |
| 319 | rsgDrawMesh(rs_mesh ism, uint primitiveIndex, uint start, uint len); |
Alex Sakhartchouk | 4e9a7a8 | 2010-07-01 16:14:06 -0700 | [diff] [blame] | 320 | |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 321 | /** |
| 322 | * Clears the rendering surface to the specified color. |
| 323 | * |
| 324 | * @param r |
| 325 | * @param g |
| 326 | * @param b |
| 327 | * @param a |
| 328 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 329 | extern void __attribute__((overloadable)) |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 330 | rsgClearColor(float r, float g, float b, float a); |
| 331 | |
| 332 | /** |
| 333 | * Clears the depth suface to the specified value. |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 334 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 335 | extern void __attribute__((overloadable)) |
Jason Sams | 09aeb8a | 2011-01-28 15:49:07 -0800 | [diff] [blame] | 336 | rsgClearDepth(float value); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 337 | /** |
| 338 | * Draws text given a string and location |
| 339 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 340 | extern void __attribute__((overloadable)) |
| 341 | rsgDrawText(const char *, int x, int y); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 342 | /** |
| 343 | * \overload |
| 344 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 345 | extern void __attribute__((overloadable)) |
| 346 | rsgDrawText(rs_allocation, int x, int y); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 347 | /** |
| 348 | * Binds the font object to be used for all subsequent font rendering calls |
| 349 | * @param font object to bind |
| 350 | */ |
Jason Sams | 7349547 | 2010-07-29 17:31:14 -0700 | [diff] [blame] | 351 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 352 | rsgBindFont(rs_font font); |
| 353 | /** |
| 354 | * Sets the font color for all subsequent rendering calls |
| 355 | * @param r red component |
| 356 | * @param g green component |
| 357 | * @param b blue component |
| 358 | * @param a alpha component |
| 359 | */ |
Alex Sakhartchouk | 9fc9f03 | 2010-08-04 14:45:48 -0700 | [diff] [blame] | 360 | extern void __attribute__((overloadable)) |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 361 | rsgFontColor(float r, float g, float b, float a); |
| 362 | /** |
| 363 | * Returns the bounding box of the text relative to (0, 0) |
| 364 | * Any of left, right, top, bottom could be NULL |
| 365 | */ |
Alex Sakhartchouk | 09c6735 | 2010-10-05 11:33:27 -0700 | [diff] [blame] | 366 | extern void __attribute__((overloadable)) |
| 367 | rsgMeasureText(const char *, int *left, int *right, int *top, int *bottom); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 368 | /** |
| 369 | * \overload |
| 370 | */ |
Alex Sakhartchouk | 09c6735 | 2010-10-05 11:33:27 -0700 | [diff] [blame] | 371 | extern void __attribute__((overloadable)) |
| 372 | rsgMeasureText(rs_allocation, int *left, int *right, int *top, int *bottom); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 373 | /** |
| 374 | * Computes an axis aligned bounding box of a mesh object |
| 375 | */ |
Alex Sakhartchouk | ba4aa5c | 2010-08-13 14:32:23 -0700 | [diff] [blame] | 376 | extern void __attribute__((overloadable)) |
| 377 | rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ, |
| 378 | float *maxX, float *maxY, float *maxZ); |
Alex Sakhartchouk | 9996b75 | 2011-08-09 11:36:19 -0700 | [diff] [blame] | 379 | /** |
| 380 | * \overload |
| 381 | */ |
Jason Sams | 399dc9e | 2010-10-15 17:57:07 -0700 | [diff] [blame] | 382 | __inline__ static void __attribute__((overloadable, always_inline)) |
Alex Sakhartchouk | ba4aa5c | 2010-08-13 14:32:23 -0700 | [diff] [blame] | 383 | rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) { |
| 384 | float x1, y1, z1, x2, y2, z2; |
| 385 | rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2); |
| 386 | bBoxMin->x = x1; |
| 387 | bBoxMin->y = y1; |
| 388 | bBoxMin->z = z1; |
| 389 | bBoxMax->x = x2; |
| 390 | bBoxMax->y = y2; |
| 391 | bBoxMax->z = z2; |
| 392 | } |
| 393 | |
Jason Sams | 1b937f5 | 2010-06-09 14:26:16 -0700 | [diff] [blame] | 394 | #endif |
Jason Sams | 51f36ab | 2010-03-18 14:36:05 -0700 | [diff] [blame] | 395 | |