diff options
| author | Alex Sakhartchouk <alexst@google.com> | 2010-08-13 14:39:01 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-13 14:39:01 -0700 |
| commit | 991f8f33ca47a7555eeae17e3de39a28b4360863 (patch) | |
| tree | f2650aaaa9ffc19c61a09d2facdc5f89db527885 /scriptc | |
| parent | 40dbbf0c522e3788b7c71da714362877b7175d7e (diff) | |
| parent | ba4aa5c768a498bc3fbb8cb5547b7a9ad6f4b771 (diff) | |
| download | android_frameworks_rs-991f8f33ca47a7555eeae17e3de39a28b4360863.tar.gz android_frameworks_rs-991f8f33ca47a7555eeae17e3de39a28b4360863.tar.bz2 android_frameworks_rs-991f8f33ca47a7555eeae17e3de39a28b4360863.zip | |
Merge "Adding bounding box computation."
Diffstat (limited to 'scriptc')
| -rw-r--r-- | scriptc/rs_graphics.rsh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scriptc/rs_graphics.rsh b/scriptc/rs_graphics.rsh index fd0491c3..63bd9d74 100644 --- a/scriptc/rs_graphics.rsh +++ b/scriptc/rs_graphics.rsh @@ -77,6 +77,23 @@ extern void __attribute__((overloadable)) extern void __attribute__((overloadable)) rsgFontColor(float, float, float, float); +extern void __attribute__((overloadable)) + rsgMeshComputeBoundingBox(rs_mesh mesh, float *minX, float *minY, float *minZ, + float *maxX, float *maxY, float *maxZ); +void __attribute__((overloadable)) +rsgMeshComputeBoundingBox(rs_mesh mesh, float3 *bBoxMin, float3 *bBoxMax) { + float x1, y1, z1, x2, y2, z2; + rsgMeshComputeBoundingBox(mesh, &x1, &y1, &z1, &x2, &y2, &z2); + bBoxMin->x = x1; + bBoxMin->y = y1; + bBoxMin->z = z1; + bBoxMax->x = x2; + bBoxMax->y = y2; + bBoxMax->z = z2; +} + + + /////////////////////////////////////////////////////// // misc |
